[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fileno(tmpfile()) returns EBADF
From: |
Marcus Brinkmann |
Subject: |
Re: fileno(tmpfile()) returns EBADF |
Date: |
Fri, 19 Apr 2002 19:48:39 -0400 |
User-agent: |
Mutt/1.3.25i |
On Fri, Apr 19, 2002 at 07:36:33PM -0400, Roland McGrath wrote:
> > Sure, but there is *no* difference between doing so immediately and
> > doing so upon demand...
>
> Sure there is. The basic requirement here is that the the OPEN_MAX limit
> be enforced as specified,
I don't have my copy of POSIX around, but I also remember a vague
requirement (or expectation) that the file descriptor allocated
is always the smallest file descriptor available. So a program
that does close(0); tmpfile(); might expect to have the file descriptor
allocated for tmpfile to be 0. Keeping track of this in a delayed
allocation is hairy.
But as I said, I am a filesystem-size-limitation away from the standard
document, so I can't check right now. Compiling emacs and glibc is more
important (so I can check your patch ;).
Thanks,
Marcus
- fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/16
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/16
- Re: fileno(tmpfile()) returns EBADF, Roland McGrath, 2002/04/17
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/17
- Re: fileno(tmpfile()) returns EBADF, Roland McGrath, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Roland McGrath, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF,
Marcus Brinkmann <=
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/19
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/20
- Re: fileno(tmpfile()) returns EBADF, Thomas Bushnell, BSG, 2002/04/20
- Re: fileno(tmpfile()) returns EBADF, Marcus Brinkmann, 2002/04/20