TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Seeling
from: Russell Coker
date: 1995-10-02 00:04:48
subject: Tidbits

PT>>> just another example of unixish dirty file system hacks, like doing
 PT>>> unlink() on an open file :)

 RC>    You can do the same thing under OS/2 by opening the file in deny
 RC> read/write mode.
 TS> This is not just quite the same.

 RC>    I believe that this is due to UNIX lacking 
 RC> effective file locking.  So
 RC> you can't stop a process from deleting a file 
 RC> while another process is
 RC> using it.  So you just allow the process with the 
 RC> open file to keep using
 RC> it - the deletion process will complete when there 
 RC> are no open handles to
 RC> the file.

 TS> This is false in this general speaking. Of course there 
 TS> are enough implementations whose API offers nice 
 TS> mechanisms like semaphores, shared memory, file locking etc.

    True.  There are many implementations of UNIX that support these
features, and many UNIX applications that rely on them not being used.  I
should have been more clear when I wrote the above paragraph that I was
referring to the design decisions that resulted in UNIX allowing files to
be unlinked while in use.  The continued existance of that
"feature" is for compatibility.


   cya


--- Maximus/2 2.02
* Origin: Multi - 61-3-9739-7145 - multi.apana.org.au (3:633/363)
SEEN-BY: 620/243 632/103 341 348 998 633/154 252 260 362 363 371 373 634/384
SEEN-BY: 635/301 502 503 638/102 639/100 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 949 955 712/515 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 632/348 711/409 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™.