musl/src/temp
Rich Felker 6f1c1fe90c ignore access mode bits of flags in mkostemps and functions that use it
per the text accepted for inclusion in POSIX, behavior is unspecified
when any of the access mode bits are set. since it's impossible to
consistently report this usage error (O_RDONLY could not be detected
since its value happens to be zero), the most consistent way to handle
them is just to ignore them.

previously, if a caller erroneously passed O_WRONLY, the resulting
access mode would be O_WRONLY|O_RDWR, which has the value 3, and this
resulted in a file descriptor which rejects both read and write
attempts when it is subsequently used.
2014-10-06 23:13:01 -04:00
..
__randname.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mkdtemp.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mkostemp.c add mkostemp, mkstemps, and mkostemps functions and reorganize temp internals 2013-02-20 22:43:23 -05:00
mkostemps.c ignore access mode bits of flags in mkostemps and functions that use it 2014-10-06 23:13:01 -04:00
mkstemp.c add mkostemp, mkstemps, and mkostemps functions and reorganize temp internals 2013-02-20 22:43:23 -05:00
mkstemps.c add mkostemp, mkstemps, and mkostemps functions and reorganize temp internals 2013-02-20 22:43:23 -05:00
mktemp.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00