Intro(3event)
Intro --
introduction to libevent library
Syntax
cc . . . -levent
#include <libevent.h>
Description
This section contains manual pages for the routines in the libevent
library. These routines support event handling.
Files
LIBDIRlibevent.a libevent library (archive)
Return values
For functions that return a floating-point value, if an error occurs,
the value of errno will be one of the values represented by the manifest
constants EDOM or ERANGE (defined in math.h).
EDOM typically indicates a domain error: one of the input values
was not in the domain of the function.
ERANGE typically indicates a range error: the calculated result
was either too big or too small to be represented by the data type
returned by the function.
Functions that result in a range error typically return zero for underflow
or a value that will compare equal to ±HUGE_VAL for overflow.
HUGE_VAL is defined in math.h.
On systems that support IEEE infinity, HUGE_VAL is infinity.
If the system supports IEEE NaN (not-a-number), functions that
result in a domain error typically return NaN.
Such functions may also raise one of the IEEE floating-point exceptions.
On systems that do not support IEEE NaN, functions
that result in a domain error typically return zero.
The error behavior for programs compiled with the -Xt (transitional)
compilation mode is different (see
cc(1)).
In that case, these functions typically return zero instead
of IEEE NaN for domain errors and a value that will compare
equal to ±HUGE instead of ±HUGE_VAL for overflows.
HUGE is defined in math.h.
Definitions
A character (except a multibyte character; see
mbchar(3C))
is any bit pattern able to fit into a byte on the machine.
The null character is a character with value 0, conventionally
represented in the C language as \0.
A character array is a sequence of characters.
A null-terminated character array (a ``string'')
is a sequence of characters, the last of which is the null character.
The null string is a character array containing only the terminating
null character.
A NULL pointer is the value that is obtained by casting
0 into a pointer.
C guarantees that this value will not match that of any legitimate
pointer, so many functions that return pointers return NULL
to indicate an error.
The macro NULL is defined in stdio.h.
Types of the form size_t are defined in the appropriate header files.
References
ev_block(3event),
ev_count(3event),
ev_flush(3event),
ev_getdev(3event),
ev_getemask(3event),
ev_gindev(3event),
ev_init(3event),
ev_open(3event),
ev_pop(3event),
ev_read(3event),
ev_resume(3event),
ev_setemask(3event),
ev_suspend(3event)
Standards conformance
The libevent library is not part of any currently supported standard;
it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004