From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_SBL_CSS autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 26563 invoked from network); 13 Oct 2023 21:52:39 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2023 21:52:39 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Fri Oct 13 17:51:13 -0400 2023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1697233950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pPwK3rCBcmlRyRtGWxDEcSDM0miPY8632BUuLh3aZ2g=; b=efD8l+zI598d+T2JwKHjIGSDk6fwQSQgSlK+nI7MSfnxNCkoJtt06T4bSh1eod8nHra9yR A2eqJpLjBcKwcCWkErmOMdzgCGcAygTrJ6Kf70jN9PMPpr52SR/6jZv+5mTrfLcNtj0wZI w32Us6R0U5pL/FwLa6wogbcBxIRbFSg= Received: from [192.168.168.200] ( [207.45.82.38]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id a31041f0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Fri, 13 Oct 2023 16:52:30 -0500 (CDT) Message-ID: <2581e110-a0ae-426d-b2e2-38ee1acc8dcb@posixcafe.org> Date: Fri, 13 Oct 2023 16:51:10 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: 9front@9front.org From: Jacob Moody Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: realtime cache Subject: [9front] struct(1): struct variant of sig(1) Reply-To: 9front@9front.org Precedence: bulk This is a script I've used for quite a while myself, perhaps useful to others. Got brought up and iterated on a bit today so I figured I would toss it here. Thanks, moody #!/bin/rc grep -n '^struct[ ]+'^$1 /sys/include/*.h && \ sed -n '/^struct[ ]+'^$1^'/,/^}/p' /sys/include/*.h grep -l '^struct[ ]+'^$1 /sys/man/2/* | sed 's;.*/(.*);man 2 \1 # \1(2);'