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.
|EVENT_SUCC||Indicates a successful operation.|
|EVENT_SIG||Indicates that the wait was terminated by a signal.|
The waitcfree kernel service is part of Base Operating System (BOS) Runtime.
The pincf kernel service, putc kernel service, putcb kernel service, putcbp kernel service, putcf kernel service, putcfl kernel service, putcx kernel service.
I/O Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.