]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/mq_unlink.3
libc.7: Add a note on why glibc 2.x uses the soname libc.so.6
[thirdparty/man-pages.git] / man3 / mq_unlink.3
CommitLineData
80a99f39 1'\" t
c11b1abf 2.\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
80a99f39 3.\"
93015253 4.\" %%%LICENSE_START(VERBATIM)
80a99f39
MK
5.\" Permission is granted to make and distribute verbatim copies of this
6.\" manual provided the copyright notice and this permission notice are
7.\" preserved on all copies.
8.\"
9.\" Permission is granted to copy and distribute modified versions of this
10.\" manual under the conditions for verbatim copying, provided that the
11.\" entire resulting derived work is distributed under the terms of a
12.\" permission notice identical to this one.
c13182ef 13.\"
80a99f39
MK
14.\" Since the Linux kernel and libraries are constantly changing, this
15.\" manual page may be incorrect or out-of-date. The author(s) assume no
16.\" responsibility for errors or omissions, or for damages resulting from
10d76543
MK
17.\" the use of the information contained herein. The author(s) may not
18.\" have taken the same level of care in the production of this manual,
19.\" which is licensed free of charge, as they might when working
20.\" professionally.
c13182ef 21.\"
80a99f39
MK
22.\" Formatted or processed versions of this manual, if unaccompanied by
23.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 24.\" %%%LICENSE_END
80a99f39 25.\"
460495ca 26.TH MQ_UNLINK 3 2015-08-08 "Linux" "Linux Programmer's Manual"
80a99f39
MK
27.SH NAME
28mq_unlink \- remove a message queue
29.SH SYNOPSIS
30.nf
31.B #include <mqueue.h>
32.sp
c9e83f06 33.BI "int mq_unlink(const char *" name );
80a99f39 34.fi
1b2d3fca
MK
35.sp
36Link with \fI\-lrt\fP.
80a99f39
MK
37.SH DESCRIPTION
38.BR mq_unlink ()
39removes the specified message queue
40.IR name .
41The message queue name is removed immediately.
c13182ef 42The queue itself is destroyed once any other processes that have
80a99f39
MK
43the queue open close their descriptors referring to the queue.
44.SH RETURN VALUE
45On success
46.BR mq_unlink ()
47returns 0; on error, \-1 is returned, with
c13182ef 48.I errno
80a99f39
MK
49set to indicate the error.
50.SH ERRORS
51.TP
52.B EACCES
53The caller does not have permission to unlink this message queue.
54.TP
55.B ENAMETOOLONG
0daa9e92 56.I name
80a99f39
MK
57was too long.
58.TP
59.B ENOENT
60There is no message queue with the given
61.IR name .
76759642 62.SH ATTRIBUTES
24b3a75e
PH
63For an explanation of the terms used in this section, see
64.BR attributes (7).
65.TS
66allbox;
67lb lb lb
68l l l.
69Interface Attribute Value
70T{
76759642 71.BR mq_unlink ()
24b3a75e
PH
72T} Thread safety MT-Safe
73.TE
80a99f39 74.SH CONFORMING TO
1d49bedf 75POSIX.1-2001, POSIX.1-2008.
47297adb 76.SH SEE ALSO
80a99f39
MK
77.BR mq_close (3),
78.BR mq_getattr (3),
79.BR mq_notify (3),
80.BR mq_open (3),
81.BR mq_receive (3),
82.BR mq_send (3),
83.BR mq_overview (7)