EV_INIT(S) UNIX System V EV_INIT(S)
Name
ev_init - invokes the event manager
Syntax
#include <types.h>
#include <param.h>
#include <sysmacros.h>
#include <page.h>
#include <event.h>
#include <mouse.h>
int ev_init()
Description
ev_init reads the system event-configuration files and
initializes the event manager. It is the first of two steps
a program follows to obtain an event queue. Devices like
mice or the keyboard may be read through an event queue.
When ev_init is called, the configuration files are read and
checked for syntax. If there is an error or inconsistency,
ev_init returns an error. After the event manager is
initialized, ev_open should be called to obtain an event
queue.
Diagnostics
ev_init returns 0 if it succeeds in reading the data files
and initializing an event queue. Otherwise it returns -1.
See Also
ev_block(S), ev_close(S), ev_count(S), ev_flush(S),
ev_getdev(S), ev_getemask(S), ev_gindev(S), ev_open(S),
ev_pop(S), ev_read(S), ev_resume(S), ev_setemask(S),
ev_suspend(S)
Notes
This routine must be linked in with the -levent linker
option.
Files
/usr/lib/event/devices
/usr/lib/event/ttys
(printed 6/20/89)