OSDN Git Service

Update drafts for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man3 / inet.3
index 9de4541..774f3c3 100644 (file)
@@ -109,16 +109,14 @@ notation)\fP と呼ぶ。 また、10 進数 4 つだけを使った形式を \f
 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).
+\fBinet_aton\fP() は渡された文字列が正常に解釈できた場合 1 を返し、 文字列が不正な場合 0 を返す (エラーの場合に \fBerrno\fP
+はセット\fIされない\fP)。
 .PP
-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.
+\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)
+を使うのがよい。 これらの関数の方が、エラーの通知がよりきれいな方法で行われる。
 .PP
 \fBinet_network\fP()  関数は、 IPv4 の数値とドットによる表記の文字列 \fIcp\fP を、 インターネットアドレスとしての使用に適した
 ホストバイトオーダの数値に変換する。 成功すると、変換されたアドレスを返す。 入力が不正な場合は \-1 を返す。