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

NAME

6       mq_unlink - remove a message queue
7

SYNOPSIS

9       #include <mqueue.h>
10
11       int mq_unlink(const char *name);
12
13       Link with -lrt.
14

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

ATTRIBUTES

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

CONFORMING TO

44       POSIX.1-2001, POSIX.1-2008.
45

SEE ALSO

47       mq_close(3),  mq_getattr(3),  mq_notify(3),  mq_open(3), mq_receive(3),
48       mq_send(3), mq_overview(7)
49

COLOPHON

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)
Impressum