[Slugnet] C / linux file locking question

Anand Vaidya anandvaidya.ml at gmail.com
Tue Jun 2 11:54:46 SGT 2009


If you are coding in C and wish to lock a file, using fcntl(), why would you 
set the off_t  / loff_t to 2^63-1 as the starting offset of a locked region?

Seems this is a fairly common practice? can anyone familiar with it enlighten?

regards
Anand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lugs.org.sg/pipermail/slugnet/attachments/20090602/b53428ea/attachment.html


More information about the Slugnet mailing list