diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-12-19 23:59:54 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-12-19 23:59:54 -0500 |
commit | 1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8 (patch) | |
tree | cad0aab0c0fca2c341795c5de18e60b9a722a25d /src/misc/dirname.c | |
parent | 7d3512126db7044525cf402255e0a85ac68dc2e9 (diff) | |
download | musl-1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8.tar.gz musl-1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8.tar.bz2 musl-1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8.tar.xz musl-1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8.zip |
fix stderr locking and ferror semantics in getopt message printing
if writing the error message fails, POSIX requires that ferror(stderr)
be set. and as a function that operates on a stdio stream, getopt is
required to lock the stream it uses, stderr.
fwrite calls are used instead of fprintf since there is a demand from
some users not to pull in heavy stdio machinery via getopt. this
mimics the original code using write.
Diffstat (limited to 'src/misc/dirname.c')
0 files changed, 0 insertions, 0 deletions