Checks the availability of a free character buffer.
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/cblock.h>
#include <sys/sleep.h>
int waitcfree ( )
The waitcfree kernel service is used to wait for a buffer which was allocated by a previous call to the pincf kernel service. If one is not available, the waitcfree kernel service waits until either a character buffer becomes available or a signal is received.
The waitcfree kernel service has no parameters.
The waitfree kernel service can be called from the process environment only.
Item | Description |
---|---|
EVENT_SUCC | Indicates a successful operation. |
EVENT_SIG | Indicates that the wait was terminated by a signal. |