[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fileno(tmpfile()) returns EBADF

From: Thomas Bushnell, BSG
Subject: Re: fileno(tmpfile()) returns EBADF
Date: 19 Apr 2002 16:42:51 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Roland McGrath <roland@gnu.org> writes:

> Sure there is.  The basic requirement here is that the the OPEN_MAX limit
> be enforced as specified, on the total of fopen+tmpfile + open and other
> POSIX.1 calls (and probably some other ISO C call I am forgetting).  

Ah, quite right, blech.  I had forgotten about OPEN_MAX, which does
make it possible to detect a delayed allocation.

(Obviously that could also [and maybe should] be dealt with by
remembering how many file descriptors we have promised but not
allocated.  But you're quite right that *that* much hair would be a
mistake to deal with now.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]