1MQ_CLOSE(3)                Linux Programmer's Manual               MQ_CLOSE(3)
2
3
4

NAME

6       mq_close - close a message queue descriptor
7

SYNOPSIS

9       #include <mqueue.h>
10
11       mqd_t mq_close(mqd_t mqdes);
12

DESCRIPTION

14       mq_close() closes the message queue descriptor mqdes.
15
16       If the calling process has attached a notification request to this mes‐
17       sage queue via mqdes, then this request is removed, and another process
18       can now attach a notification request.
19

NOTES

21       All  open  message  queues are automatically closed on process termina‐
22       tion, or upon execve(2).
23

RETURN VALUE

25       On success mq_close() returns 0; on error, -1 is returned,  with  errno
26       set to indicate the error.
27

ERRORS

29       EBADF  The descriptor specified in mqdes is invalid.
30

CONFORMING TO

32       POSIX.1-2001.
33

SEE ALSO

35       mq_getattr(3),  mq_notify(3),  mq_open(3),  mq_receive(3),  mq_send(3),
36       mq_unlink(3), mq_overview(7)
37
38
39
40Linux 2.6.16                      2006-02-25                       MQ_CLOSE(3)
Impressum