summaryrefslogtreecommitdiff
path: root/lib/stdopen.c
AgeCommit message (Collapse)Author
2005-11-09Use /dev/full if possible for descriptor 0 -- like glibc now does.Jim Meyering
Fall back on /dev/null if opening /dev/full fails.
2005-09-24Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with ↵Jim Meyering
gnulib.
2005-09-13tweak commentJim Meyering
2005-08-24(stdopen): Revert to iterating over descriptors, butJim Meyering
rather than using fstat, use fcntl with its F_GETFD flag, which is more efficient. Unlike the 2-syscall dup-close approach, this one doesn't apply any unnecessary pressure on the file descriptor pool -- thus there is one fewer way to fail.
2005-08-19(stdopen): Return `bool' so caller can detect failure.Jim Meyering
2005-06-30Add copyright.Jim Meyering
Include <fcntl.h> and <unistd.h> unconditionally -- it seems to be ok to do this, these days.
2005-06-30Rewritten by Paul Eggert.Jim Meyering
Now, the minimum overhead is just two system calls: dup and close.
2005-06-30New file. As yet unused.Jim Meyering