1mq_unlink(3) Library Functions Manual mq_unlink(3)
2
3
4
6 mq_unlink - remove a message queue
7
9 Real-time library (librt, -lrt)
10
12 #include <mqueue.h>
13
14 int mq_unlink(const char *name);
15
17 mq_unlink() removes the specified message queue name. The message
18 queue name is removed immediately. The queue itself is destroyed once
19 any other processes that have the queue open close their descriptors
20 referring to the queue.
21
23 On success mq_unlink() returns 0; on error, -1 is returned, with errno
24 set to indicate the error.
25
27 EACCES The caller does not have permission to unlink this message
28 queue.
29
30 ENAMETOOLONG
31 name was too long.
32
33 ENOENT There is no message queue with the given name.
34
36 For an explanation of the terms used in this section, see at‐
37 tributes(7).
38
39 ┌────────────────────────────────────────────┬───────────────┬─────────┐
40 │Interface │ Attribute │ Value │
41 ├────────────────────────────────────────────┼───────────────┼─────────┤
42 │mq_unlink() │ Thread safety │ MT-Safe │
43 └────────────────────────────────────────────┴───────────────┴─────────┘
44
46 POSIX.1-2008.
47
49 POSIX.1-2001.
50
52 mq_close(3), mq_getattr(3), mq_notify(3), mq_open(3), mq_receive(3),
53 mq_send(3), mq_overview(7)
54
55
56
57Linux man-pages 6.04 2023-03-30 mq_unlink(3)