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

  man pages->Tru64 Unix man pages -> mq_close (3)              



NAME    [Toc]    [Back]

       mq_close - Closes a message queue (P1003.1b)

SYNOPSIS    [Toc]    [Back]

       #include <mqueue.h>

       int mq_close ( mqd_t mqdes);

LIBRARY    [Toc]    [Back]

       Realtime Library (librt.so, librt.a)

PARAMETERS    [Toc]    [Back]

       Specifies a message queue descriptor.

DESCRIPTION    [Toc]    [Back]

       The  mq_close  function closes a message queue. This function
 removes the association  between  the  message  queue
       descriptor, mqdes, and its open message queue description.
       When all message queue descriptors associated with an open
       message queue description have been closed, the associated
       open message queue description is  removed.   The  message
       associated  with the message queue will then be deleted if
       mq_unlink was already called, or is called after all  processes
 have closed the queue.

RETURN VALUES    [Toc]    [Back]

       On successful completion, the function returns the value 0
       (zero); otherwise, the function returns the value  -1  and
       sets errno to indicate the error.

ERRORS    [Toc]    [Back]

       The  mq_close  function  fails  under the following conditions:
 The mqdes argument  is  an  invalid  message  queue
       descriptor.  An internal virtual memory error occurred.

SEE ALSO    [Toc]    [Back]

       Functions: mq_open(3), mq_unlink(3)

       Guide to Realtime Programming

[ Back ]
 Similar pages
Name OS Title
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)
mq_unlink Tru64 Removes a message queue (P1003.1b)
mq_send Tru64 Places a message in the message queue (P1003.1b)
mq_setattr Tru64 Sets the mq_options attributes associated with a message queue (P1003.1b)
mq_getattr Tru64 Returns the status and attributes of a message queue (P1003.1b)
mq_notify Tru64 Attaches a request for asynchronous signal notification to a message queue (P1003.1b)
msgrcv FreeBSD receive a message from a message queue
msgsnd NetBSD send a message to a message queue
mq_receive HP-UX receive a message from a message queue
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service