home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!mcsun!Germany.EU.net!rrz.uni-koeln.de!unidui!math.fu-berlin.de!informatik.tu-muenchen.de!rommel
- From: rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel)
- Subject: Re: flock() for emx gcc?
- References: <1992Nov10.005811.18119@grebyn.com> <1dplc6INNgac@iskut.ucs.ubc.ca>
- Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
- Organization: Technische Universitaet Muenchen, Germany
- Date: Wed, 11 Nov 1992 16:51:11 GMT
- Message-ID: <1992Nov11.165111.23190@Informatik.TU-Muenchen.DE>
- Lines: 25
-
- In article <1dplc6INNgac@iskut.ucs.ubc.ca> ochealth@unixg.ubc.ca (ochealth) writes:
- >:Is there an flock() function around already? Could someone literate
- >:in emx (0.8e) gcc (2.2.2) whip one up? Thanks.
- >
- >why don;t you look at the OS/2 port of GNU dbm? IT's on ftp-os2.nmsu.edu.
- >
- >I've checked the sources a bit, and it looks like flock() isn't used for
- >OS/2. ( I think OS/2 and EMX default to lcking out writes anyway)
-
- It's not used in this version.
-
- However, flock() is easy to replace under OS/2. Either (for permanent
- locking while the file is open) use the appropriate sharing mode or (for
- locking over short periods) use DosSetFileLocks() (if that's the name, I
- don't have the manual here).
-
- Send me email, if you need more details.
-
- Kai Uwe Rommel
-
- /* Kai Uwe Rommel --- rommel@informatik.tu-muenchen.de */
-
- DOS ... is still a real mode only non-reentrant interrupt
- handler, and always will be. -Russell Williams
-
-