1mq_unlink(3)               Library Functions Manual               mq_unlink(3)
2
3
4

NAME

6       mq_unlink - remove a message queue
7

LIBRARY

9       Real-time library (librt, -lrt)
10

SYNOPSIS

12       #include <mqueue.h>
13
14       int mq_unlink(const char *name);
15

DESCRIPTION

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

RETURN VALUE

23       On success mq_unlink() returns 0; on error, -1 is returned, with  errno
24       set to indicate the error.
25

ERRORS

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

ATTRIBUTES

36       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
37       tributes(7).
38
39       ┌────────────────────────────────────────────┬───────────────┬─────────┐
40Interface                                   Attribute     Value   
41       ├────────────────────────────────────────────┼───────────────┼─────────┤
42mq_unlink()                                 │ Thread safety │ MT-Safe │
43       └────────────────────────────────────────────┴───────────────┴─────────┘
44

STANDARDS

46       POSIX.1-2008.
47

HISTORY

49       POSIX.1-2001.
50

SEE ALSO

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.05              2023-07-20                      mq_unlink(3)
Impressum