summaryrefslogtreecommitdiff
path: root/lib/cloexec.c
AgeCommit message (Collapse)Author
2005-09-22Sync from gnulib.Paul Eggert
2005-07-02Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.Jim Meyering
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,Jim Meyering
and don't include <sys/file.h>).
2005-05-14Update FSF postal mail address.Jim Meyering
2004-04-04Sync from gnulib.Jim Meyering
2004-03-04(set_cloexec_flag) [ ! (F_GETFD && F_SETFD)]: Return true, not false.Jim Meyering
2004-03-04Include "cloexec.h" first, and <unistd.h> before <fcntl.h>.Jim Meyering
(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-03New file.Jim Meyering
The set_cloexec_flag implementation imported from GNU C Library Reference Manual.