ev_init(S) 6 January 1993 ev_init(S) Name ev_init - invokes the event manager Syntax cc . . . -levent #include <sys/types.h> #include <sys/param.h> #include <sys/sysmacros.h> #include <sys/page.h> #include <sys/event.h> #include <mouse.h> int ev_init() int ev_initf (fd) int fd; Description evinit reads the system event-configuration files and initializes the event manager. evinitf reads the system event-configuration files and initializes the event manager, using a file descriptor (fd) as argument to specify where the event queue should be attached. The file descriptor (fd) for evinit is always 0. This is the first of two steps that a program follows to obtain an event queue. Devices such as mice or the keyboard may be read through an event queue. When evinit or evinitf is called, the configuration files are read and checked for syntax. If there is an error or inconsistency, evinit and evinitf return an error. After the event manager is ini- tialized, evopen(S) should be called to obtain an event queue. Diagnostics evinit and evinitf return 0 if they succeed in reading the data files and initializing an event queue. Otherwise they return -1. See also evblock(S), evclose(S), evcount(S), evflush(S), evgetdev(S), evgetemask(S), evgindev(S), evopen(S), evpop(S), evread(S), evresume(S), evsetemask(S), evsuspend(S) Files /usr/lib/event/devices /usr/lib/event/ttys Standards conformance evinit and evinitf are not part of any currently supported standard; they are an extension of AT&T System V provided by the Santa Cruz Opera- tion.