OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man2 / gethostname.2
index 7b09f0e..888fe0e 100644 (file)
@@ -39,7 +39,7 @@
 .\" 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
@@ -61,12 +61,23 @@ glibc 
 .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
@@ -252,7 +263,7 @@ GNU C 
 .\"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