STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
195
NAME
putctl1 () – Send a control message with one data byte.
SYNOPSIS
#include <sys/stream.h>
int putctl1 (queue_t *q, int type, int parm);
PARAMETERS
q
Pointer to queue.
type
The type of the control message to be passed to the queue.
DESCRIPTION
putctl1() works exactly like putctl() with the addition that it allows a 1-byte parameter to be part of the
control message. The parameter addition allows for stronger control message functionality.
RETURN VALUES
putctl returns 1 on success and 0 on failure.
CONSTRAINTS
putctl1() can be called from thread or interrupt context. Spinlocks must not be held across the calls to this
function.