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

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

adjmsg(9r)

Contents


NAME    [Toc]    [Back]

       adjmsg  -  STREAMS:  Removes the specified number of bytes
       from a message

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       int adjmsg(
               MBLKP message_ptr,
               int len_to_trim );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to the message that you want adjmsg to
       trim.   Specifies the number of bytes that you want adjmsg
       to remove (trim) from the message.

DESCRIPTION    [Toc]    [Back]

       The adjmsg interface removes a specified number  of  bytes
       from  a  message.  The  absolute  value of the len_to_trim
       argument specifies how many bytes that adjmsg removes.  If
       the  number of bytes passed to len_to_trim is greater than
       0 (zero), adjmsg removes bytes from the head of  the  message.
 If the number of bytes passed to len_to_trim is less
       than 0 (zero), adjmsg removes bytes from the tail  of  the
       message.

       The  adjmsg  interface  fails if the value you pass to the
       len_to_trim argument is greater than the number  of  bytes
       stored in the message pointer argument, message_ptr.

RETURN VALUES    [Toc]    [Back]

       If the adjmsg interface successfully trims the message, it
       returns the value 1. Otherwise, it  returns  the  value  0
       (zero).



                                                       adjmsg(9r)
[ Back ]
 Similar pages
Name OS Title
msgdsize Tru64 STREAMS: Returns the number of bytes in a message
unlinkb Tru64 STREAMS: Removes a message block from the head of a message
pullupmsg Tru64 STREAMS: Concatenates bytes in a message
flushq Tru64 STREAMS: Removes a message from a queue
STRMSGSZ HP-UX maximum size of streams message data (bytes)
strmsgsz HP-UX maximum size of streams message data (bytes)
strctlsz HP-UX maximum size of streams message control (bytes)
STRCTLSZ HP-UX maximum size of streams message control (bytes)
rmvq Tru64 STREAMS: Removes a message block from a queue
msgssz HP-UX number of bytes in a System V IPC message segment
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service