* FW: fcntl call on win95
@ 1997-08-27 23:19 Ian Collins
0 siblings, 0 replies; only message in thread
From: Ian Collins @ 1997-08-27 23:19 UTC (permalink / raw)
To: 'Gnu win32 mailer'
Many Regards,
Ian Collins
> -----Original Message-----
> From: Ian Collins
> Sent: Thursday, August 28, 1997 12:26 PM
> To: 'Gnu win32 mailer'
> Subject: fcntl call on win95
>
> I have a routine that write locks a file. The essential code is,
>
> #include <fcntl.h>
> auto struct flock lck;
> auto int flc;
> auto int filedesc;
>
> filedesc = open(filename, O_RDWR|O_CREAT, 0666);
> lck.l_type = F_WRLCK;
> lck.l_start = 0;
> lck.l_whence = 0;
> lck.l_len = 0;
> flc = fcntl(fildesc, F_SETLK, &lck);
>
> The fcntl provides a write lock on Windows NT fine (on both FAT and
> NTFS) filesystems, but fails (flc == -1) on Windows 95.
> Can anyone help me on this?
>
> Many Regards,
> Ian Collins
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-08-27 23:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-27 23:19 FW: fcntl call on win95 Ian Collins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).