DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ev_init(S-osr5)


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;\(L>

Description

ev_init reads the system event-configuration files and initializes the event manager.

ev_initf 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 ev_init 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 ev_init or ev_initf is called, the configuration files are read and checked for syntax. If there is an error or inconsistency, ev_init and ev_initf return an error. After the event manager is initialized, ev_open(S-osr5) should be called to obtain an event queue.

Diagnostics

ev_init and ev_initf return 0 if they succeed in reading the data files and initializing an event queue. Otherwise they return -1.

See also

ev_block(S-osr5), ev_close(S-osr5), ev_count(S-osr5), ev_flush(S-osr5), ev_getdev(S-osr5), ev_getemask(S-osr5), ev_gindev(S-osr5), ev_open(S-osr5), ev_pop(S-osr5), ev_read(S-osr5), ev_resume(S-osr5), ev_setemask(S-osr5), ev_suspend(S-osr5)

Files

/usr/lib/event/devices
/usr/lib/event/ttys

Standards conformance

ev_init and ev_initf are not part of any currently supported standard; they are an extension of AT&T System V provided by the Santa Cruz Operation.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005