.\" Updated & Modified 2006-01-31, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated 2008-12-26, Akihiro MOTOKI, LDP v3.15
.\"
-.TH GETHOSTNAME 2 2008-11-27 "Linux" "Linux Programmer's Manual"
+.TH GETHOSTNAME 2 2010-09-26 "Linux" "Linux Programmer's Manual"
.\"O .SH NAME
.SH ̾Á°
.\"O gethostname, sethostname \- get/set hostname
.in
.sp
.ad l
+.PD 0
.BR gethostname ():
+.RS 4
+.\"O Since glibc 2.12:
+glibc 2.12 °Ê¹ß:
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
.br
+.\"O || /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200112L
+|| /* glibc 2.12 °Ê¹ß: */ _POSIX_C_SOURCE\ >=\ 200112L
+.RE
+.br
.BR sethostname ():
+.RS 4
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
-.ad b
+.RE
+.PD
+.ad
.\"O .SH DESCRIPTION
.SH ÀâÌÀ
.\"O These system calls are used to access or to change the hostname of the
.\"O .I errno
.\"O set to
.\"O .BR ENAMETOOLONG ;
-.\"O in this case, no null-terminator is included in the returned
+.\"O in this case, a terminating null byte is not included in the returned
.\"O .IR name .
¥³¥Ô¡¼¤ò¹Ô¤Ã¤¿ºÝ¤Ë¡¢¤³¤Î´Ø¿ô¤Ï
.I nodename