Commit Graph

6 Commits

Author SHA1 Message Date
Jim Meyering
2859e85770 tweak comment 2005-09-13 21:25:21 +00:00
Jim Meyering
f80cc28124 (stdopen): Revert to iterating over descriptors, but
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-24 15:25:29 +00:00
Jim Meyering
cc6d255ed5 (stdopen): Return `bool' so caller can detect failure. 2005-08-19 17:18:04 +00:00
Jim Meyering
d3f25798b9 Add copyright.
Include <fcntl.h> and <unistd.h> unconditionally --
it seems to be ok to do this, these days.
2005-06-30 20:23:09 +00:00
Jim Meyering
5754380c82 Rewritten by Paul Eggert.
Now, the minimum overhead is just two system calls: dup and close.
2005-06-30 20:13:40 +00:00
Jim Meyering
58000d181c New file. As yet unused. 2005-06-30 20:10:39 +00:00