osf1 man page for copyb

Query: copyb

OS: osf1

Section: 9r

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

copyb(9r)																 copyb(9r)

NAME
copyb - STREAMS: Copies a message block
SYNOPSIS
#include <sys/stream.h> MBLKP copyb( MBLKP message_block );
ARGUMENTS
Specifies a pointer to the message block from which copyb copies the data. The typedef MBLKP is an alternate name for typedef struct msgb *.
DESCRIPTION
The copyb interface allocates a new message block and copies into it the data from the block pointed to by the message block (the mes- sage_block argument). The new message block is at least as large as the message block being copied. The copyb interface uses the b_rptr and b_wptr members of the msgb structure pointer to determine how many bytes to copy.
RETURN VALUES
Upon successful completion, the copyb interface returns a pointer to the newly allocated message block that contains the copied data. This newly allocated message block is of type struct msgb *. The msgb data structure is defined in the /usr/sys/include/sys/stream.h file. Otherwise, copyb returns a NULL pointer.
SEE ALSO
Kernel Interfaces: allocb(9r) Programmer's Guide: STREAMS copyb(9r)
Related Man Pages
freeb(9f) - sunos
copyb(9f) - debian
copyb(9f) - centos
copyb(9f) - linux
copyb(9f) - posix
Similar Topics in the Unix Linux Community
Help with missing XML tag
Replacing matched patterns in multiple files with awk
Insert text after match in XML file
EBCDIC to ASCII conversion