From 64dd856b5d2bd859b9910e6e8c29e13e304f73e4 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 18 Sep 2010 05:35:48 +0200 Subject: [PATCH] chdir.2: Update fchdir() feature test macro requirements Add requirements for glibc 2.12. Correct requirements for glibc versions before 2.12. Signed-off-by: Michael Kerrisk --- man2/chdir.2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man2/chdir.2 b/man2/chdir.2 index 6ca20946e..229a2121e 100644 --- a/man2/chdir.2 +++ b/man2/chdir.2 @@ -46,7 +46,21 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR fchdir (): +.PD 0 +.ad l +.RS 4 +.TP 4 +Since glibc 2.12: +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || +_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || +_POSIX_C_SOURCE\ >=\ 200809L +.TP +Before glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 +_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED +.RE +.ad +.PD .SH DESCRIPTION .BR chdir () changes the current working directory of the calling process to the