OSDN Git Service

(split) LDP: Update draft pages (with po4a --force)
[linuxjm/LDP_man-pages.git] / draft / man7 / sem_overview.7
index 27c355d..0ab2c4e 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
+.\"
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
-.\" Translated 2006-04-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" Updated 2008-08-07, Akihiro MOTOKI, LDP v3.05
-.\" Updated 2009-02-23, Akihiro MOTOKI, LDP v3.19
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH SEM_OVERVIEW 7 2010-05-22 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O sem_overview \- Overview of POSIX semaphores
-sem_overview \- POSIX ¥»¥Þ¥Õ¥©¤Î³µÍ×
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O POSIX semaphores allow processes and threads to synchronize their actions.
-POSIX ¥»¥Þ¥Õ¥©¤ò»ÈÍѤ¹¤ë¤È¡¢¥×¥í¥»¥¹¤ä¥¹¥ì¥Ã¥É´Ö¤Ç¤½¤ÎÆ°ºî¤ò
-Ʊ´ü¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
+.\"*******************************************************************
+.TH SEM_OVERVIEW 7 2012\-05\-13 Linux "Linux Programmer's Manual"
+.SH 名前
+sem_overview \- POSIX セマフォの概要
+.SH 説明
+POSIX セマフォを使用すると、プロセスやスレッド間でその動作を 同期させることができる。
 
-.\"O A semaphore is an integer whose value is never allowed to fall below zero.
-.\"O Two operations can be performed on semaphores:
-.\"O increment the semaphore value by one
-.\"O .RB ( sem_post (3));
-.\"O and decrement the semaphore value by one
-.\"O .RB ( sem_wait (3)).
-.\"O If the value of a semaphore is currently zero, then a
-.\"O .BR sem_wait (3)
-.\"O operation will block until the value becomes greater than zero.
-¥»¥Þ¥Õ¥©¤ÏÀ°¿ô¤Ç¤¢¤ê¡¢¤½¤ÎÃͤϷ褷¤Æ 0 Ì¤Ëþ¤Ë¤Ê¤ë¤³¤È¤Ïµö¤µ¤ì¤Ê¤¤¡£
-¥»¥Þ¥Õ¥©¤ËÂФ·¤Æ¤Ç¤­¤ëÁàºî¤Ï 2 ¤Ä¤Ç¤¢¤ë:
-¥»¥Þ¥Õ¥©Ãͤò 1 Áý¤ä¤¹
-.RB ( sem_post (3));
-¥»¥Þ¥Õ¥©Ãͤò 1 ¸º¤é¤¹
-.RB ( sem_wait (3))¡£
-¥»¥Þ¥Õ¥©¤ÎÃͤ¬¤¹¤Ç¤Ë 0 ¤Î¾ì¹ç¡¢¥»¥Þ¥Õ¥©Ãͤ¬ 0 ¤è¤êÂ礭¤¯¤Ê¤ë¤Þ¤Ç
-.BR sem_wait (3)
-Áàºî¤ÏÄä»ß (block) ¤¹¤ë¡£
+セマフォは整数であり、その値は決して 0 未満になることは許されない。 セマフォに対してできる操作は 2 つである: セマフォ値を 1 増やす
+(\fBsem_post\fP(3)); セマフォ値を 1 減らす (\fBsem_wait\fP(3))。 セマフォの値がすでに 0 の場合、セマフォ値が 0
+より大きくなるまで \fBsem_wait\fP(3)  操作は停止 (block) する。
 
