aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/stream_flags.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2013-06-28 18:09:47 +0300
committerLasse Collin <lasse.collin@tukaani.org>2013-06-28 18:09:47 +0300
commita616fdad34b48b2932ef03fb87309dcc8b829527 (patch)
tree0a4ef335498e5457db4857b39a97458fb2e5bba3 /src/liblzma/api/lzma/stream_flags.h
parentxz: Fix use of wrong variable in a fcntl() call. (diff)
downloadxz-a616fdad34b48b2932ef03fb87309dcc8b829527.tar.xz
xz: Fix error detection of fcntl(fd, F_SETFL, flags) calls.
POSIX says that fcntl(fd, F_SETFL, flags) returns -1 on error and "other than -1" on success. This is how it is documented e.g. on OpenBSD too. On Linux, success with F_SETFL is always 0 (at least accorinding to fcntl(2) from man-pages 3.51).
Diffstat (limited to 'src/liblzma/api/lzma/stream_flags.h')
0 files changed, 0 insertions, 0 deletions