Debian Codegraph @

test/errno.awk

raw
1 BEGIN {
2 # check that PROCINFO["errno"] is working properly
3 getline
4 if (close(FILENAME)) {
5 print "Error `" ERRNO "' closing input file"
6 print "errno =", PROCINFO["errno"]
7 }
8 getline < (FILENAME "/bogus")
9 print (PROCINFO["errno"] > 0), ERRNO
10 }