/*++ /* NAME /* deliver_flock 3 /* SUMMARY /* lock open file for mail delivery /* SYNOPSIS /* #include <deliver_flock.h> /* /* int deliver_flock(fd, lock_style, why) /* int fd; /* int lock_style; /* VSTRING *why; /* DESCRIPTION /* deliver_flock() sets one exclusive kernel lock on an open file, /* for example in order to deliver mail. /* It performs several non-blocking attempts to acquire an exclusive /* lock before giving up. /* /* Arguments: /* .IP fd /* A file descriptor that is associated with an open file. /* .IP lock_style /* A locking style defined in myflock(3). /* .IP why /* A null pointer, or storage for diagnostics. /* DIAGNOSTICS /* deliver_flock() returns -1 in case of problems, 0 in case /* of success. The reason for failure is returned via the \fIwhy\fR /* parameter. /* CONFIGURATION PARAMETERS /* deliver_lock_attempts, number of locking attempts /* deliver_lock_delay, time in seconds between attempts /* sun_mailtool_compatibility, disable kernel locking /* 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.