/*++ /* NAME /* dot_lockfile 3 /* SUMMARY /* dotlock file management /* SYNOPSIS /* #include <dot_lockfile.h> /* /* int dot_lockfile(path, why) /* const char *path; /* VSTRING *why; /* /* void dot_unlockfile(path) /* const char *path; /* DESCRIPTION /* dot_lockfile() constructs a lock file name by appending ".lock" to /* \fIpath\fR and creates the named file exclusively. It tries several /* times and attempts to break stale locks. A negative result value /* means no lock file could be created. /* /* dot_unlockfile() attempts to remove the lock file created by /* dot_lockfile(). The operation always succeeds, and therefore /* it preserves the errno value. /* /* Arguments: /* .IP path /* Name of the file to be locked or unlocked. /* .IP why /* A null pointer, or storage for the reason why a lock file could /* not be created. /* DIAGNOSTICS /* dot_lockfile() returns 0 upon success. In case of failure, the /* result is -1, and the errno variable is set appropriately: /* EEXIST when a "fresh" lock file already exists; other values as /* appropriate. /* CONFIGURATION PARAMETERS /* deliver_lock_attempts, how many times to try to create a lock /* deliver_lock_delay, how long to wait between attempts /* stale_lock_time, when to break a stale lock /* 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.