RTEMS Logo

RTEMS 4.6.4 On-Line Library


Event Logging Manager log_facilityismember - Manipulate log facility sets

PREV UP NEXT Bookshelf New Chapters

1.4.14: log_facilityismember - Manipulate log facility sets

CALLING SEQUENCE:

#include <evlog.h>

int log_facilityismember(
  const log_facility_set_t *set,
  log_facility_t            facilityno,
  const int                *member
);

STATUS CODES:

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

EFAULT
The set or member argument is an invalid pointer.
EINVAL
The facilityno argument is not a valid facility.

DESCRIPTION:

The log_facilityismember() function tests whether the facility specified by the value of the argument facilityno is a member of the set pointed to by the argument set. Upon successful completion, the log_facilityismember() function either returns a value of one to the location specified by member if the specified facility is a member of the specified set or value of zero to the location specified by member if the specified facility is not a member of the specified set.

NOTES:

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

Applications shall call either log_facilityemptyset() or log_facilityfillset() at least once for each object of type log_facilityset_t prior to any other use of that object. If such an object is not initialized in this way, but is nonetheless supplied as an argument to any of the log_facilityaddset(), logfacilitydelset(), log_facilityismember() or log_open() functions, the results are undefined.


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2004 OAR Corporation