[BZ #4342]
[glibc.git] / sysdeps / unix / errnos.awk
blob8648f41fb2d65e73a811a63fe73d8703befec33c
1 BEGIN { special = 0 }
3 /ERRNOS/ { nerrnos = split(errnos, errs)
4 for (i = 1; i <= nerrnos; ++i)
5 # Some systems define errno codes inside undefined #ifdefs,
6 # and then never actually use them.
7 printf "#ifdef %s\n DO(\"%s\", %s);\n#endif\n", \
8 errs[i], errs[i], errs[i]
9 special = 1 }
12 { if (special == 0) print $0; special = 0 }