-.\"O POSIX semaphores come in two forms: named semaphores and
-.\"O unnamed semaphores.
-POSIX ¥»¥Þ¥Õ¥©¤Ë¤Ï¡¢Ì¾Á°ÉÕ¤­¥»¥Þ¥Õ¥© (named semaphore) ¤È
-̾Á°¤Ê¤·¥»¥Þ¥Õ¥© (unnamed semaphore) ¤Î 2¤Ä¤Î·Á¤¬¤¢¤ë¡£
-.TP
-.\"O .B Named semaphores
-.B Ì¾Á°ÉÕ¤­¥»¥Þ¥Õ¥©
-.\"O A named semaphore is identified by a name of the form
-.\"O .IR /somename ;
-.\"O that is, a null-terminated string of up to
-.\"O .BI NAME_MAX \-4
-.\"O (i.e., 251) characters consisting of an initial slash,
-̾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤Ï
-.I /somename
-¤È¤¤¤¦·Á¼°¤Î̾Á°¤Ç¼±Ê̤µ¤ì¤ë¡£
-¤½¤Î̾Á°¤Ï¡¢ºÇÂç¤Ç
-.BI NAME_MAX \-4
-(¤¹¤Ê¤ï¤Á 251) Ê¸»ú¤Î NULL ½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤Ç¡¢
+POSIX セマフォには、名前付きセマフォ (named semaphore) と 名前なしセマフォ (unnamed semaphore) の
+2つの形がある。
+.TP 
+\fB名前付きセマフォ\fP
 .\" glibc allows the initial slash to be omitted, and makes
 .\" multiple initial slashes equivalent to a single slash.
 .\" This differs from the implementation of POSIX message queues.
-.\"O followed by one or more characters, none of which are slashes.
-¥¹¥é¥Ã¥·¥å¤Ç»Ï¤Þ¤ê¡¢¥¹¥é¥Ã¥·¥å°Ê³°¤Îʸ»ú¤¬ 1 Ê¸»ú°Ê¾å³¤¯·Á¼°¤Ç¤¢¤ë¡£
 .\" glibc allows subdirectory components in the name, in which
 .\" case the subdirectory tree must exist under /dev/shm, and
 .\" the fist subdirectory component must exist as the name
 .\" sem.name, and all of the subdirectory components must allow the
 .\" required permissions if a user wants to create a semaphore
 .\" object in a subdirectory.
-.\"O Two processes can operate on the same named semaphore by passing
-.\"O the same name to
-.\"O .BR sem_open (3).
-.BR sem_open (3)
-¤ËƱ¤¸Ì¾Á°¤òÅϤ¹¤³¤È¤Ë¤è¤ê¡¢2 ¤Ä¤Î¥×¥í¥»¥¹´Ö¤ÇƱ¤¸Ì¾Á°¤Î¥»¥Þ¥Õ¥©
-¤ËÂФ·Áàºî¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
+名前付きセマフォは \fI/somename\fP という形式の名前で識別される。 その名前は、最大で \fBNAME_MAX\fP\fI\-4\fP (すなわち 251)
+文字の NULL 終端された文字列で、 スラッシュで始まり、スラッシュ以外の文字が 1 文字以上続く形式である。 \fBsem_open\fP(3)
+に同じ名前を渡すことにより、2 つのプロセス間で同じ名前のセマフォ に対し操作を行うことができる。
 
