waitcfree Kernel Service

Purpose

Checks the availability of a free character buffer.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/cblock.h>
#include <sys/sleep.h>
int waitcfree ( )

Description

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.

Execution Environment

The waitfree kernel service can be called from the process environment only.

Return Values

Item Description
EVENT_SUCC Indicates a successful operation.
EVENT_SIG Indicates that the wait was terminated by a signal.