OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / sem_unlink.3
index a23d736..5de6655 100644 (file)
@@ -1,8 +1,7 @@
-'\" t
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
+.\" t
 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
 .\" Translated 2006-04-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\"
-.TH SEM_UNLINK 3 2006-03-25 "Linux" "Linux Programmer's Manual"
-.SH Ì¾Á°
-sem_unlink \- Ì¾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤òºï½ü¤¹¤ë
-.SH ½ñ¼°
+.TH SEM_UNLINK 3 2014\-02\-26 Linux "Linux Programmer's Manual"
+.SH 名前
+sem_unlink \- 名前付きセマフォを削除する
+.SH 書式
 .nf
-.B #include <semaphore.h>
+\fB#include <semaphore.h>\fP
 .sp
-.BI "int sem_unlink(const char *" name );
+\fBint sem_unlink(const char *\fP\fIname\fP\fB);\fP
 .fi
 .sp
-\fI\-lrt\fP ¤Þ¤¿¤Ï \fI\-pthread\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
-.SH ÀâÌÀ
-.BR sem_unlink ()
-¤Ï¡¢
-.I name
-¤Ç»²¾È¤µ¤ì¤ë̾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤òºï½ü¤¹¤ë¡£
-¥»¥Þ¥Õ¥©¤Î̾Á°¤Ïľ¤Á¤Ëºï½ü¤µ¤ì¤ë¡£
-¤³¤Î¥»¥Þ¥Õ¥©¤ò¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¾¤Î¤¹¤Ù¤Æ¤Î¥×¥í¥»¥¹¤¬¥»¥Þ¥Õ¥©¤ò
-ÊĤ¸¤Æ½é¤á¤Æ¥»¥Þ¥Õ¥©¤Îºï½ü¤¬¹Ô¤ï¤ì¤ë¡£
-.SH ÊÖ¤êÃÍ
-À®¸ù¤¹¤ë¤È¡¢
-.BR sem_unlink ()
-¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
-.I errno
-¤Ë¥¨¥é¡¼¤ò¼¨¤¹Ãͤò¥»¥Ã¥È¤¹¤ë¡£
-.SH ¥¨¥é¡¼
-.TP
-.B EACCES
-¸Æ¤Ó½Ð¤·¸µ¤Ë¤Ï¤³¤Î¥»¥Þ¥Õ¥©¤òºï½ü¤¹¤ëµö²Ä¤¬¤Ê¤¤¡£
-.TP
-.B ENAMETOOLONG
-.I name
-¤¬Ä¹¤¹¤®¤ë¡£
-.TP
-.B ENOENT
-»ØÄꤵ¤ì¤¿Ì¾Á°
-.I name
-¤Î¥»¥Þ¥Õ¥©¤¬Â¸ºß¤·¤Ê¤¤¡£
-.SH ½àµò
-POSIX.1-2001.
-.SH ´ØÏ¢¹àÌÜ
-.BR sem_getvalue (3),
-.BR sem_open (3),
-.BR sem_post (3),
-.BR sem_wait (3),
-.BR sem_overview (7)
+\fI\-pthread\fP とリンクする。
+.SH 説明
+\fBsem_unlink\fP()  は、 \fIname\fP で参照される名前付きセマフォを削除する。 セマフォの名前は直ちに削除される。
+このセマフォをオープンしている他のすべてのプロセスがセマフォを 閉じて初めてセマフォの削除が行われる。
+.SH 返り値
+成功すると、 \fBsem_unlink\fP()  は 0 を返す。エラーの場合、\-1 を返し、 \fIerrno\fP にエラーを示す値をセットする。
+.SH エラー
+.TP 
+\fBEACCES\fP
+呼び出し元にはこのセマフォを削除する許可がない。
+.TP 
+\fBENAMETOOLONG\fP
+\fIname\fP が長すぎる。
+.TP 
+\fBENOENT\fP
+指定された名前 \fIname\fP のセマフォが存在しない。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+\fBsem_unlink\fP() 関数はスレッドセーフである。
+.SH 準拠
+POSIX.1\-2001.
+.SH 関連項目
+\fBsem_getvalue\fP(3), \fBsem_open\fP(3), \fBsem_post\fP(3), \fBsem_wait\fP(3),
+\fBsem_overview\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。