Skip to content
Advertisement

Tag: file

fcntl, lockf, which is better to use for file locking?

Looking for information regarding the advantages and disadvantages of both fcntl and lockf for file locking. For example which is better to use for portability? I am currently coding a linux daemon and wondering which is better suited to use for enforcing mutual exclusion. Answer What is the difference between lockf and fcntl: On many systems, the lockf() library routine

Advertisement