Query: canput
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
canput(9r) canput(9r)NAMEcanput - STREAMS: Tests for room in a message queueSYNOPSIS#include <sys/stream.h> int canput( queue_t *message_queue );ARGUMENTSSpecifies a pointer to the message queue. The typedef queue_t is an alternate name for struct queue_entry *.DESCRIPTIONThe canput interface searches through the stream (starting at the message queue identified by the message_queue argument) until it finds a queue that contains a service interface where the message can be enqueued or until it reaches the end of the stream. If canput finds a service interface in a queue, it tests the queue to determine if there is space in the queue to accommodate a message. If the queue is full, canput sets the q_flag member of the queue_entry structure pointer (the message queue) to the constant QWANTW to back-enable the caller's service interface.NOTESYou are responsible for both testing a queue with canput and not placing a message on the queue if canput fails.RETURN VALUESThe canput interface returns a value of 1 if the message queue is not full. It returns the value zero(0) if the message queue is full.SEE ALSOKernel Interfaces: bcanput(9r), putbq(9r), putnext(9r) Programmer's Guide: STREAMS canput(9r)
Related Man Pages |
---|
bcanput(9r) - osf1 |
canput(9f) - centos |
canput(9f) - php |
canput(9f) - opendarwin |
canput(9f) - bsd |
Similar Topics in the Unix Linux Community |
---|
Moderation queue again |
queue is disabled |
Sending a structure through a message queue |
Permission denied when creating message queue |
Script to automate a service message |