delorie.com/archives/browse.cgi | search |
Date: | Mon, 3 May 1999 08:33:28 -0400 |
Message-Id: | <199905031233.IAA22283@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | eliz AT is DOT elta DOT co DOT il |
CC: | djgpp-workers AT delorie DOT com |
In-reply-to: | <Pine.SUN.3.91.990503073637.23461A-100000@is> (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: | <Pine DOT SUN DOT 3 DOT 91 DOT 990503073637 DOT 23461A-100000 AT is> |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |