musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys/socket.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年10月08日 19:49:10 -0400
committerRich Felker <dalias@aerifal.cx>2013年10月08日 19:49:10 -0400
commit4fb7df12f52982412e60afeaf9c4463f78b396fc (patch)
tree8e32da083c9881ced7a9fdb709289a7d28ce0e35 /include/sys/socket.h
parent8f438115f2c12b40fa7b1884f87db72857af67f6 (diff)
downloadmusl-4fb7df12f52982412e60afeaf9c4463f78b396fc.tar.gz
fix errno value for getcwd when size argument is zero
based on patch by Michael Forney. at the same time, I've changed the if branch to be more clear, avoiding the comma operator. the underlying issue is that Linux always returns ERANGE when size is too short, even when it's zero, rather than returning EINVAL for the special case of zero as required by POSIX.
Diffstat (limited to 'include/sys/socket.h')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月22日 04:12:47 +0000

AltStyle によって変換されたページ (->オリジナル) /