-.\"O The
-.\"O .BR sem_open (3)
-.\"O function creates a new named semaphore or opens an existing
-.\"O named semaphore.
-.\"O After the semaphore has been opened, it can be operated on using
-.\"O .BR sem_post (3)
-.\"O and
-.\"O .BR sem_wait (3).
-.\"O When a process has finished using the semaphore, it can use
-.\"O .BR sem_close (3)
-.\"O to close the semaphore.
-.\"O When all processes have finished using the semaphore,
-.\"O it can be removed from the system using
-.\"O .BR sem_unlink (3).
-.BR sem_open (3)
-´Ø¿ô¤Ï¡¢¿·¤·¤¤Ì¾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤òºîÀ®¤¹¤ë¤«¡¢´û¤Ë¸ºß¤¹¤ë̾Á°ÉÕ¤­
-¥»¥Þ¥Õ¥©¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£
-¥»¥Þ¥Õ¥©¤ò¥ª¡¼¥×¥ó¤·¤¿¸å¤Ï¡¢
-.BR sem_post (3)
-¤È
-.BR sem_wait (3)
-¤ò»È¤Ã¤Æ¥»¥Þ¥Õ¥©¤òÁàºî¤Ç¤­¤ë¡£
-¥×¥í¥»¥¹¤¬¥»¥Þ¥Õ¥©¤Î»ÈÍѤò½ª¤¨¤¿ºÝ¤Ï¡¢
-.BR sem_close (3)
-¤ò»È¤Ã¤Æ¥»¥Þ¥Õ¥©¤ò¥¯¥í¡¼¥º¤Ç¤­¤ë¡£
-¤¢¤ë¥»¥Þ¥Õ¥©¤ò¤É¤Î¥×¥í¥»¥¹¤â»ÈÍѤ·¤Ê¤¯¤Ê¤ë¤È¡¢
-.BR sem_unlink (3)
-¤ò»È¤Ã¤Æ¤½¤Î¥»¥Þ¥Õ¥©¤ò¥·¥¹¥Æ¥à¤«¤éºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
-.TP
-.\"O .B Unnamed semaphores (memory-based semaphores)
-.B Ì¾Á°¤Ê¤·¥»¥Þ¥Õ¥© (¥á¥â¥ê¥Ù¡¼¥¹¡¦¥»¥Þ¥Õ¥©)
-.\"O An unnamed semaphore does not have a name.
-.\"O Instead the semaphore is placed in a region of memory that
-.\"O is shared between multiple threads (a
-.\"O .IR "thread-shared semaphore" )
-.\"O or processes (a
-.\"O .IR "process-shared semaphore" ).
-.\"O A thread-shared semaphore is placed in an area of memory shared
-.\"O between by the threads of a process, for example, a global variable.
-.\"O A process-shared semaphore must be placed in a shared memory region
-.\"O (e.g., a System V shared memory segment created using
-.\"O .BR shmget (2),
-.\"O or a POSIX shared memory object built created using
-.\"O .BR shm_open (3)).
-̾Á°¤Ê¤·¥»¥Þ¥Õ¥©¤Ï̾Á°¤ò»ý¤¿¤Ê¤¤¡£¤½¤ÎÂå¤ï¤ê¡¢¥»¥Þ¥Õ¥©¤Ï¡¢
-Ê£¿ô¥¹¥ì¥Ã¥É´Ö¤Ç¶¦Í­¤µ¤ì¤¿¥á¥â¥êÎΰ衢¤â¤·¤¯¤ÏÊ£¿ô¥×¥í¥»¥¹´Ö¤Ç
-¶¦Í­¤µ¤ì¤¿¥á¥â¥êÎΰè¤ËÃÖ¤«¤ì¤ë (Á°¼Ô¤ò
-.IR "¥¹¥ì¥Ã¥É¶¦Í­¥»¥Þ¥Õ¥© (thread-shared semaphore)" ¡¢
-¸å¼Ô¤ò
-.IR "¥×¥í¥»¥¹¶¦Í­¥»¥Þ¥Õ¥© (process-shared semaphore)"
-¤È¸Æ¤Ö)¡£¥¹¥ì¥Ã¥É¶¦Í­¥»¥Þ¥Õ¥©¤Ï¡¢Æ±¤¸¥×¥í¥»¥¹Æâ¤Î¥¹¥ì¥Ã¥É´Ö¤Ç¶¦Í­¤µ¤ì¤¿
-¥á¥â¥êÎΰ衢Î㤨¤ÐÂç°èÊÑ¿ô (global variable) ¤ËÇÛÃÖ¤µ¤ì¤ë¡£
-¥×¥í¥»¥¹¶¦Í­¥»¥Þ¥Õ¥©¤Ï¡¢¶¦Í­¥á¥â¥êÎΰè (Î㤨¤Ð¡¢
-.BR shmget (2)
-¤ò»È¤Ã¤ÆºîÀ®¤Ç¤­¤ë System V ¶¦Í­¥á¥â¥ê¡¦¥»¥°¥á¥ó¥È¤ä
-.BR shm_open (3)
-¤ò»È¤Ã¤ÆºîÀ®¤Ç¤­¤ë POSIX ¶¦Í­¥á¥â¥ê¡¦¥ª¥Ö¥¸¥§¥¯¥È)
-Æâ¤ËÇÛÃÖ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
+\fBsem_open\fP(3)  関数は、新しい名前付きセマフォを作成するか、既に存在する名前付き セマフォをオープンする。 セマフォをオープンした後は、
+\fBsem_post\fP(3)  と \fBsem_wait\fP(3)  を使ってセマフォを操作できる。 プロセスがセマフォの使用を終えた際は、
+\fBsem_close\fP(3)  を使ってセマフォをクローズできる。 あるセマフォをどのプロセスも使用しなくなると、 \fBsem_unlink\fP(3)
+を使ってそのセマフォをシステムから削除することができる。
+.TP 
+\fB名前なしセマフォ (メモリベース・セマフォ)\fP
+名前なしセマフォは名前を持たない。その代わり、セマフォは、 複数スレッド間で共有されるメモリ領域、もしくは複数プロセス間で
+共有されたメモリ領域に置かれる (前者を \fIスレッド共有セマフォ (thread\-shared semaphore)\fP、 後者を
+\fIプロセス共有セマフォ (process\-shared semaphore)\fP
+と呼ぶ)。スレッド共有セマフォは、同じプロセス内のスレッド間で共有される メモリ領域、例えば大域変数 (global variable) に配置される。
+プロセス共有セマフォは、共有メモリ領域 (例えば、 \fBshmget\fP(2)  を使って作成できる System V 共有メモリ・セグメントや
+\fBshm_open\fP(3)  を使って作成できる POSIX 共有メモリ・オブジェクト)  内に配置しなければならない。
 
