Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3105] RE: Read-only files in Windows

Date2003-10-01 01:10
From"Michael Gogins"
Subject[CSOUND-DEV:3105] RE: Read-only files in Windows
Well, Csound is supposed to run on more platforms than just about anything.
All I've worked on with Csound is Windows, Unix, and Linux. So I can't say
anything about the Atari ST or the Macintosh or the Amiga... this is the
stuff that John Fitch has been taking care of for everybody for years. I
don't know who he gets to test these other platforms, or even if they are
actually tested.

============================================
Michael Gogins
gogins at pipeline period com
Irreducible Productions
Silence, a language for programming music and sound
Available at http://sourceforge.net/projects/silencevst/
============================================


----- Original Message ----- 
From: "John D. Ramsdell" 
To: "Csound Developers Discussion List" 
Sent: Tuesday, September 30, 2003 3:22 PM
Subject: [CSOUND-DEV:3103] RE: Read-only files in Windows


> "gogins@pipeline.com"  writes:
>
> > Please fix it if you can. In my code I have resorted to forcing a
> > delete of these files before running again.
>
> I can't stand the way things are, so I'll patch this soon if I hear
> nothing from anyone else.  The odd thing is the code I would expect to
> see would use
>
>     int open(const char *pathname, int flags, mode_t mode);
>
> with
>
>     flags = O_CREAT|O_WRONLY|O_TRUNC
>
> and
>
>     mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH,
>
> but some of the calls to open in the file filopen.c omit the third
> argument.  Curious.  Are there platforms that do not support the three
> argument version of open?  What is the story with the following set of
> machines?
>
>     defined(mac_classic) || defined(SYMANTEC) || defined(WIN32)
>
> My IEEE POSIX Std 1003.1-1988 book states clearly that when flags
> contains O_CREAT, open is required to be used in the three argument
> form.
>
> John
>