mirror of https://github.com/mkerrisk/man-pages
chroot.2: Added feature test macro requirements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
3a4bf87571
commit
e2128f59bc
|
@ -37,6 +37,29 @@ chroot \- change root directory
|
|||
.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
|
||||
|
|
Loading…
Reference in New Issue