Roland McGrath <[EMAIL PROTECTED]> writes:

> > Roland McGrath <[EMAIL PROTECTED]> writes:
> > 
> > > I think the Hurd libc implementation of tmpfile is at fault.
> > > POSIX.1 says there must be a file descriptor.  Try this libc patch.
> > 
> > Why do it this way?  I would prefer having fileno generate the file
> > descriptor, since most uses of tmpfile will probably not need one.
> 
> That was my first thought too.  But POSIX.1 says that tmpfile "shall
> allocate a file descriptor as fopen does".  

Sure, but there is *no* difference between doing so immediately and
doing so upon demand...


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to