RTEMS Logo

RTEMS 4.6.0 On-Line Library


Event Logging Manager log_close - Close log descriptor

PREV UP NEXT Bookshelf New Chapters

1.4.7: log_close - Close log descriptor

CALLING SEQUENCE:

#include <evlog.h>

int log_close(
  const logd_t   logdes
);

STATUS CODES:

A successful call to log_close() returns a value of zero and an unsuccessful call returns the errno.

EBADF
The logdes argument is not a valid log file descriptor.

DESCRIPTION:

The log_close() function deallocates the open log file descriptor indicated by log_des.

When all log file descriptors associated with an open log file description have been closed, the open log file description is freed.

If the link count of the log file is zero, when all log file descriptors have been closed, the space occupied by the log file is freed and the log file shall no longer be accessible.

If the process has successfully registered a notification request for the log file descriptor, the registration is removed.

NOTES:

The _POSIX_LOGGING feature flag is defined to indicate this service is available.


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2004 OAR Corporation