OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / sem_getvalue.3
index 527340b..7bbd874 100644 (file)
 .\"
 .TH SEM_GETVALUE 3 2006-03-25 "Linux" "Linux Programmer's Manual"
 .\"O .SH NAME
-.SH Ì¾Á°
+.SH 名前
 .\"O sem_getvalue \- get the value of a semaphore
-sem_getvalue \- ¥»¥Þ¥Õ¥©¤ÎÃͤò¼èÆÀ¤¹¤ë
+sem_getvalue \- セマフォの値を取得する
 .\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
 .nf
 .B #include <semaphore.h>
 .sp
@@ -40,20 +40,20 @@ sem_getvalue \- 
 .fi
 .sp
 .\"O Link with \fI\-lrt\fP or \fI\-pthread\fP.
-\fI\-lrt\fP ¤Þ¤¿¤Ï \fI\-pthread\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
+\fI\-lrt\fP または \fI\-pthread\fP でリンクする。
 .\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
 .\"O .BR sem_getvalue ()
 .\"O places the current value of the semaphore pointed to
 .\"O .I sem
 .\"O into the integer pointed to by
 .\"O .IR sval .
 .BR sem_getvalue ()
-¤Ï¡¢
+は、
 .I sem
-¤¬»Ø¤¹¥»¥Þ¥Õ¥©¤Î¸½ºß¤ÎÃͤò
+が指すセマフォの現在の値を
 .I sval
-¤Ç»Ø¤¹À°¿ô¤Ë³ÊǼ¤¹¤ë¡£
+で指す整数に格納する。
 
 .\"O If one or more processes or threads are blocked
 .\"O waiting to lock the semaphore with
@@ -65,48 +65,48 @@ sem_getvalue \- 
 .\"O of the number of processes and threads currently blocked in
 .\"O .BR sem_wait (3).
 .\"O Linux adopts the former behavior.
-POSIX.1-2001 ¤Ë¤è¤ë¤È¡¢
-1¤Ä°Ê¾å¤Î¥×¥í¥»¥¹¤«¥¹¥ì¥Ã¥É¤¬
+POSIX.1-2001 によると、
+1つ以上のプロセスかスレッドが
 .BR sem_wait (3)
-¤Ç¥»¥Þ¥Õ¥©¤Î¥í¥Ã¥¯ÂÔ¤Á¤ÇÄä»ß¤·¤Æ¤¤¤ë¾ì¹ç¡¢
+でセマフォのロック待ちで停止している場合、
 .I sval
-¤ÇÊÖ¤µ¤ì¤ëÃͤϠ0 ¤â¤·¤¯¤ÏÉé¤ÎÃͤΤ¤¤º¤ì¤«¤È¤Ê¤ë¡£
-Éé¤ÎÃͤξì¹ç¡¢¤½¤ÎÀäÂÐÃͤÏ
+で返される値は 0 もしくは負の値のいずれかとなる。
+負の値の場合、その絶対値は
 .BR sem_wait (3)
-¤Ç¸½ºßÄä»ß¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤«¥¹¥ì¥Ã¥É¤Î¹ç·×¿ô¤ËÅù¤·¤¤¡£
-Linux ¤ÏÁ°¼Ô¤ÎÆ°ºî (0 ¤òÊÖ¤¹Æ°ºî) ¤òºÎÍѤ·¤Æ¤¤¤ë¡£
+で現在停止しているプロセスかスレッドの合計数に等しい。
+Linux は前者の動作 (0 を返す動作) を採用している。
 .\"O .SH RETURN VALUE
-.SH ÊÖ¤êÃÍ
+.SH 返り値
 .\"O .BR sem_getvalue ()
 .\"O returns 0 on success;
 .\"O on error, \-1 is returned and
 .\"O .I errno
 .\"O is set to indicate the error.
-À®¸ù¤¹¤ë¤È¡¢
+成功すると、
 .BR sem_getvalue ()
-¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
+は 0 を返す。エラーの場合、\-1 を返し、
 .I errno
-¤Ë¥¨¥é¡¼¤ò¼¨¤¹Ãͤò¥»¥Ã¥È¤¹¤ë¡£
+にエラーを示す値をセットする。
 .\"O .SH ERRORS
-.SH ¥¨¥é¡¼
+.SH ã\82¨ã\83©ã\83¼
 .TP
 .B EINVAL
 .\"O .I sem
 .\"O is not a valid semaphore.
 .I sem
-¤ÏÍ­¸ú¤Ê¥»¥Þ¥Õ¥©¤Ç¤Ï¤Ê¤¤¡£
+は有効なセマフォではない。
 .\"O .SH CONFORMING TO
-.SH ½àµò
+.SH 準拠
 POSIX.1-2001.
 .\"O .SH NOTES
-.SH Ãí°Õ
+.SH 注意
 .\"O The value of the semaphore may already have changed by the time
 .\"O .BR sem_getvalue ()
 .\"O returns.
 .BR sem_getvalue ()
-¤¬ÊÖ¤ë¤È¤­¤Ë¤Ï¡¢¤¹¤Ç¤Ë¥»¥Þ¥Õ¥©¤ÎÃͤÏÊѲ½¤·¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
+が返るときには、すでにセマフォの値は変化している可能性がある。
 .\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
 .BR sem_post (3),
 .BR sem_wait (3),
 .BR sem_overview (7)