Date: Mon, 3 May 1999 08:33:28 -0400 Message-Id: <199905031233.IAA22283@envy.delorie.com> From: DJ Delorie To: eliz AT is DOT elta DOT co DOT il CC: djgpp-workers AT delorie DOT com In-reply-to: (message from Eli Zaretskii on Mon, 3 May 1999 07:43:43 +0300 (IDT)) Subject: Re: Windows 9X bug when it runs out of file handles References: Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk I was hoping for something like this: fd = open(...); if (fd == -1) { if (errno == ESHARE) open(...,SH_DENYNO) else if (errno == ENOFILE) _creat(...); else return -1; } That's what I meant about checking for specific errno values, rather than just avoiding the ones we know are trouble.