From d158c37a19e5df7903dedff02f0236797dcdd112 Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Thu, 28 Sep 2023 23:53:31 +0800 Subject: [PATCH] bash: aliases to extract sigs/errnos from kernel header --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 9a0399c..d3492c6 100644 --- a/.bashrc +++ b/.bashrc @@ -59,6 +59,8 @@ alias artisan81="php81 artisan" alias artisan="php82 artisan" alias tiocgwinsz="python3 -c \"import struct, fcntl, termios; print('%d %d %d %d' % struct.unpack('4H', fcntl.ioctl(2, termios.TIOCGWINSZ, ' ' * 8)))\"" alias dl="curl -OJLR --compressed" +alias errno="grep -h '^#define[[:space:]]*E' /usr/include/asm-generic/errno* | sed 's|^#define[[:space:]]*||'" +alias signal="grep -h '^#define SIG' /usr/include/asm/signal.h | sed 's|^#define ||'" play-playlist() { ARGS= -- 2.43.0