geterrno.sh - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) 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