I need a quick expanation on this whole flock() command!
First of all, what parameter do I pass to flock() to simply block write access? Is it flock(2)?
And how do I unlock a file so that it can be written to again?
I need this because I am designing a user page, where usernames, passwords, and other preferences are stored in a file,
and that file is constantly being read from and appended to.
One more thing: how do I refer to what filehandle I want to lock?
Any help is greatly needed and appreciated!