summaryrefslogtreecommitdiffstats
path: root/lib/cloexec.c
AgeCommit message (Collapse)AuthorLines
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert-60/+0
2005-09-22Sync from gnulib.Paul Eggert-3/+2
2005-07-02Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.Jim Meyering-3/+1
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,Jim Meyering-3/+1
and don't include <sys/file.h>).
2005-05-14Update FSF postal mail address.Jim Meyering-1/+1
2004-04-04Sync from gnulib.Jim Meyering-9/+11
2004-03-04(set_cloexec_flag) [ ! (F_GETFD && F_SETFD)]: Return true, not false.Jim Meyering-1/+1
2004-03-04Include "cloexec.h" first, and <unistd.h> before <fcntl.h>.Jim Meyering-20/+16
(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-0/+67
The set_cloexec_flag implementation imported from GNU C Library Reference Manual.