]>
Commit | Line | Data |
---|---|---|
c11b1abf | 1 | .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com> |
80a99f39 | 2 | .\" |
5fbde956 | 3 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
80a99f39 | 4 | .\" |
45186a5d | 5 | .TH MQ_UNLINK 3 2021-03-22 "Linux man-pages (unreleased)" |
80a99f39 MK |
6 | .SH NAME |
7 | mq_unlink \- remove a message queue | |
aae70faf AC |
8 | .SH LIBRARY |
9 | Real-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 () | |
19 | removes the specified message queue | |
20 | .IR name . | |
21 | The message queue name is removed immediately. | |
c13182ef | 22 | The queue itself is destroyed once any other processes that have |
80a99f39 MK |
23 | the queue open close their descriptors referring to the queue. |
24 | .SH RETURN VALUE | |
25 | On success | |
26 | .BR mq_unlink () | |
27 | returns 0; on error, \-1 is returned, with | |
c13182ef | 28 | .I errno |
80a99f39 MK |
29 | set to indicate the error. |
30 | .SH ERRORS | |
31 | .TP | |
32 | .B EACCES | |
33 | The caller does not have permission to unlink this message queue. | |
34 | .TP | |
35 | .B ENAMETOOLONG | |
0daa9e92 | 36 | .I name |
80a99f39 MK |
37 | was too long. |
38 | .TP | |
39 | .B ENOENT | |
40 | There is no message queue with the given | |
41 | .IR name . | |
76759642 | 42 | .SH ATTRIBUTES |
24b3a75e PH |
43 | For 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 |
48 | allbox; | |
c466875e | 49 | lbx lb lb |
24b3a75e PH |
50 | l l l. |
51 | Interface Attribute Value | |
52 | T{ | |
76759642 | 53 | .BR mq_unlink () |
24b3a75e PH |
54 | T} Thread safety MT-Safe |
55 | .TE | |
c466875e MK |
56 | .hy |
57 | .ad | |
58 | .sp 1 | |
3113c7f3 | 59 | .SH STANDARDS |
1d49bedf | 60 | POSIX.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) |