OSDN Git Service

0a436821328cbacabc694d81ccaac20b265745bb
[linuxjm/LDP_man-pages.git] / draft / man3 / sem_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-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .TH SEM_UNLINK 3 2006-03-25 "Linux" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .SH 名前
32 .\"O sem_unlink \- remove a named semaphore
33 sem_unlink \- 名前付きセマフォを削除する
34 .\"O .SH SYNOPSIS
35 .SH 書式
36 .nf
37 .B #include <semaphore.h>
38 .sp
39 .BI "int sem_unlink(const char *" name );
40 .fi
41 .sp
42 .\"O Link with \fI\-lrt\fP or \fI\-pthread\fP.
43 \fI\-lrt\fP または \fI\-pthread\fP でリンクする。
44 .\"O .SH DESCRIPTION
45 .SH 説明
46 .\"O .BR sem_unlink ()
47 .\"O removes the named semaphore referred to by
48 .\"O .IR name .
49 .\"O The semaphore name is removed immediately.
50 .\"O The semaphore is destroyed once all other processes that have
51 .\"O the semaphore open close it.
52 .BR sem_unlink ()
53 は、
54 .I name
55 で参照される名前付きセマフォを削除する。
56 セマフォの名前は直ちに削除される。
57 このセマフォをオープンしている他のすべてのプロセスがセマフォを
58 閉じて初めてセマフォの削除が行われる。
59 .\"O .SH RETURN VALUE
60 .SH 返り値
61 .\"O On success
62 .\"O .BR sem_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 sem_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 semaphore.
76 呼び出し元にはこのセマフォを削除する許可がない。
77 .TP
78 .B ENAMETOOLONG
79 .\"O .I name
80 .\"O was too long.
81 .I name
82 が長すぎる。
83 .TP
84 .B ENOENT
85 .\"O There is no semaphore with the given
86 .\"O .IR name .
87 指定された名前
88 .I name
89 のセマフォが存在しない。
90 .\"O .SH CONFORMING TO
91 .SH 準拠
92 POSIX.1-2001.
93 .\"O .SH "SEE ALSO"
94 .SH 関連項目
95 .BR sem_getvalue (3),
96 .BR sem_open (3),
97 .BR sem_post (3),
98 .BR sem_wait (3),
99 .BR sem_overview (7)