-.\"O Before being used, an unnamed semaphore must be initialized using
-.\"O .BR sem_init (3).
-.\"O It can then be operated on using
-.\"O .BR sem_post (3)
-.\"O and
-.\"O .BR sem_wait (3).
-.\"O When the semaphore is no longer required,
-.\"O and before the memory in which it is located is deallocated,
-.\"O the semaphore should be destroyed using
-.\"O .BR sem_destroy (3).
-̾Á°¤Ê¤·¥»¥Þ¥Õ¥©¤Ï¡¢»ÈÍѤ¹¤ëÁ°¤Ë
-.BR sem_init (3)
-¤ò»È¤Ã¤Æ½é´ü²½¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
-¥»¥Þ¥Õ¥©¤Ï
-.BR sem_post (3)
-¤È
-.BR sem_wait (3)
-¤ò»È¤Ã¤ÆÁàºî¤Ç¤­¤ë¡£
-¥»¥Þ¥Õ¥©¤¬¤â¤Ï¤äɬÍפʤ¯¤Ê¤Ã¤¿¤È¤­¤ä¡¢
-¥»¥Þ¥Õ¥©¤¬ÃÖ¤«¤ì¤Æ¤¤¤ë¥á¥â¥ê¤ò²òÊü¤¹¤ëÁ°¤Ë¤Ï¡¢
-.BR sem_destroy (3)
-¤ò»È¤Ã¤Æ¥»¥Þ¥Õ¥©¤òÇË´þ¤¹¤Ù¤­¤Ç¤¢¤ë¡£
+名前なしセマフォは、使用する前に \fBsem_init\fP(3)  を使って初期化しなければならない。 セマフォは \fBsem_post\fP(3)  と
+\fBsem_wait\fP(3)  を使って操作できる。 セマフォがもはや必要なくなったときや、 セマフォが置かれているメモリを解放する前には、
+\fBsem_destroy\fP(3)  を使ってセマフォを破棄すべきである。
 .PP
