adjmsg man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

adjmsg(9r)							    adjmsg(9r)

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

SYNOPSIS
       #include <sys/stream.h>

       int adjmsg(
	       MBLKP message_ptr,
	       int len_to_trim );

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

DESCRIPTION
       The  adjmsg  interface  removes a specified number of bytes from a mes‐
       sage. 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
       If the adjmsg interface successfully trims the message, it returns  the
       value 1. Otherwise, it returns the value 0 (zero).

								    adjmsg(9r)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net