aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdopen.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2009-04-30stdopen: remove unused codeEric Blake1-74/+0
* m4/stdopen.m4: Delete now-unused file. * lib/stdopen.h: Likewise. * lib/stdopen.c: Likewise.
2007-07-23Update all copyright notices to use the newer form.Jim Meyering1-5/+4
2007-07-10Change "version 2" to "version 3" in all copyright notices.Jim Meyering1-1/+1
2006-08-26Include <config.h> unconditionally, since we now assume config.h exists.Paul Eggert1-4/+2
2005-11-09Use /dev/full if possible for descriptor 0 -- like glibc now does.Jim Meyering1-1/+11
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 Meyering1-1/+1
gnulib.
2005-09-13tweak commentJim Meyering1-2/+2
2005-08-24(stdopen): Revert to iterating over descriptors, butJim Meyering1-30/+22
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 Meyering1-3/+11
2005-06-30Add copyright.Jim Meyering1-6/+28
Include <fcntl.h> and <unistd.h> unconditionally -- it seems to be ok to do this, these days.
2005-06-30Rewritten by Paul Eggert.Jim Meyering1-18/+32
Now, the minimum overhead is just two system calls: dup and close.
2005-06-30New file. As yet unused.Jim Meyering1-0/+31