Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mq_close(3R) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mq_notify(3R)

mq_open(3R)

mq_unlink(3R)

attributes(5)

mq_close(3R)

NAME

mq_close − close a message queue

SYNOPSIS

cc [ flag ... ] file ... −lposix4 [ library ... ]

#include <mqueue.h>

int mq_close(mqd_t mqdes);

DESCRIPTION

mq_close() removes the association between the message queue descriptor, mqdes, and its message queue.

If the process (or thread) has registered a notification request to the message queue via this mqdes, this registration is removed and the message queue is available for another process to attach for notification.

RETURN VALUES

Upon successful completion, mq_close() returns 0; otherwise, the function returns -1 and sets errno to indicate the error condition. 

ERRORS

EBADF mqdes is an invalid message queue descriptor. 

ENOSYS sem_open() is not supported by this implementation. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

mq_notify(3R), mq_open(3R), mq_unlink(3R), attributes(5)

SunOS 5.6  —  Last change: 30 Dec 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026