OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / 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 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
27 .\" Translated 2006-04-23, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .TH MQ_UNLINK 3 2010-08-29 "Linux" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .SH Ì¾Á°
32 .\"O mq_unlink \- remove a message queue
33 mq_unlink \- ¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤òºï½ü¤¹¤ë
34 .\"O .SH SYNOPSIS
35 .SH ½ñ¼°
36 .nf
37 .B #include <mqueue.h>
38 .sp
39 .BI "int mq_unlink(const char *" name );
40 .fi
41 .sp
42 .\"O Link with \fI\-lrt\fP.
43 \fI\-lrt\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
44 .\"O .SH DESCRIPTION
45 .SH ÀâÌÀ
46 .\"O .BR mq_unlink ()
47 .\"O removes the specified message queue
48 .\"O .IR name .
49 .\"O The message queue name is removed immediately.
50 .\"O The queue itself is destroyed once any other processes that have
51 .\"O the queue open close their descriptors referring to the queue.
52 .BR mq_unlink ()
53 ¤Ï»ØÄꤵ¤ì¤¿¥á¥Ã¥»¡¼¥¸¥­¥å¡¼
54 .I name
55 ¤òºï½ü¤¹¤ë¡£
56 ¥á¥Ã¥»¡¼¥¸¥­¥å¡¼Ì¾¤Ïľ¤Á¤Ëºï½ü¤µ¤ì¤ë¡£
57 ¥­¥å¡¼¼«ÂΤϡ¢¤½¤Î¥­¥å¡¼¤ò¥ª¡¼¥×¥ó¤·¤¿Â¾¤Î¤¹¤Ù¤Æ¤Î¥×¥í¥»¥¹¤¬
58 ¤½¤Î¥­¥å¡¼¤ò»²¾È¤¹¤ëµ­½Ò»Ò¤ò¥¯¥í¡¼¥º¤·¤¿»þÅÀ¤ÇÇË´þ¤µ¤ì¤ë¡£
59 .\"O .SH RETURN VALUE
60 .SH ÊÖ¤êÃÍ
61 .\"O On success
62 .\"O .BR mq_unlink ()
63 .\"O returns 0; on error, \-1 is returned, with
64 .\"O .I errno
65 .\"O set to indicate the error.
66 À®¸ù¤¹¤ë¤È¡¢
67 .BR mq_unlink ()
68 ¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
69 .I errno
70 ¤Ë¥¨¥é¡¼¤ò¼¨¤¹ÃͤòÀßÄꤹ¤ë¡£
71 .\"O .SH ERRORS
72 .SH ¥¨¥é¡¼
73 .TP
74 .B EACCES
75 .\"O The caller does not have permission to unlink this message queue.
76 ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤¬¤³¤Î¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤òºï½ü (unlink) ¤¹¤ë
77 µö²Ä¤ò»ý¤¿¤Ê¤¤¡£
78 .TP
79 .B ENAMETOOLONG
80 .\"O .I name
81 .\"O was too long.
82 .I name
83 ¤¬Ä¹²á¤®¤ë¡£
84 .TP
85 .B ENOENT
86 .\"O There is no message queue with the given
87 .\"O .IR name .
88 »ØÄꤵ¤ì¤¿Ì¾Á°
89 .I name
90 ¤ò»ý¤Ä¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤¬Â¸ºß¤·¤Ê¤¤¡£
91 .\"O .SH CONFORMING TO
92 .SH ½àµò
93 POSIX.1-2001.
94 .\"O .SH "SEE ALSO"
95 .SH ´ØÏ¢¹àÌÜ
96 .BR mq_close (3),
97 .BR mq_getattr (3),
98 .BR mq_notify (3),
99 .BR mq_open (3),
100 .BR mq_receive (3),
101 .BR mq_send (3),
102 .BR mq_overview (7)