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

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

putctl1(9r)

Contents


NAME    [Toc]    [Back]

       putctl1  -  Puts a control message with a 1-byte parameter
       on a queue

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       int putctl1(
               queue_t *queue_pointer,
               int type,
               int parameter );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to the queue to which the  message  is
       to  be  sent. The typedef queue_t is an alternate name for
       struct queue_entry *.  Specifies a message type  (must  be
       control  and not a data type).  Specifies a 1-byte parameter.

DESCRIPTION    [Toc]    [Back]

       Like the putctl interface, the putctl1 interface tests the
       type  argument to make sure a data type was not specified.
       It then attempts to allocate a message block. In addition,
       the  putctl1  interface can send a 1-byte parameter in the
       parameter argument. You can use the parameter for any purpose.
  For  example,  you can use this argument to specify
       how long the delay will be when sending  an  M_DELAY  message.
  The putctl1 interface fails if a message block cannot
 be allocated or  if  the  type  argument  is  M_DELAY,
       M_PROTO, or M_PCPROTO.

NOTES    [Toc]    [Back]

       The  putctl1  interface  calls  the putctl_comm interface,
       which actually performs the work of  sending  the  control
       message.

RETURN VALUES    [Toc]    [Back]

       Upon  successful  completion, putctl1 returns the value 1.
       The putctl1 interface fails if a message block  cannot  be
       allocated  or if the type argument is M_DELAY, M_PROTO, or
       M_PCPROTO.

SEE ALSO    [Toc]    [Back]

      
      
       Kernel Interfaces: allocb(9r), datamsg(9r), putctl(9r)

       Programmer's Guide: STREAMS



                                                      putctl1(9r)
[ Back ]
 Similar pages
Name OS Title
putctl Tru64 STREAMS: Puts a control message on a queue
putq Tru64 STREAMS: Puts a message on a queue
mq_open Tru64 Establishes the connection between a message queue and a message queue descriptor (P1003.1b)
mq_receive Tru64 Receives the oldest, highest-priority message from the message queue (P1003.1b)
dmParamsFlatten IRIX convert digital media parameter lists to and from byte strings
mq_send Tru64 Places a message in the message queue (P1003.1b)
msgsnd NetBSD send a message to a message queue
msgsnd FreeBSD send a message to a message queue
msgsnd OpenBSD send a message to a message queue
msgrcv OpenBSD receive a message from a message queue
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service