#include <evlog.h> int log_create( logd_t *ld, const char *path, );
A successful call to log_create()
returns a value
of zero and a unsuccessful call returns the errno
.
path
already exists and O_CREAT and O_EXCL were used.
path
refers to a directory and the access requested involved
writing.
path
refers to an executable image which is currently being
executed and write access was requested.
path
points outside your accessible address space.
path
did not allow search (execute) permission.
path
was too long.
path
does not exist or is a dangling symbolic
link.
path
is not, in fact, a directory.
path
refers to a file on a read-only filesystem and write access
was requested.
path
contains a reference to a circular symbolic link, ie a
symbolic link whose expansion contains a reference to itself.
This function attempts to create a file associated with the logdes
argument in the directory provided by the argument path
.
The _POSIX_LOGGING
feature flag is defined to indicate
this service is available.
Copyright © 1988-2004 OAR Corporation