RTEMS Logo

RTEMS 4.6.2 On-Line Library


Event Logging Manager log_severity_before - Compare event record severities

PREV UP NEXT Bookshelf New Chapters

1.4.9: log_severity_before - Compare event record severities

CALLING SEQUENCE:

#include <evlog.h>

int log_severity_before(
  log_severity_t  s1,
  log_severity_t  s2
);

STATUS CODES:

0
The severity of s1 is less than that of s2.
1
The severity of s1 is greater than or equal that of s2.
EINVAL
The value of either s1 or s2 exceeds LOG_SEVERITY_MAX.

DESCRIPTION:

The log_severity_before() function compares the severity order of the s1 and s2 arguments. If s1 is of severity greater than or equal to that of s2, then this function returns 1. Otherwise, it returns 0.

If either s1 or s2 specify invalid severity values, the return value of log_severity_before() is unspecified.

NOTES:

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

The POSIX specification of the return value for this function is ambiguous. If EINVAL is equal to 1 in an implementation, then the application can not distinguish between greater than and an error condition.


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2004 OAR Corporation