home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11795 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.8 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!news
  2. From: erwin#m#_mike.ast_-_tac_mail_server@msgate.corp.apple.com (Mike Erwin)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: DOS Networking Primitives Needed for C
  5. Message-ID: <1993Jan5.002930.2403@gallant.apple.com>
  6. Date: 5 Jan 93 00:29:30 GMT
  7. Sender: news@gallant.apple.com
  8. Organization: Apple Computer, Inc.
  9. Lines: 33
  10.  
  11.  
  12. Network Software: Lantastic
  13. Language:  I'm using TC 2.0, but any code for DOS is fine
  14.  
  15. Does anyone have any primitives that deal with the DOS record locking scheme?
  16.  I have tried for three days now to implement a system whereby all users have
  17. read access to the file until someone wishes to update a record; at that
  18. time, the file is locked, the user makes changes, then the file is unlocked;
  19. but, to no avail.  
  20.  
  21. Would anyone who has tackled a similar situation please mail me any code or
  22. personal comments that deal with this? 
  23.  
  24. I have a few minor questions concerning what is happening at an operating
  25. system level:
  26.  
  27. 1>  How does the TC lock() function actually work (low level)?  And...  Say
  28. you lock the whole file, does your process (the one that made the lock) still
  29. have RW access to the file? (apparently you do).
  30.  
  31. 2>  What DOS system calls are being made to negotiate the file sharing
  32. functions?
  33.  
  34. Thanks
  35.  
  36. |  "From the lightning in the sky, as it passed me flying by,
  37. |   From the thunder and the storm, and the cloud that took the form,
  38. |   (When the rest of heaven was blue), of a demon in my view." 
  39. |       {10010 | 0111}  ? Veritas Aut Nihil! ? Heads- heads... heads?  heads!
  40. |  Mike Erwin,       UNIX Systems Administrator       Apple Computer, Inc.
  41. |  erwin#m#_mike.ast_-_tac_mail_server@msgate.corp.apple.com
  42. |    Apple: 512-919-2223      TT: 512-345-3573
  43.