2 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH mq_unlink 3 (date) "Linux man-pages (unreleased)"
8 mq_unlink \- remove a message queue
11 .RI ( librt ", " \-lrt )
14 .B #include <mqueue.h>
16 .BI "int mq_unlink(const char *" name );
20 removes the specified message queue
22 The message queue name is removed immediately.
23 The queue itself is destroyed once any other processes that have
24 the queue open close their descriptors referring to the queue.
28 returns 0; on error, \-1 is returned, with
30 set to indicate the error.
34 The caller does not have permission to unlink this message queue.
41 There is no message queue with the given
44 For an explanation of the terms used in this section, see
52 Interface Attribute Value
55 T} Thread safety MT-Safe
61 POSIX.1-2001, POSIX.1-2008.