1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-13 23:36:10 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Jim Meyering
8c5584a151 Sync from gnulib. 2004-04-04 06:51:11 +00:00
Jim Meyering
f5057405b1 (set_cloexec_flag) [ ! (F_GETFD && F_SETFD)]: Return true, not false. 2004-03-04 13:08:29 +00:00
Jim Meyering
a1c30fd7d1 Include "cloexec.h" first, and <unistd.h> before <fcntl.h>.
(set_cloexec_flag): Use bool for booleans.  All uses changed.
If F_GETFD returns a negative number (not just -1), report a
failure.  Don't use F_SETFD if the flags are already right.
Don't report a failure with F_SETFD unless it returns -1.
2004-03-04 08:42:20 +00:00
Jim Meyering
f0970dc4a8 New file.
The set_cloexec_flag implementation imported from GNU C Library
Reference Manual.
2004-03-03 22:01:32 +00:00