EV_GETEMASK(S) UNIX System V EV_GETEMASK(S)
Name
ev_getemask - return the current event mask
Syntax
#include <types.h>
#include <param.h>
#include <sysmacros.h>
#include <page.h>
#include <event.h>
#include <mouse.h>
int ev_getemask(emaskp)
emask_t *emaskp;
Description
ev_getemask returns the current event mask. This call takes
a pointer to an event mask which is filled in. The program
must have already opened an event queue.
This call complements ev_setemask. The manual page for
ev_setemask describes an event mask in detail.
Diagnostics
ev_getemask returns -1 if there is no open event queue.
Otherwise it returns 0.
See Also
ev_block(S), ev_close(S), ev_count(S), ev_flush(S),
ev_getdev(S), ev_gindev(S), ev_init(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.
(printed 6/20/89)