Hi again all,
back to my conversion to c/c++ cgi scripts on UNIX system... I want to know if the functions [tt]flockfile()[/tt] and [tt]funlockfile()[/tt] are sufficient to prevent corruption when writing to a file on the UNIX web server.
For example, if I was to write to a file using PERL, I would use the function [tt]flock()[/tt] to prevent any other instances of the same script from writing to the file at the same time and therefore corrupting it.
Any info would be appreciated...
Thanks!
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
back to my conversion to c/c++ cgi scripts on UNIX system... I want to know if the functions [tt]flockfile()[/tt] and [tt]funlockfile()[/tt] are sufficient to prevent corruption when writing to a file on the UNIX web server.
For example, if I was to write to a file using PERL, I would use the function [tt]flock()[/tt] to prevent any other instances of the same script from writing to the file at the same time and therefore corrupting it.
Any info would be appreciated...
Thanks!

programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.