TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Clemens Anhuth
from: Mike Bilow
date: 1995-08-26 16:15:54
subject: Re: Multi-user programming

Clemens Anhuth wrote in a message to Erik Huelsmann:

EH> For example: I wanted to lock a file on multiple
EH> records, but they were not in one sequence; they were
EH> these numbers: 5 6 10 and 50

 CA> as far as os/2 is concerned and afaik you can only access
 CA> whole files. 

 CA> you can open a file read-only granting other programs the
 CA> same right or   you can open a file exclusively, locking it
 CA> completely against other   programs.

OS/2 provides the DosSetFileLocks() and DosProtectSetFileLocks() API calls.

 CA> there may be slight differences as far as os/2 and other
 CA> operating systems   are concerned, but this is the main idea
 CA> as i did understand it. 

Even DOS supports this with SHARE loaded, and OS/2 always emulates DOS as
if SHARE was loaded.
 
-- Mike


---
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.