.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" References consulted:
.\" Linux libc source code
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH GETHOSTBYNAME 3 2010\-10\-04 "" "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1998-2000 NAKANO Takeo all rights reserved.
+.\" Translated 1998-04-30, NAKANO Takeo <nakano@apm.seikei.ac.jp>
+.\" Modified 1998-12-06, NAKANO Takeo
+.\" Updated & Modified 1999-10-12, NAKANO Takeo
+.\" Updated & Modified 2001-07-01, Yuichi SATO <ysato@h4.dion.ne.jp>
+.\" Updated & Modified 2002-01-03, Yuichi SATO
+.\" Updated & Modified 2003-11-27, Yuichi SATO <ysato444@yahoo.co.jp>
+.\" Updated & Modified 2005-01-10, Yuichi SATO
+.\" Updated 2006-01-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2007-06-11, Akihiro MOTOKI, LDP v2.54
+.\" Updated 2008-08-08, Akihiro MOTOKI, LDP v3.05
+.\"
+.TH GETHOSTBYNAME 3 2013\-09\-04 "" "Linux Programmer's Manual"
.SH 名前
gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno,
herror, hstrerror, gethostbyaddr_r, gethostbyname2, gethostbyname2_r,
\fBherror\fP(), \fBhstrerror\fP():
.RS 4
.TP 4
-glibc 2.8 以降:
+Since glibc 2.12:
+_BSD_SOURCE || _SVID_SOURCE
+.TP 4
+From glibc 2.8 to glibc 2.11:
_BSD_SOURCE || _SVID_SOURCE || _GNU_SOURCE
.TP
glibc 2.8 より前:
なし
.RE
+
+\fBh_errno\fP:
+.RS 4
+.TP 4
+Since glibc 2.12:
+_BSD_SOURCE || _SVID_SOURCE ||
+ (_POSIX_C_SOURCE < 200809L && _XOPEN_SOURCE < 700)
+.TP
+Before glibc 2.12:
+なし
+.RE
.ad b
.PD
.SH 説明
-\fBgethostbyname*\fP() と \fBgethostbyaddr*\fP() は過去のものである。 アプリケーションでは、代わりに
-\fBgetaddrinfo\fP(3) と \fBgetnameinfo\fP(3) を使用すること。
+The \fBgethostbyname*\fP(), \fBgethostbyaddr*\fP(), \fBherror\fP(), and
+\fBhstrerror\fP() functions are obsolete. Applications should use
+\fBgetaddrinfo\fP(3), \fBgetnameinfo\fP(3), and \fBgai_strerror\fP(3) instead.
\fBgethostbyname\fP() 関数は与えられたホスト名 \fIname\fP に対応する構造体 \fIhostent\fP を返す。 \fIname\fP
にはホスト名、ドット区切りの IPv4 アドレス (\fBinet_addr\fP(3) 参照)、コロン区切りの IPv6 アドレス
\fIsize_t\fP 型ではなく \fIint\fP 型でなければならない。 POSIX.1\-2001 ではこれを \fIsocklen_t\fP
としているが、これは OK。) \fBaccept\fP(2) も参照。
.LP
-\fBgethostbyaddr\fP() の BSD のプロトタイプは、最初の引き数として \fIconst char *\fP を使う。
+\fBgethostbyaddr\fP() の BSD のプロトタイプは、最初の引き数として \fIconst char\ *\fP を使う。
.SS "System V/POSIX 拡張"
.\" e.g., Linux, FreeBSD, UnixWare, HP-UX
.\" e.g., FreeBSD, AIX
\fBinet_pton\fP(3), \fBresolver\fP(3), \fBhosts\fP(5), \fBnsswitch.conf\fP(5),
\fBhostname\fP(7), \fBnamed\fP(8)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。