[Courses] [C] A question on locking

Morgon Kanter admin at surgo.net
Tue Dec 17 22:28:30 EST 2002


I have been working on a tutorial on file locking for the mailing list, but 
I have one question that I am wondering: 

When a file descriptor is locked with fcntl() or flock(), I would imagine 
that all FILE streams opened on that file descriptor would also be 
subject to the locking. Is this true? Because I read that locking only 
affects read() and write() system calls, and it said nothing about 
stdio functions

Morgon
--
grab my updated (11/25/02) public key from http://www.surgo.net/pubkey.asc




More information about the Courses mailing list