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 int 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 For an explanation of the terms used in this section, see
36 attributes(7).
37
38 ┌────────────┬───────────────┬─────────┐
39 │Interface │ Attribute │ Value │
40 ├────────────┼───────────────┼─────────┤
41 │mq_unlink() │ Thread safety │ MT-Safe │
42 └────────────┴───────────────┴─────────┘
44 POSIX.1-2001, POSIX.1-2008.
45
47 mq_close(3), mq_getattr(3), mq_notify(3), mq_open(3), mq_receive(3),
48 mq_send(3), mq_overview(7)
49
51 This page is part of release 5.02 of the Linux man-pages project. A
52 description of the project, information about reporting bugs, and the
53 latest version of this page, can be found at
54 https://www.kernel.org/doc/man-pages/.
55
56
57
58Linux 2015-08-08 MQ_UNLINK(3)