]>
Commit | Line | Data |
---|---|---|
80a99f39 MK |
1 | '\" t |
2 | .\" Hey Emacs! This file is -*- nroff -*- source. | |
3 | .\" | |
c11b1abf | 4 | .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com> |
80a99f39 MK |
5 | .\" |
6 | .\" Permission is granted to make and distribute verbatim copies of this | |
7 | .\" manual provided the copyright notice and this permission notice are | |
8 | .\" preserved on all copies. | |
9 | .\" | |
10 | .\" Permission is granted to copy and distribute modified versions of this | |
11 | .\" manual under the conditions for verbatim copying, provided that the | |
12 | .\" entire resulting derived work is distributed under the terms of a | |
13 | .\" permission notice identical to this one. | |
c13182ef | 14 | .\" |
80a99f39 MK |
15 | .\" Since the Linux kernel and libraries are constantly changing, this |
16 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
17 | .\" responsibility for errors or omissions, or for damages resulting from | |
c13182ef MK |
18 | .\" the use of the information contained herein. |
19 | .\" | |
80a99f39 MK |
20 | .\" Formatted or processed versions of this manual, if unaccompanied by |
21 | .\" the source, must acknowledge the copyright and authors of this work. | |
22 | .\" | |
d9343c5c | 23 | .TH MQ_UNLINK 3 2006-02-25 "Linux" "Linux Programmer's Manual" |
80a99f39 MK |
24 | .SH NAME |
25 | mq_unlink \- remove a message queue | |
26 | .SH SYNOPSIS | |
27 | .nf | |
28 | .B #include <mqueue.h> | |
29 | .sp | |
30 | .BI "mqd_t mq_unlink(const char *" name ); | |
31 | .fi | |
1b2d3fca MK |
32 | .sp |
33 | Link with \fI\-lrt\fP. | |
80a99f39 MK |
34 | .SH DESCRIPTION |
35 | .BR mq_unlink () | |
36 | removes the specified message queue | |
37 | .IR name . | |
38 | The message queue name is removed immediately. | |
c13182ef | 39 | The queue itself is destroyed once any other processes that have |
80a99f39 MK |
40 | the queue open close their descriptors referring to the queue. |
41 | .SH RETURN VALUE | |
42 | On success | |
43 | .BR mq_unlink () | |
44 | returns 0; on error, \-1 is returned, with | |
c13182ef | 45 | .I errno |
80a99f39 MK |
46 | set to indicate the error. |
47 | .SH ERRORS | |
48 | .TP | |
49 | .B EACCES | |
50 | The caller does not have permission to unlink this message queue. | |
51 | .TP | |
52 | .B ENAMETOOLONG | |
53 | .IR name | |
54 | was too long. | |
55 | .TP | |
56 | .B ENOENT | |
57 | There is no message queue with the given | |
58 | .IR name . | |
59 | .SH CONFORMING TO | |
60 | POSIX.1-2001. | |
61 | .SH "SEE ALSO" | |
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) |