OSDN Git Service

(split) Convert contrib and obsolete pages to UTF-8.
[linuxjm/LDP_man-pages.git] / obsolete / man2 / gethostid.2
index 262a739..e8fdbe8 100644 (file)
 .\"
 .TH GETHOSTID 2 2007-07-26 "Linux" "Linux Programmer's Manual"
 .\"O .SH NAME
-.SH Ì¾Á°
+.SH 名前
 .\"O gethostid, sethostid \- get or set the unique identifier of the current host
-gethostid, sethostid \- ¸½ºß»ÈÍѤ·¤Æ¤¤¤ë¥Û¥¹¥È¤Ë¸ÇÍ­¤Î¼±Ê̻Ҥò¼èÆÀ¤¹¤ë¡¢¤Þ¤¿¤ÏÀßÄꤹ¤ë
+gethostid, sethostid \- 現在使用しているホストに固有の識別子を取得する、または設定する
 .\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
 .B #include <unistd.h>
 .sp
 .B long gethostid(void);
@@ -50,9 +50,9 @@ gethostid, sethostid \- 
 .in -4n
 .\"O Feature Test Macro Requirements for glibc (see
 .\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+glibc 向けの機能検査マクロの要件
 .RB ( feature_test_macros (7)
-»²¾È):
+参照):
 .in
 .sp
 .ad l
@@ -60,7 +60,7 @@ glibc 
 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
 .ad b
 .\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
 .\"O Get or set a unique 32-bit identifier for the current machine.
 .\"O The 32-bit identifier is intended to be unique among all Unix systems in
 .\"O existence.
@@ -68,42 +68,42 @@ _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
 .\"O machine, as returned by
 .\"O .BR gethostbyname (3),
 .\"O and thus usually never needs to be set.
-¸½ºß»ÈÍѤ·¤Æ¤¤¤ë¥Û¥¹¥È¤Ë¸ÇÍ­¤Î 32 ¥Ó¥Ã¥È¤Î¼±Ê̻Ҥò¼èÆÀ/ÀßÄꤹ¤ë¡£
-¤³¤Î 32 ¥Ó¥Ã¥È¤Î¼±Ê̻Ҥϸ½ºß¸ºß¤·¤Æ¤¤¤ëÁ´¤Æ¤Î Unix ¥·¥¹¥Æ¥à
-¤ÎÃæ¤ÇÍ£°ì¤Ë¤Ê¤ë¤è¤¦¤Ë·è¤á¤é¤ì¤ë¡£Ä̾ï¤Ï
+現在使用しているホストに固有の 32 ビットの識別子を取得/設定する。
+この 32 ビットの識別子は現在存在している全ての Unix システム
+の中で唯一になるように決められる。通常は
 .BR gethostbyname (3)
-¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë¥í¡¼¥«¥ë¥Þ¥·¥ó¤Î Internet ¥¢¥É¥ì¥¹¤¬Âå¤ï¤ê¤Ë»ÈÍѤµ¤ì¡¢
-ÉáÄ̤ϼ±Ê̻Ҥò¤¢¤¨¤ÆÀßÄꤹ¤ëɬÍפϤʤ¤¡£
+によって返されるローカルマシンの Internet アドレスが代わりに使用され、
+普通は識別子をあえて設定する必要はない。
 
 .\"O The
 .\"O .BR sethostid ()
 .\"O call is restricted to the superuser.
 .BR sethostid ()
-¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤·¤«»ÈÍѤǤ­¤Ê¤¤¡£
+はスーパーユーザしか使用できない。
 
 .\"O The
 .\"O .I hostid
 .\"O argument is stored in the file
 .\"O .IR /etc/hostid .
-°ú¤­¿ô
+引き数
 .I hostid
-¤Ï
+は
 .I /etc/hostid
-¥Õ¥¡¥¤¥ë¤Ë³ÊǼ¤µ¤ì¤ë¡£
+ファイルに格納される。
 .\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
+.SH 返り値
 .\"O .BR gethostid ()
 .\"O returns the 32-bit identifier for the current host as set by
 .\"O .BR sethostid ().
 .BR gethostid ()
-¤Ï
+は
 .BR sethostid ()
-¤Ë¤è¤Ã¤ÆÀßÄꤵ¤ì¤¿¡¢¸½ºß»ÈÍѤ·¤Æ¤¤¤ë¥Û¥¹¥È¤Î 32 ¥Ó¥Ã¥È¤Î¼±Ê̻ҤÎÃͤòÊÖ¤¹¡£
+によって設定された、現在使用しているホストの 32 ビットの識別子の値を返す。
 .\"O .SH FILES
-.SH ¥Õ¥¡¥¤¥ë
+.SH ファイル
 .I /etc/hostid
 .\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
 .\"O 4.2BSD; these functions were dropped in 4.4BSD.
 .\"O SVr4 includes
 .\"O .BR gethostid ()
@@ -113,19 +113,19 @@ _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
 .\"O .BR gethostid ()
 .\"O but not
 .\"O .BR sethostid ().
-4.2BSD¡£4.4BSD ¤Ç¤Ï¤³¤ì¤é¤Î´Ø¿ô¤Ï¤Ê¤¯¤Ê¤Ã¤¿¡£
-SVr4 ¤Ë¤Ï
+4.2BSD。4.4BSD ではこれらの関数はなくなった。
+SVr4 には
 .BR gethostid ()
-¤Ï´Þ¤Þ¤ì¤Æ¤¤¤ë¤¬¡¢
+は含まれているが、
 .BR sethostid ()
-¤Ï´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¡£
-POSIX.1-2001 ¤Ç¤Ï¡¢
+は含まれていない。
+POSIX.1-2001 では、
 .BR gethostid ()
-¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤ë¤¬¡¢
+は規定されているが、
 .BR sethostid ()
-¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
+は規定されていない。
 .\"O .SH NOTES
-.SH Ãí°Õ
+.SH 注意
 .\"O In the glibc implementation, if
 .\"O .BR gethostid ()
 .\"O cannot open
@@ -137,17 +137,17 @@ POSIX.1-2001 
 .\"O in order to obtain the host's IPv4 address,
 .\"O and returns a value obtained by bit-twiddling the IPv4 address.
 .\"O (This value may not be unique.)
-glibc ¤Î¼ÂÁõ¤Ç¤Ï¡¢
+glibc の実装では、
 .I /etc/hostid
-¤ò¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç¡¢
+をオープンできなかった場合、
 .BR gethostid ()
-¤Ï
+は
 .BR gethostname (2)
-¤ò»È¤Ã¤Æ¥Û¥¹¥È̾¤òÆþ¼ê¤·¡¢¤½¤Î¥Û¥¹¥È̾¤ò
+を使ってホスト名を入手し、そのホスト名を
 .BR gethostbyname_r (3)
-¤ËÅϤ·¥Û¥¹¥È¤Î IPv4 ¥¢¥É¥ì¥¹¤ò¼èÆÀ¤·¤Æ¡¢
-¤½¤Î IPv4 ¥¢¥É¥ì¥¹¤Î¥Ó¥Ã¥ÈÆþ¤ìÂؤ¨¤ò¹Ô¤Ã¤¿ÃͤòÊÖ¤¹¡£
+に渡しホストの IPv4 アドレスを取得して、
+その IPv4 アドレスのビット入れ替えを行った値を返す。
 .\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
 .BR hostid (1),
 .BR gethostbyname (3)