/*++ /* NAME /* logwriter 3 /* SUMMARY /* logfile writer /* SYNOPSIS /* #include <logwriter.h> /* /* VSTREAM *logwriter_open_or_die( /* const char *path) /* /* int logwriter_write( /* VSTREAM *file, /* const char *buffer. /* ssize_t buflen) /* /* int logwriter_close( /* VSTREAM *file) /* /* int logwriter_one_shot( /* const char *path, /* const char *buffer, /* ssize_t buflen) /* /* int set_logwriter_create_perms( /* const char *mode) /* DESCRIPTION /* This module manages a logfile writer. /* /* logwriter_open_or_die() safely opens the specified file in /* write+append mode. File open/create errors are fatal. /* /* logwriter_write() writes the buffer plus newline to the /* open logfile. The result is zero if successful, VSTREAM_EOF /* if the operation failed. /* /* logwriter_close() closes the logfile and destroys the VSTREAM /* instance. The result is zero if there were no errors writing /* the file, VSTREAM_EOF otherwise. /* /* logwriter_one_shot() combines all the above operations. The /* result is zero if successful, VSTREAM_EOF if any operation /* failed. /* /* set_logwriter_create_perms() sets the file permissions that /* will be used when creating a logfile. Valid inputs are /* "644", "640", and "600". Leading zeros are allowed and /* ignored. /* DIAGNOSTICS /* Fatal error: logfile create error; warning: logfile permission /* change error. set_logwriter_create_perms() returns the file /* create permission if the request is valid, -1 otherwise. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, 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.