yaloner
yaloner

Reputation: 758

Linux file locking in C - Can flock() be mandatory?

As a C rookie I was just reading about locks and saw here that it is possible to enable mandatory locking in Linux to use with fcntl(). Is it possible to use other locking functions like flock() as mandatory locks?

Upvotes: 0

Views: 414

Answers (1)

CL.
CL.

Reputation: 180280

No.

If the semantics of flock() changed, all programs that rely on these locks being advisory would break.

Upvotes: 1

Related Questions