-.\"O The remainder of this section describes some specific details
-.\"O of the Linux implementation of POSIX semaphores.
-¤³¤ÎÀá¤Î»Ä¤ê¤Ç¤Ï¡¢POSIX ¥»¥Þ¥Õ¥©¤Î Linux ¤Î¼ÂÁõ¤Î¾ÜºÙ
-¤Ë¤Ä¤¤¤ÆÀâÌÀ¤¹¤ë¡£
-.\"O .SS Versions
-.SS ¥Ð¡¼¥¸¥ç¥ó
-.\"O Prior to kernel 2.6, Linux only supported unnamed,
-.\"O thread-shared semaphores.
-.\"O On a system with Linux 2.6 and a glibc that provides the NPTL
-.\"O threading implementation,
-.\"O a complete implementation of POSIX semaphores is provided.
-¥Ð¡¼¥¸¥ç¥ó 2.6 ¤è¤êÁ°¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢Linux ¤Ï
-̾Á°¤Ê¤·¤Î¥¹¥ì¥Ã¥É¶¦Í­¥»¥Þ¥Õ¥©¤Î¤ß¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤¿¡£
-Linux 2.6 ¤È NPTL ¥¹¥ì¥Ã¥É¼ÂÁõ¤òÄ󶡤·¤Æ¤¤¤ë glibc ¤¬Æþ¤Ã¤¿
-¥·¥¹¥Æ¥à¤Ç¤Ï¡¢POSIX ¥»¥Þ¥Õ¥©¤Î´°Á´¤Ê¼ÂÁõ¤¬Ä󶡤µ¤ì¤ë¡£
-.\"O .SS Persistence
-.SS »ý³À­
-.\"O POSIX named semaphores have kernel persistence:
-.\"O if not removed by
-.\"O .BR sem_unlink (3),
-.\"O a semaphore will exist until the system is shut down.
-POSIX Ì¾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤Ï¥«¡¼¥Í¥ëÆâ¤ÇÊÝ»ý¤µ¤ì¤ë¡£
-.BR sem_unlink (3)
-¤Çºï½ü¤µ¤ì¤Ê¤±¤ì¤Ð¡¢¥»¥Þ¥Õ¥©¤Ï
-¥·¥¹¥Æ¥à¤¬¥·¥ã¥Ã¥È¥À¥¦¥ó¤µ¤ì¤ë¤Þ¤Ç¸ºß¤·Â³¤±¤ë¡£
-.\"O .SS Linking
-.SS ¥ê¥ó¥¯
-.\"O Programs using the POSIX semaphores API must be compiled with
-.\"O .I cc \-lrt
-.\"O to link against the real-time library,
-.\"O .IR librt .
-POSIX ¥»¥Þ¥Õ¥© API ¤ò»ÈÍѤ·¤¿¥×¥í¥°¥é¥à¤Ï
-.I cc \-lrt
-¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¡¢¥ê¥¢¥ë¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê
-.I librt
-¤È¥ê¥ó¥¯¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
-.\"O .SS Accessing named semaphores via the file system
-.SS ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à·Ðͳ¤Ç¤Î̾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤Ø¤Î¥¢¥¯¥»¥¹
-.\"O On Linux, named semaphores are created in a virtual file system,
-.\"O normally mounted under
-.\"O .IR /dev/shm ,
-.\"O with names of the form
-.\"O .IR \fBsem.\fPsomename .
-Linux ¤Ç¤Ï¡¢Ì¾Á°ÉÕ¤­¥»¥Þ¥Õ¥©¤Ï²¾ÁÛ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
-(virtual file system) Æâ¤Ë
-.I \fBsem.\fPsomename
-¤È¤¤¤¦·Á¤Î̾Á°¤ÇºîÀ®¤µ¤ì¤ë¡£²¾ÁÛ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÏÄ̾ï
-.I /dev/shm
-°Ê²¼¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤ë¡£
-.\"O (This is the reason that semaphore names are limited to
-.\"O .BI NAME_MAX \-4
-.\"O rather than
-.\"O .B NAME_MAX
-.\"O characters.)
-(¤³¤ì¤¬¡¢¥»¥Þ¥Õ¥©¤Î̾Á°¤Îʸ»ú¿ô¤Î¾å¸Â¤¬
-.B NAME_MAX
-¤Ç¤Ï¤Ê¤¯
-.BI NAME_MAX \-4
-¤È¤Ê¤Ã¤Æ¤¤¤ëÍýͳ¤Ç¤¢¤ë¡£)
+この節の残りでは、POSIX セマフォの Linux の実装の詳細 について説明する。
+.SS Versions
+バージョン 2.6 より前のカーネルでは、Linux は 名前なしのスレッド共有セマフォのみをサポートしていた。 Linux 2.6 と NPTL
+スレッド実装を提供している glibc が入った システムでは、POSIX セマフォの完全な実装が提供される。
+.SS 持続性
+POSIX 名前付きセマフォはカーネル内で保持される。 \fBsem_unlink\fP(3)  で削除されなければ、セマフォは
+システムがシャットダウンされるまで存在し続ける。
+.SS リンク
+POSIX セマフォ API を使用したプログラムは \fIcc \-pthread\fP でコンパイルし、リアルタイムライブラリ \fIlibrt\fP
+とリンクしなければならない。
+.SS ファイルシステム経由での名前付きセマフォへのアクセス
+Linux では、名前付きセマフォは仮想ファイルシステム (virtual file system) 内に \fBsem.\fP\fIsomename\fP
+という形の名前で作成される。仮想ファイルシステムは通常 \fI/dev/shm\fP 以下にマウントされる。 (これが、セマフォの名前の文字数の上限が
+\fBNAME_MAX\fP ではなく \fBNAME_MAX\fP\fI\-4\fP となっている理由である。)
 
