From: Nigel Stephens Date: Fri, 26 Aug 94 13:34:25 +0100 To: eliz AT is DOT elta DOT co DOT il Cc: Victor Essers , djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: help References: <199408231042 DOT SAA20309 AT perth DOT dialix DOT oz DOT au> <9408251443 DOT AA11233 AT is DOT elta DOT co DOT il> 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