/*++ /* NAME /* open_lock 3 /* SUMMARY /* open or create file and lock it for exclusive access /* SYNOPSIS /* #include <open_lock.h> /* /* VSTREAM *open_lock(path, flags, mode, why) /* const char *path; /* int flags; /* mode_t mode; /* VSTRING *why; /* DESCRIPTION /* This module opens or creates the named file and attempts to /* acquire an exclusive lock. The lock is lost when the last /* process closes the file. /* /* Arguments: /* .IP "path, flags, mode" /* These are passed on to safe_open(). /* .IP why /* storage for diagnostics. /* SEE ALSO /* safe_open(3) carefully open or create file /* myflock(3) get exclusive lock on file /* DIAGNOSTICS /* In case of problems the result is a null pointer and a problem /* description is returned via the global \fIerrno\fR variable. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.