| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: DJGPP, FreeDOS and file access |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <jrestsocnt0r5lgsjk5girtdfkponspcr0@4ax.com> |
| References: | <8rkmnt$8sq$1 AT nnrp1 DOT deja DOT com> <8rl79u$mce$1 AT nnrp1 DOT deja DOT com> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 30 |
| X-Trace: | /ba9Qd7+K4wZPOm0vAdWVd0WOCUDuvI86GuPIZOqSeQdyQ/nQd+p6zNB/f6DeGDmanWDGdWnxPJA!bJUTAd3ygknWSkdvHtT3coOo13/qxmlBuDG0kc/1xkBW4JkIAJcx5BEc3Oj/axkybL4bSnLmGFTk!hu57eQ== |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Fri, 06 Oct 2000 20:55:17 GMT |
| Distribution: | world |
| Date: | Fri, 06 Oct 2000 20:55:17 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Fri, 06 Oct 2000 18:57:03 GMT, jbfraleigh AT hotmail DOT com wrote:
>I am using the Allegro library -- One of the functions was calling
>findfirst which was generating the ENOENT. I modified the routines to
>call _dos_findfirst instead which has corrected that problem.
>
>The problem that I am currently experiencing is using the fopen command
>as follows:
>
>---- code ----
>FILE *fp;
>
>fp = fopen("TEMP.TMP", "r");
Does a file named TEMP.TMP exist on your system? Opening in "r" mode
will return 0 with errno = ENOENT if the file doesn't already exist.
-- Portability Note --
BTW, if you are hardcoding filenames in fopen() statements, please
lowercase them. It's quite a bit easier when you go to port to
other POSIX systems that generally have case-sensitive filenames.
(In those filesystems, ALL.CAP filenames are considered shouting.)
--
<O
( \ GNOME vs. KDE: the game!
X http://pineight.8m.com/nes.htm
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |