I am working on a C++ program for UNIX that will use files as semaphores, please help.?
read the man page for open(2). There's an O_EXCL mode flag that implies exclusive. That flag, in create, would cause create to fail if the file exists. Is that what you are needing?
No comments:
Post a Comment