OSDN Git Service

Update draft for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man3 / inet.3
index 1474412..9de4541 100644 (file)
@@ -109,14 +109,16 @@ notation)\fP と呼ぶ。 また、10 進数 4 つだけを使った形式を \f
 dotted\-decimal notation)\fP と呼ぶ (\fIIPv4 のドット区切り 4 分割表記 (IPv4 dotted\-decimal
 notation)\fP と呼ぶこともある)。
 
-\fBinet_aton\fP() は渡された文字列が正常に解釈できた場合 1 を返し、 文字列が不正な場合 0 を返す (エラーの場合に \fBerrno\fP
-はセット\fIされない\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 を返す。
@@ -213,6 +215,6 @@ main(int argc, char *argv[])
 \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.65 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。