home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16821 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.lang.c
  2. From: mike@imcldn.demon.co.uk (Michael P Simkins)
  3. Path: sparky!uunet!pipex!demon!imcldn.demon.co.uk!mike
  4. Subject: Possibly daft question but.....
  5. Distribution: world
  6. Organization: Independent Mail Centre, Enfield, Middx
  7. Reply-To: mike@imcldn.demon.co.uk
  8. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)
  9. Lines: 21
  10. Date: Thu, 19 Nov 1992 18:55:33 +0000
  11. Message-ID: <722199333snz@imcldn.demon.co.uk>
  12. Sender: usenet@gate.demon.co.uk
  13.  
  14. This is possibly a silly question but here goes....
  15.  
  16. I have accuired to source code to the SoftFocus B-tree library, which was
  17. for single user use.  Am I right in thinking that I can convert this
  18. library to network use, by placing the appropriate record locking calls
  19. around the physical read() and write() functions ?
  20.  
  21. If this is the case, my only other question would be the handling of a
  22. new data record. I cannot lock the record, as it does not exist yet, but
  23. should I lock the file, add the record, lock the record, and then unlock
  24. the file. I know that locking beyond the length of the file (for DOS) is
  25. ok, but will this cause any problems.
  26.  
  27. If possible please e-mail any responses, and I will post a summary to
  28. the net later
  29.  
  30. Thanks for your help
  31.  
  32. Mike
  33.  
  34.  
  35.