scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

geterrno.sh (155B)


      1 #!/bin/sh
      2 
      3 awk '/define[ 	]*E/ && $3 ~ /[0-9]+/ && $3 > 0 {
      4 	sub(/\#define[ 	]*/, "")
      5 	sub(/\/\*/, "")
      6 	sub(/\*\//, "")
      7 	print
      8 }' /usr/include/sys/errno.h