mirror of https://git.musl-libc.org/git/musl
Browse Source
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.master
1 changed files with 16 additions and 12 deletions
Loading…
Reference in new issue