diff --git a/man2/chroot.2 b/man2/chroot.2 index f1e1f2ec8..db739f9b4 100644 --- a/man2/chroot.2 +++ b/man2/chroot.2 @@ -37,6 +37,29 @@ chroot \- change root directory .B #include .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