Jim Meyering
410f98fc2b
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
2005-07-02 08:41:46 +00:00
Jim Meyering
58076430c3
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
...
and don't include <sys/file.h>).
2005-07-01 20:55:29 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
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