OSDN Git Service

Update draft for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man3 / inet.3
index f63ee86..9de4541 100644 (file)
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH INET 3 2013\-02\-10 GNU "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1998 Ueyama Rui
+.\"         all rights reserved.
+.\" Translated 1998-05-23, Ueyama Rui <rui@linux.or.jp>
+.\" Updated & Modefied 1999-02-26, Shouichi Saito
+.\" Updated 1999-12-26, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2005-10-04, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2007-05-01, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.46
+.\" Updated 2008-08-13, Akihiro MOTOKI, LDP v3.05
+.\"
+.TH INET 3 2014\-04\-19 GNU "Linux Programmer's Manual"
 .SH 名前
 inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof,
 inet_netof \- インターネットアドレス操作ルーチン
@@ -88,7 +98,7 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参
 .TP 
 \fIa.b\fP
 \fIa\fP はバイナリアドレスの最初のバイトを示す。 \fIb\fP は 24 ビット値と解釈され、バイナリアドレスの右側の 3 バイトを表す。
-この表記は、(過去のものとなった) クラス C ネットワークアドレスを 指定するのに適している。
+この表記は、(過去のものとなった) クラス A ネットワークアドレスを 指定するのに適している。
 .TP 
 \fIa\fP
 値 \fIa\fP は 32 ビット値と解釈され、バイトの再配置は行われず、 そのままバイナリアドレスとして格納される。
@@ -98,12 +108,17 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参
 notation)\fP と呼ぶ。 また、10 進数 4 つだけを使った形式を \fIIPv4 のドット区切りの 10 進数表記 (IPv4
 dotted\-decimal notation)\fP と呼ぶ (\fIIPv4 のドット区切り 4 分割表記 (IPv4 dotted\-decimal
 notation)\fP と呼ぶこともある)。
+
+\fBinet_aton\fP()  returns 1 if the supplied string was successfully
+interpreted, or 0 if the string is invalid (\fBerrno\fP is \fInot\fP set on
+error).
 .PP
-\fBinet_addr\fP()  関数は、インターネットホストのアドレス \fIcp\fP を、 IPv4
-の数値とドットによる表記からネットワークバイトオーダでの バイナリ値へ変換して返す。 入力が不正な場合、 \fBINADDR_NONE\fP (普通は \-1)
-を返す。 \-1 は有効なアドレス (255.255.255.255) なので、この関数を使うと 問題になるかもしれない。
-この関数を使うのは避け、代わりに \fBinet_aton\fP(), \fBinet_pton\fP(3), \fBgetaddrinfo\fP(3)
-を使うのがよい。 これらの関数の方が、エラーの通知がよりきれいな方法で行われる。
+The \fBinet_addr\fP()  function converts the Internet host address \fIcp\fP from
+IPv4 numbers\-and\-dots notation into binary data in network byte order.  If
+the input is invalid, \fBINADDR_NONE\fP (usually \-1) is returned.  Use of this
+function is problematic because \-1 is a valid address (255.255.255.255).
+Avoid its use in favor of \fBinet_aton\fP(), \fBinet_pton\fP(3), or
+\fBgetaddrinfo\fP(3), which provide a cleaner way to indicate error return.
 .PP
 \fBinet_network\fP()  関数は、 IPv4 の数値とドットによる表記の文字列 \fIcp\fP を、 インターネットアドレスとしての使用に適した
 ホストバイトオーダの数値に変換する。 成功すると、変換されたアドレスを返す。 入力が不正な場合は \-1 を返す。
@@ -197,9 +212,9 @@ main(int argc, char *argv[])
 .fi
 .SH 関連項目
 \fBbyteorder\fP(3), \fBgetaddrinfo\fP(3), \fBgethostbyname\fP(3), \fBgetnameinfo\fP(3),
-\fBgetnetent\fP(3), \fBinet_ntop\fP(3), \fBinet_pton\fP(3), \fBhosts\fP(5),
-\fBnetworks\fP(5)
+\fBgetnetent\fP(3), \fBinet_net_pton\fP(3), \fBinet_ntop\fP(3), \fBinet_pton\fP(3),
+\fBhosts\fP(5), \fBnetworks\fP(5)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。