mq_close man page on DigitalUNIX

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

mq_close(3)							   mq_close(3)

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

       #include <mqueue.h>

       int mq_close ( mqd_t mqdes);

       Realtime Library (, librt.a)

       Specifies a message queue descriptor.

       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 associ‐
       ated with an open message queue description have been closed, the asso‐
       ciated  open message queue description is removed.  The message associ‐
       ated with the message queue will	 then  be  deleted  if	mq_unlink  was
       already called, or is called after all processes have closed the queue.

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

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

       Functions: mq_open(3), mq_unlink(3)

       Guide to Realtime Programming


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]
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