1MQ_UNLINK(3) Linux Programmer's Manual MQ_UNLINK(3)
2
3
4
6 mq_unlink - remove a message queue
7
9 #include <mqueue.h>
10
11 mqd_t mq_unlink(const char *name);
12
13 Link with -lrt.
14
16 mq_unlink() removes the specified message queue name. The message
17 queue name is removed immediately. The queue itself is destroyed once
18 any other processes that have the queue open close their descriptors
19 referring to the queue.
20
22 On success mq_unlink() returns 0; on error, -1 is returned, with errno
23 set to indicate the error.
24
26 EACCES The caller does not have permission to unlink this message
27 queue.
28
29 ENAMETOOLONG
30 name was too long.
31
32 ENOENT There is no message queue with the given name.
33
35 POSIX.1-2001.
36
38 mq_close(3), mq_getattr(3), mq_notify(3), mq_open(3), mq_receive(3),
39 mq_send(3), mq_overview(7)
40
42 This page is part of release 3.22 of the Linux man-pages project. A
43 description of the project, and information about reporting bugs, can
44 be found at http://www.kernel.org/doc/man-pages/.
45
46
47
48Linux 2006-02-25 MQ_UNLINK(3)