Mail Archives: djgpp/1994/08/26/08:55:29
eliz AT is DOT elta DOT co DOT il (eliz AT is DOT elta DOT co DOT il) writes:
> > Could someone please tell me if it is possible to access the value of the FILES
> > setting in CONFIG.SYS from within a C program, and if so, how?
>
> reading CONFIG isn't enough; and (b) C libraries often have their
> own (read: arbitrary) limitations on the max number of available file
> handles (e.g., Borland C gives you 20, including the 5 standard handles
> which it opens for you). For the latter case it might suffice to just
Speaking of which, I have seen very strange behaviour in a GO32
program, where open() succeeds and returns file descriptor 20, but
calling read() with this descriptor returns errno==EBADF! If it had
returned EMFILE on open() then it would be possible to work around
this, but by the time you do the read() it is too late.
--
_________________________________________________________________________
Nigel Stephens, Algorithmics Ltd, 3 Drayton Park, London, N5 1NU, England
phone: +44 71 700 3301 fax: +44 71 700 3400 email: nigel AT algor DOT co DOT uk
- Raw text -