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=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8375 invoked from network); 23 Oct 2023 23:21:11 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2023 23:21:11 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 9front; Mon Oct 23 19:17:42 -0400 2023 Received: from abbatoir (pool-108-6-24-2.nycmny.fios.verizon.net [108.6.24.2]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 1fa761e1 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Mon, 23 Oct 2023 16:17:41 -0700 (PDT) Message-ID: <6D9DA6FE7D4BF1DA69CE666498E3F49E@eigenstate.org> To: 9front@9front.org Date: Mon, 23 Oct 2023 19:17:39 -0400 From: ori@eigenstate.org In-Reply-To: <2581e110-a0ae-426d-b2e2-38ee1acc8dcb@posixcafe.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: asynchronous singleton-scale proxy cache Subject: Re: [9front] struct(1): struct variant of sig(1) Reply-To: 9front@9front.org Precedence: bulk Quoth Jacob Moody : > 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);' maybe add it to sig? ...also, sig is way too clever, and therefore you can't do 'sig Bread'.