*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> copyb (9r)              



NAME    [Toc]    [Back]

       copyb - STREAMS: Copies a message block

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       MBLKP copyb(
               MBLKP message_block );

ARGUMENTS    [Toc]    [Back]

       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    [Toc]    [Back]

       The  copyb  interface  allocates  a  new message block and
       copies into it the data from the block pointed to  by  the
       message  block  (the message_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    [Toc]    [Back]

       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    [Toc]    [Back]

       Kernel Interfaces: allocb(9r)

       Programmer's Guide: STREAMS

[ Back ]
 Similar pages
Name OS Title
rmvb Tru64 STREAMS: Removes a message block from a message block
unlinkb Tru64 STREAMS: Removes a message block from the head of a message
allocb Tru64 STREAMS: Allocates a message block
msgb Tru64 Defines a STREAMS message block
freeb Tru64 STREAMS: Frees a message block
rmvq Tru64 STREAMS: Removes a message block from a queue
dupb Tru64 STREAMS: Duplicates a message block descriptor
copymsg Tru64 STREAMS: Copies a message to a new message
esballoc Tru64 STREAMS: Allocates a message block with a shared buffer
insq Tru64 STREAMS: Inserts a STREAMS message into a queue
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service