Article View: comp.os.os2.programmer
Article #1845Re: flock() for emx gcc?
From: Kai-Uwe Rommel
Date: Wed, 11 Nov 1992 16:51
Date: Wed, 11 Nov 1992 16:51
24 lines
1521 bytes
1521 bytes
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
Technical Details
Message-ID:
<1992Nov11.165111.23190@Informatik.TU-Muenchen.DE>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!rrz.uni-koeln.de!unidui!math.fu-berlin.de!informatik.tu-muenchen.de!rommelReferences:
<1992Nov10.005811.18119@grebyn.com> <1dplc6INNgac@iskut.ucs.ubc.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!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