AIX version of NT's _fsopen() ?
In article <8ndp1k$94...@nnrp1.deja.com>, kosulli...@elandtech.com
If you're trying to handle file access among cooperating processes, ie
processes that are designed to work together, you can build logic into
your code to lock file regions with the fcntl() system calls.
But file exclusivity among disparate processes on Unix is best handled
at the filesystem level, through permissions and ownership. Try to
structure your directories so that only certain UIDs or GIDs have access
to the files you want to control. This doesn't affect root's access by
any means, but root is supposed to Know What He is Doing(TM) anyway.
AIX does support SVR4 mandatory record locking, which is activated by
setting the SGID mode bit and clearing the group-execute bit. This
effectively shifts exclusivity operations from the filesystem into the
kernel, but it's not bullet proof by any means. Mandatory record
locking only applies to operations that affect the file pointer, like
read(), write(), or open(). However unlink() can still delete the file.