home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6344 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.5 KB  |  37 lines

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