DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

ev_block(S)


ev_block -- wait until the queue contains an event

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_block()

Description

After a process has opened an event queue with ev_init and ev_open, ev_block causes the process to sleep until there is an event in the event queue.

Diagnostics

A call to ev_block returns -1 if the process does not have an open event queue, or if it is interrupted. It returns zero if it succeeds.

See also

ev_close(S), ev_count(S), ev_flush(S), ev_getdev(S), ev_getemask(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)

Standards conformance

ev_block is not part of any currently supported standard; it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003