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       mqd_t mq_unlink(const char *name);
12

DESCRIPTION

14       mq_unlink()  removes  the  specified  message  queue name.  The message
15       queue name is removed immediately.  The queue itself is destroyed  once
16       any  other  processes  that have the queue open close their descriptors
17       referring to the queue.
18

RETURN VALUE

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

ERRORS

24       EACCES The  caller  does  not  have  permission  to unlink this message
25              queue.
26
27       ENAMETOOLONG
28              name was too long.
29
30       ENOENT There is no message queue with the given name.
31

CONFORMING TO

33       POSIX.1-2001.
34

SEE ALSO

36       mq_close(3), mq_getattr(3),  mq_notify(3),  mq_open(3),  mq_receive(3),
37       mq_send(3), mq_overview(7)
38
39
40
41Linux 2.6.16                      2006-02-25                      MQ_UNLINK(3)
Impressum