DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer 5

testb(D3str)


testb -- test for an available buffer

Synopsis (Not in DDI)

#include <sys/stream.h>

int testb(int size, unsigned int pri);

Description

The testb routine checks for the availability of a message buffer of size size at priority pri (see ``Notes'' in the allocb(D3str) manual page) without actually retrieving the buffer.

Return values

testb returns 1 if the buffer is available and 0 if no buffer is available.

A successful return value from testb does not guarantee that a subsequent allocb call will succeed (for example, in the case of an interrupt routine taking buffers).

Usage

Context and synchronization

context

Hardware applicability

All

Version applicability

oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

allocb(D3str), bufcall(D3str), freeb(D3str)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005