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

  man pages->Tru64 Unix man pages -> copymsg (9r)              
Title
Content
Arch
Section
 

copymsg(9r)

Contents


NAME    [Toc]    [Back]

       copymsg - STREAMS: Copies a message to a new message

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       MBLKP copymsg(
               MBLKP message_block );

ARGUMENTS    [Toc]    [Back]

       Specifies  a pointer to the message block from which copymsg
 copies the data. (Actually, copymsg  calls  the  copyb
       interface  to  copy  the  data.)  The  typedef MBLKP is an
       alternate name for typedef struct msgb *.

DESCRIPTION    [Toc]    [Back]

       The copymsg interface: Forms a new message  by  allocating
       new message blocks Copies (by calling the copyb interface)
       the contents of  the  message  referred  to  by  the  message_block
  argument  Returns a pointer to the new message
       block.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the copymsg 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, copymsg returns a NULL pointer.

SEE ALSO    [Toc]    [Back]

      
      
       Kernel Interfaces: allocb(9r), copyb(9r)

       Programmer's Guide: STREAMS



                                                      copymsg(9r)
[ Back ]
 Similar pages
Name OS Title
copyb Tru64 STREAMS: Copies a message block
unlinkb Tru64 STREAMS: Removes a message block from the head of a message
freemsg Tru64 STREAMS: Frees all message blocks in a message
datamsg Tru64 STREAMS: Tests whether a message is a data message
insq Tru64 STREAMS: Inserts a STREAMS message into a queue
rmvb Tru64 STREAMS: Removes a message block from a message block
gss_unwrap HP-UX verify a message with attached message integrity code (MIC) and decrypt message content if necessary
gss_wrap HP-UX attach a message integrity code (MIC) to a message, and optionally encrypt the message content
dupmsg Tru64 STREAMS: Duplicates a message
allocb Tru64 STREAMS: Allocates a message block
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service