]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/mq_unlink.3
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man3 / mq_unlink.3
CommitLineData
c11b1abf 1.\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
80a99f39 2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
80a99f39 4.\"
4c1c5274 5.TH mq_unlink 3 (date) "Linux man-pages (unreleased)"
80a99f39
MK
6.SH NAME
7mq_unlink \- remove a message queue
aae70faf
AC
8.SH LIBRARY
9Real-time library
8fc3b2cf 10.RI ( librt ", " \-lrt )
80a99f39
MK
11.SH SYNOPSIS
12.nf
13.B #include <mqueue.h>
68e4db0a 14.PP
c9e83f06 15.BI "int mq_unlink(const char *" name );
80a99f39
MK
16.fi
17.SH DESCRIPTION
18.BR mq_unlink ()
19removes the specified message queue
20.IR name .
21The message queue name is removed immediately.
c13182ef 22The queue itself is destroyed once any other processes that have
80a99f39
MK
23the queue open close their descriptors referring to the queue.
24.SH RETURN VALUE
25On success
26.BR mq_unlink ()
27returns 0; on error, \-1 is returned, with
c13182ef 28.I errno
80a99f39
MK
29set to indicate the error.
30.SH ERRORS
31.TP
32.B EACCES
33The caller does not have permission to unlink this message queue.
34.TP
35.B ENAMETOOLONG
0daa9e92 36.I name
80a99f39
MK
37was too long.
38.TP
39.B ENOENT
40There is no message queue with the given
41.IR name .
76759642 42.SH ATTRIBUTES
24b3a75e
PH
43For an explanation of the terms used in this section, see
44.BR attributes (7).
c466875e
MK
45.ad l
46.nh
24b3a75e
PH
47.TS
48allbox;
c466875e 49lbx lb lb
24b3a75e
PH
50l l l.
51Interface Attribute Value
52T{
76759642 53.BR mq_unlink ()
24b3a75e
PH
54T} Thread safety MT-Safe
55.TE
c466875e
MK
56.hy
57.ad
58.sp 1
3113c7f3 59.SH STANDARDS
1d49bedf 60POSIX.1-2001, POSIX.1-2008.
47297adb 61.SH SEE ALSO
80a99f39
MK
62.BR mq_close (3),
63.BR mq_getattr (3),
64.BR mq_notify (3),
65.BR mq_open (3),
66.BR mq_receive (3),
67.BR mq_send (3),
68.BR mq_overview (7)