OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / mq_unlink.3
1 '\" t
2 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\"
4 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
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.
14 .\"
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
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .TH MQ_UNLINK 3 2010-08-29 "Linux" "Linux Programmer's Manual"
27 .SH NAME
28 mq_unlink \- remove a message queue
29 .SH SYNOPSIS
30 .nf
31 .B #include <mqueue.h>
32 .sp
33 .BI "int mq_unlink(const char *" name );
34 .fi
35 .sp
36 Link with \fI\-lrt\fP.
37 .SH DESCRIPTION
38 .BR mq_unlink ()
39 removes the specified message queue
40 .IR name .
41 The message queue name is removed immediately.
42 The queue itself is destroyed once any other processes that have
43 the queue open close their descriptors referring to the queue.
44 .SH RETURN VALUE
45 On success
46 .BR mq_unlink ()
47 returns 0; on error, \-1 is returned, with
48 .I errno
49 set to indicate the error.
50 .SH ERRORS
51 .TP
52 .B EACCES
53 The caller does not have permission to unlink this message queue.
54 .TP
55 .B ENAMETOOLONG
56 .I name
57 was too long.
58 .TP
59 .B ENOENT
60 There is no message queue with the given
61 .IR name .
62 .SH CONFORMING TO
63 POSIX.1-2001.
64 .SH "SEE ALSO"
65 .BR mq_close (3),
66 .BR mq_getattr (3),
67 .BR mq_notify (3),
68 .BR mq_open (3),
69 .BR mq_receive (3),
70 .BR mq_send (3),
71 .BR mq_overview (7)