-.\"O Since Linux 2.6.19, ACLs can be placed on files under this directory,
-.\"O to control object permissions on a per-user and per-group basis.
-Linux 2.6.19 °Ê¹ß¤Ç¤Ï¡¢¤³¤Î¥Ç¥£¥ì¥¯¥È¥êÇÛ²¼¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ ACL ¤ò
-ÀßÄê¤Ç¤­¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ø¤Îµö²Ä¤ò¥æ¡¼¥¶Ã±°Ì¡¢¥°¥ë¡¼¥×ñ°Ì¤ÇÀ©¸æ¤¹¤ë¤³¤È¤¬
-¤Ç¤­¤ë¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-POSIX.1-2001.
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O System V semaphores
-.\"O .RB ( semget (2),
-.\"O .BR semop (2),
-.\"O etc.) are an older semaphore API.
-.\"O POSIX semaphores provide a simpler, and better designed interface than
-.\"O System V semaphores;
-.\"O on the other hand POSIX semaphores are less widely available
-.\"O (especially on older systems) than System V semaphores.
-System V ¥»¥Þ¥Õ¥©
-.RB ( semget (2),
-.BR semop (2)
-¤Ê¤É) ¤Ï¸Å¤¤¥»¥Þ¥Õ¥© API ¤Ç¤¢¤ë¡£ POSIX ¥»¥Þ¥Õ¥©¤Ï System V ¤è¤ê¤â
-´Êñ¤Ç¡¢¤¦¤Þ¤¯À߷פµ¤ì¤¿¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Æ¤¤¤ë¡£
-°ìÊý¤Ç¡¢POSIX ¥»¥Þ¥Õ¥©¤Ï System V ¥»¥Þ¥Õ¥©¤ÈÈæ¤Ù¤ë¤È
-ÍøÍѤǤ­¤ë¥·¥¹¥Æ¥à¤¬¾¯¤Ê¤¤ (Æäˡ¢¸Å¤¤¥·¥¹¥Æ¥à¤Ç¤Ï¾¯¤Ê¤¤)¡£
-.\"O .SH EXAMPLE
-.SH Îã
-.\"O An example of the use of various POSIX semaphore functions is shown in
-.\"O .BR sem_wait (3).
-³Æ¼ï¤Î POSIX ¥»¥Þ¥Õ¥©´Ø¿ô¤ò»ÈÍѤ·¤¿Î㤬
-.BR sem_wait (3)
-¤Ëµ­ºÜ¤µ¤ì¤Æ¤¤¤ë¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR sem_close (3),
-.BR sem_destroy (3),
-.BR sem_getvalue (3),
-.BR sem_init (3),
-.BR sem_open (3),
-.BR sem_post (3),
-.BR sem_unlink (3),
-.BR sem_wait (3),
-.BR pthreads (7)
+Linux 2.6.19 以降では、このディレクトリ配下のファイルに対して ACL を
+設定でき、オブジェクトへの許可をユーザ単位、グループ単位で制御することが できる。
+.SH 準拠
+POSIX.1\-2001.
+.SH 注意
+System V セマフォ (\fBsemget\fP(2), \fBsemop\fP(2)  など) は古いセマフォ API である。 POSIX セマフォは
+System V よりも 簡単で、うまく設計されたインタフェースを提供している。 一方で、POSIX セマフォは System V セマフォと比べると
+利用できるシステムが少ない (特に、古いシステムでは少ない)。
+.SH 例
+各種の POSIX セマフォ関数を使用した例が \fBsem_wait\fP(3)  に記載されている。
+.SH 関連項目
+\fBsem_close\fP(3), \fBsem_destroy\fP(3), \fBsem_getvalue\fP(3), \fBsem_init\fP(3),
+\fBsem_open\fP(3), \fBsem_post\fP(3), \fBsem_unlink\fP(3), \fBsem_wait\fP(3),
+\fBpthreads\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。