repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel: trap-dependent state restore, trace fixes
[minix.git]
/
kernel
/
extract-errno.sh
blob
cb5a10feb5c7d5f50427bbd8b0c975fd7547d60d
1
#!/bin/sh
2
3
set -e
4
5
# grep message type and errno constants and make them into a .h file
6
cat
..
/
include
/
sys
/
errno.h | \
7
tr
-s
'
\t
'
' '
| \
8
sed
's/^# /#/'
| \
9
egrep
'^#define [A-Z_][A-Z0-9_]* \( ?_SIGN ?[0-9]+ ?\)'
| \
10
cut
-d
' '
-f2
| \
11
sed
's/\(.*\)/IDENT(\1)/'
| \
12
sort