Query: copyb
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
copyb(9r) copyb(9r)NAMEcopyb - STREAMS: Copies a message blockSYNOPSIS#include <sys/stream.h> MBLKP copyb( MBLKP message_block );ARGUMENTSSpecifies a pointer to the message block from which copyb copies the data. The typedef MBLKP is an alternate name for typedef struct msgb *.DESCRIPTIONThe 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 VALUESUpon 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 ALSOKernel Interfaces: allocb(9r) Programmer's Guide: STREAMS copyb(9r)
| Related Man Pages |
|---|
| freeb(9f) - debian |
| copyb(9f) - redhat |
| copyb(9f) - hpux |
| copyb(9f) - posix |
| copyb(9f) - freebsd |
| Similar Topics in the Unix Linux Community |
|---|
| Moving files from one directory to another based on 2 date variables |
| Help with djbdns code |
| Help with missing XML tag |
| Insert text after match in XML file |