OSDN Git Service

c0c60bb284b7a143e6a79e2c17b58ca33f1a1876
[linuxjm/LDP_man-pages.git] / release / 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 .SH 名前
31 mq_unlink \- メッセージキューを削除する
32 .SH 書式
33 .nf
34 .B #include <mqueue.h>
35 .sp
36 .BI "int mq_unlink(const char *" name );
37 .fi
38 .sp
39 \fI\-lrt\fP でリンクする。
40 .SH 説明
41 .BR mq_unlink ()
42 は指定されたメッセージキュー
43 .I name
44 を削除する。
45 メッセージキュー名は直ちに削除される。
46 キュー自体は、そのキューをオープンした他のすべてのプロセスが
47 そのキューを参照する記述子をクローズした時点で破棄される。
48 .SH 返り値
49 成功すると、
50 .BR mq_unlink ()
51 は 0 を返す。エラーの場合、\-1 を返し、
52 .I errno
53 にエラーを示す値を設定する。
54 .SH エラー
55 .TP
56 .B EACCES
57 呼び出し元プロセスがこのメッセージキューを削除 (unlink) する
58 許可を持たない。
59 .TP
60 .B ENAMETOOLONG
61 .I name
62 が長過ぎる。
63 .TP
64 .B ENOENT
65 指定された名前
66 .I name
67 を持つメッセージキューが存在しない。
68 .SH 準拠
69 POSIX.1-2001.
70 .SH 関連項目
71 .BR mq_close (3),
72 .BR mq_getattr (3),
73 .BR mq_notify (3),
74 .BR mq_open (3),
75 .BR mq_receive (3),
76 .BR mq_send (3),
77 .BR mq_overview (7)