Mailing List Archive

Support open source code!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File locking

What is the best way to do file locking, in a C program, on Unix machines?
Under DOS/Windows, I use locking().
This was missing under Linux (GNU C), so I used flock().
Unfortunately, both locking and flock seem to be missing on a Sun SparcCompiler!
The GNU man pages say flock is implemented with fcntl, so is fcntl the most
portable solution?


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links