From: Jacob Moody <moody@posixcafe.org>
To: 9front@9front.org
Subject: [9front] struct(1): struct variant of sig(1)
Date: Fri, 13 Oct 2023 16:51:10 -0500 [thread overview]
Message-ID: <2581e110-a0ae-426d-b2e2-38ee1acc8dcb@posixcafe.org> (raw)
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);'
next reply other threads:[~2023-10-13 21:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-13 21:51 Jacob Moody [this message]
2023-10-23 23:17 ` ori
2023-10-24 1:39 ` ori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2581e110-a0ae-426d-b2e2-38ee1acc8dcb@posixcafe.org \
--to=moody@posixcafe.org \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).