OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man2 / chroot.2
index f1e1f2e..a21f57e 100644 (file)
 .\" Modified 1997-08-21 by Joseph S. Myers <jsm28@cam.ac.uk>
 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
-.TH CHROOT 2 2008-06-23 "Linux" "Linux Programmer's Manual"
+.TH CHROOT 2 2010-09-20 "Linux" "Linux Programmer's Manual"
 .SH NAME
 chroot \- change root directory
 .SH SYNOPSIS
 .B #include <unistd.h>
 .sp
 .BI "int chroot(const char *" path );
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR chroot ():
+.ad l
+.RS 4
+.PD 0
+.TP 4
+Since glibc 2.2.2:
+.nf
+_BSD_SOURCE ||
+    (_XOPEN_SOURCE\ >=\ 500 ||
+        _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) &&
+    !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600)
+.TP 4
+.fi
+Before glibc 2.2.2: none
+.PD
+.RE
+.ad b
 .SH DESCRIPTION
 .BR chroot ()
 changes the root directory of the calling process to that specified in