From: Jarkko Hietaniemi Date: Thu, 21 Jun 2001 19:40:34 +0000 (+0000) Subject: Add fchdir() probe (in non-UNIX systems assume it doesn't exist). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b363b71387982836a5629ce821dc43de9f38573c;p=p5sagit%2Fp5-mst-13.2.git Add fchdir() probe (in non-UNIX systems assume it doesn't exist). p4raw-id: //depot/perl@10797 --- diff --git a/Configure b/Configure index db14b23..a7140f3 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Thu Jun 21 18:44:48 EET DST 2001 [metaconfig 3.0 PL70] +# Generated on Thu Jun 21 23:22:43 EET DST 2001 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_endsent HAS_ENDSERVENT /**/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +#$d_fchdir HAS_FCHDIR /**/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/configure.com b/configure.com index a7459b0..0ccc61a 100644 --- a/configure.com +++ b/configure.com @@ -5028,6 +5028,7 @@ $ WC "d_endsent='" + d_endsent + "'" $ WC "d_eofnblk='undef'" $ WC "d_eunice='undef'" $ WC "d_fchmod='undef'" +$ WC "d_fchdir='undef'" $ WC "d_fchown='undef'" $ WC "d_fcntl='" + d_fcntl + "'" $ WC "d_fcntl_can_lock='" + d_fcntl_can_lock + "'" diff --git a/epoc/config.sh b/epoc/config.sh index 4e80423..2cc62f6 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -138,6 +138,7 @@ d_endpwent='undef' d_endsent='undef' d_eofnblk='define' d_eunice='undef' +d_fchdir='undef' d_fchmod='undef' d_fchown='undef' d_fcntl='undef' diff --git a/uconfig.h b/uconfig.h index 4d51056..8c862f1 100644 --- a/uconfig.h +++ b/uconfig.h @@ -1281,6 +1281,12 @@ */ /*#define HAS_ENDSERVENT / **/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +/*#define HAS_FCHDIR / **/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/uconfig.sh b/uconfig.sh index ca35351..c52e4eb 100755 --- a/uconfig.sh +++ b/uconfig.sh @@ -75,6 +75,7 @@ d_endpwent='undef' d_endsent='undef' d_eofnblk='undef' d_eunice='undef' +d_fchdir='undef' d_fchmod='undef' d_fchown='undef' d_fcntl='undef' diff --git a/vos/config.alpha.def b/vos/config.alpha.def index 0065516..93a9601 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -62,6 +62,7 @@ $d_endpent='define' $d_endpwent='undef' $d_endsent='define' $d_eofnblk='define' +$d_fchdir='undef' $d_fchmod='define' $d_fchown='undef' $d_fcntl='define' diff --git a/vos/config.alpha.h b/vos/config.alpha.h index 3f47acf..72a0e3d 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -1281,6 +1281,12 @@ */ #define HAS_ENDSERVENT /**/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +/*#define HAS_FCHDIR /**/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/vos/config.ga.def b/vos/config.ga.def index 4d49cf5..8774ae7 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -62,6 +62,7 @@ $d_endpent='define' $d_endpwent='undef' $d_endsent='define' $d_eofnblk='define' +$d_fchdir='undef' $d_fchmod='define' $d_fchown='undef' $d_fcntl='define' diff --git a/vos/config.ga.h b/vos/config.ga.h index 5b283e3..6cc7db0 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -1281,6 +1281,12 @@ */ #define HAS_ENDSERVENT /**/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +/*#define HAS_FCHDIR /**/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/win32/config.bc b/win32/config.bc index a47e405..86b4d51 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -129,6 +129,7 @@ d_endpwent='undef' d_endsent='undef' d_eofnblk='define' d_eunice='undef' +d_fchdir='undef' d_fchmod='undef' d_fchown='undef' d_fcntl='undef' diff --git a/win32/config.gc b/win32/config.gc index 38c7a15..4636316 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -129,6 +129,7 @@ d_endpwent='undef' d_endsent='undef' d_eofnblk='define' d_eunice='undef' +d_fchdir='undef' d_fchmod='undef' d_fchown='undef' d_fcntl='undef' diff --git a/win32/config.vc b/win32/config.vc index 2e0bae2..176aabe 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -129,6 +129,7 @@ d_endpwent='undef' d_endsent='undef' d_eofnblk='define' d_eunice='undef' +d_fchdir='undef' d_fchmod='undef' d_fchown='undef' d_fcntl='undef' diff --git a/win32/config_H.bc b/win32/config_H.bc index 6f1d3c1..3fcbce8 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -127,6 +127,12 @@ */ #define HAS_DUP2 /**/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +/*#define HAS_FCHDIR /**/ + /* HAS_FCHMOD: * This symbol, if defined, indicates that the fchmod routine is available * to change mode of opened files. If unavailable, use chmod(). diff --git a/win32/config_H.gc b/win32/config_H.gc index ce85240..cd73f0b 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -127,6 +127,12 @@ */ #define HAS_DUP2 /**/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +/*#define HAS_FCHDIR /**/ + /* HAS_FCHMOD: * This symbol, if defined, indicates that the fchmod routine is available * to change mode of opened files. If unavailable, use chmod(). diff --git a/win32/config_H.vc b/win32/config_H.vc index e48c157..cb63dba 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -127,6 +127,12 @@ */ #define HAS_DUP2 /**/ +/* HAS_FCHDIR: + * This symbol, if defined, indicates that the fchdir routine is + * available to change directory using a file descriptor. + */ +/*#define HAS_FCHDIR /**/ + /* HAS_FCHMOD: * This symbol, if defined, indicates that the fchmod routine is available * to change mode of opened files. If unavailable, use chmod().