home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2610 / README < prev    next >
Encoding:
Text File  |  1991-01-25  |  1.2 KB  |  26 lines

  1. I wrote this because I'm sick of dealing with different locking
  2. syntax and locking semantics depending on the machine the code is
  3. running on.  BTW, this should be considered an Alpha release.
  4.  
  5. These are convenience routines which implement file locking in standard
  6. ways regardless of the method selected within the particular operating
  7. system.  Currently `supported' are fcntl(), lockf(), and flock() style
  8. locking.  The code has been developed and `tested' on a Sun
  9. SPARCstation 1 under SunOS 4.1.  It has also been `tested' under SCO
  10. Xenix 2.3.2 and `passes', except that lockf() style locking sets errno
  11. to EAGAIN rather than EACCES, as it does on the Sun.  I haven't
  12. `fixed' it because I think that SCO's errno value is wrong and I feel
  13. like being perverse today.
  14.  
  15. The routine `test-lock.c' is a half-assed test driver.  `do-test.sh'
  16. causes a variety of test to be performed - the results are saved in
  17. test.log.
  18.  
  19. If anyone is interested in building up these routines into something
  20. solid for the purpose of porting, send me diffs.  If the interest is
  21. wide enough I will attempt to coordinate revisions and will publish
  22. through comp.sources.misc.
  23.  
  24. Mike Howard
  25. how%milhow1@uunet.uu.net
  26.