>>50
- all open files are closed when it exits
Irrelevant. It will need to open an arbitrary number of files before that time, and it could easily run out of descriptors.
Also,
[code]$ for i in *.c; do cc -o /dev/null $i -ansi -pedantic; done
cat.c: In function ‘main’:
cat.c:43: warning: ISO C90 forbids mixed declarations and code
chgrp.c:15: error: syntax error before ‘do_chgrp’
chown.c:18: error: syntax error before ‘do_chown’
md5sum.c:2: warning: ISO C90 does not support ‘long long’
md5sum.c:110: error: syntax error before ‘/’ token
md5sum.c:110:28: error: too many decimal points in number
md5sum.c:117: error: missing terminating ' character
md5sum.c:120: error: syntax error before numeric constant
md5sum.c:120: error: conflicting types for ‘memset’
md5sum.c:120: warning: data definition has no type or storage class
md5sum.c:124: error: conflicting types for ‘W’
md5sum.c:22: error: previous declaration of ‘W’ was here
md5sum.c:124: error: invalid initializer
md5sum.c:124: warning: data definition has no type or storage class
md5sum.c:125: error: conflicting types for ‘W’
md5sum.c:22: error: previous declaration of ‘W’ was here
md5sum.c:125: error: invalid initializer
md5sum.c:125: warning: data definition has no type or storage class
md5sum.c:126: error: conflicting types for ‘md5round’
md5sum.c:33: error: previous definition of ‘md5round’ was here
md5sum.c:126: warning: data definition has no type or storage class
md5sum.c:126: error: syntax error before ‘/’ token
mkdir.c: In function ‘main’:
mkdir.c:62: warning: comparison is always false due to limited range of data type
mkfifo.c: In function ‘main’:
mkfifo.c:39: warning: comparison is always false due to limited range of data type
rmdir.c: In function ‘main’:
rmdir.c:30: error: ‘verbose’ undeclared (first use in this function)
rmdir.c:30: error: (Each undeclared identifier is reported only once
rmdir.c:30: error: for each function it appears in.)
sha1sum.c:2: warning: ISO C90 does not support ‘long long’
sha1sum.c:65: error: syntax error before ‘/’ token
sha1sum.c:65:28: error: too many decimal points in number
sha1sum.c:72: error: missing terminating ' character
sha1sum.c:75: error: syntax error before numeric constant
sha1sum.c:75: error: conflicting types for ‘memset’
sha1sum.c:75: warning: data definition has no type or storage class
sha1sum.c:79: error: conflicting types for ‘W’
sha1sum.c:15: error: previous declaration of ‘W’ was here
sha1sum.c:79: error: invalid initializer
sha1sum.c:79: warning: data definition has no type or storage class
sha1sum.c:80: error: conflicting types for ‘W’
sha1sum.c:15: error: previous declaration of ‘W’ was here
sha1sum.c:80: error: invalid initializer
sha1sum.c:80: warning: data definition has no type or storage class
sha1sum.c:81: error: conflicting types for ‘sha1round’
sha1sum.c:33: error: previous definition of ‘sha1round’ was here
sha1sum.c:81: warning: data definition has no type or storage class
sha1sum.c:81: error: syntax error before ‘/’ token
sync.c: In function ‘main’:
sync.c:2: warning: return type of ‘main’ is not ‘int’
touch.c: In function ‘main’:
touch.c:108: warning: initializer element is not computable at load time
touch.c:108: warning: initializer element is not computable at load time
tty.c: In function ‘main’:
tty.c:8: warning: ISO C forbids omitting the middle term of a ?: expression
whoami.c: In function ‘main’:
whoami.c:5: warning: return type of ‘main’ is not ‘int’
[/code[