delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/07/19/07:42:36

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200107191142.NAA29911@father.ludd.luth.se>
Subject: Re: DJDIR Windows 2000 investigation results #1
In-Reply-To: <002d01c1103e$d9f56780$0a02a8c0@acceleron> from Andrew Cottrell at "Jul 19, 2001 08:37:45 pm"
To: acottrel AT ihug DOT com DOT au (Andrew Cottrell)
Date: Thu, 19 Jul 2001 13:42:05 +0200 (MET DST)
Cc: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

According to Andrew Cottrell:
> I have just tested the changes on my Win2K box with the app below using the
> CVS tarball from the 15th of July 2001 and the patches to _open.c and
> _creat.c. The steps I went through to produce the exe was:

Thanks!

> Should the TEMP_O.TXT file have the read only attribute set?
> Is the sample app okay for the test? If not, what are the changes I need to
> do?

It depends on the _third_ parameter that is supposed to be supplied to
open() if you use O_CREAT. Read at "info libc a open".

>     q = open("./temp_o.txt", O_CREAT);

Here you should say e. g. ``open("./temp_o.txt", O_CREAT, S_IWUSR)''.

So unless somebody objects I'm going to commit this after some days.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019