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