about summary refs log tree commit diff
path: root/src/string/strsignal.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-12-19 23:59:54 -0500
committerRich Felker <dalias@aerifal.cx>2014-12-19 23:59:54 -0500
commit1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8 (patch)
treecad0aab0c0fca2c341795c5de18e60b9a722a25d /src/string/strsignal.c
parent7d3512126db7044525cf402255e0a85ac68dc2e9 (diff)
downloadmusl-1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8.tar.gz
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/string/strsignal.c')
0 files changed, 0 insertions, 0 deletions