Re: [RFC] new open flag O_NOSTD

2009-08-30 Thread Jim Meyering
James Youngman wrote: > On Mon, Aug 24, 2009 at 1:22 PM, Eric Blake wrote: >> The name proposed in this mail is O_NOSTD (implying that a successful >> result will not be any of the standard file descriptors); other ideas >> mentioned on the bug-gnulib list were O_SAFER, O_NONSTD, O_NOSTDFD. >> http

Re: [RFC] new open flag O_NOSTD

2009-08-30 Thread James Youngman
On Mon, Aug 24, 2009 at 1:22 PM, Eric Blake wrote: > The name proposed in this mail is O_NOSTD (implying that a successful > result will not be any of the standard file descriptors); other ideas > mentioned on the bug-gnulib list were O_SAFER, O_NONSTD, O_NOSTDFD. > http://lists.gnu.org/archive/htm

[RFC] new open flag O_NOSTD

2009-08-24 Thread Eric Blake
Proposal Add a new flag, O_NOSTD, to at least open and pipe2 (and an alternate spelling SOCK_NOSTD for socket, socketpair, accept4), with the following semantics: If the flag is specified and the function is successful, the returned fd (both fds for the pipe2 case) will be at least 3, reg