From: Jarkko Hietaniemi Date: Sun, 12 Nov 2000 19:00:01 +0000 (+0000) Subject: Add HAS_FSYNC, lack noticed by Nicholas Clark. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=411ab01cfe8d3e519f9d6ca02e689da8f7724fd9;p=p5sagit%2Fp5-mst-13.2.git Add HAS_FSYNC, lack noticed by Nicholas Clark. p4raw-id: //depot/perl@7653 --- diff --git a/Configure b/Configure index a526eff..5c0100e 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 Sat Nov 11 18:45:10 EET 2000 [metaconfig 3.0 PL70] +# Generated on Sun Nov 12 20:50:13 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >/tmp/c1$$ <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_fcntl_can_lock FCNTL_CAN_LOCK /**/ +/* HAS_FSYNC: + * This symbol, if defined, indicates that the fsync routine is + * available to write a file's modified data and attributes to + * permanent storage. + */ +#$d_fsync HAS_FSYNC /**/ + #endif !GROK!THIS! diff --git a/configure.com b/configure.com index 60342e6..14a5bef 100644 --- a/configure.com +++ b/configure.com @@ -4815,6 +4815,7 @@ $ WC "d_fseeko='undef'" $ WC "d_fsetpos='define'" $ WC "d_fstatfs='undef'" $ WC "d_fstatvfs='undef'" +$ WC "d_fsync='undef'" $ WC "d_ftello='undef'" $ WC "d_getcwd='undef'" $ WC "d_getespwnam='undef'" diff --git a/epoc/config.sh b/epoc/config.sh index a7c829f..226a5e3 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -153,6 +153,7 @@ d_fseeko='undef' d_fsetpos='define' d_fstatfs='define' d_fstatvfs='undef' +d_fsync='undef' d_ftello='undef' d_ftime='undef' d_getespwnam='undef' diff --git a/uconfig.h b/uconfig.h index 1011fc3..b303890 100644 --- a/uconfig.h +++ b/uconfig.h @@ -3194,4 +3194,11 @@ */ /*#define FCNTL_CAN_LOCK / **/ +/* HAS_FSYNC: + * This symbol, if defined, indicates that the fsync routine is + * available to write a file's modified data and attributes to + * permanent storage. + */ +# HAS_FSYNC /**/ + #endif diff --git a/vos/config.alpha.def b/vos/config.alpha.def index e58fd12..31504f3 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -72,6 +72,7 @@ $d_fseeko='undef' $d_fsetpos='define' $d_fstatfs='undef' $d_fstatvfs='undef' +$d_fsync='undef' $d_ftello='undef' $d_Gconvert='sprintf((b),"%.*g",(n),(x))' $d_getcwd='define' diff --git a/vos/config.alpha.h b/vos/config.alpha.h index 66b3d7a..656395b 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -1357,6 +1357,13 @@ */ /*#define HAS_FSTATFS /**/ +/* HAS_FSYNC: + * This symbol, if defined, indicates that the fsync routine is + * available to write a file's modified data and attributes to + * permanent storage. + */ +/*#define HAS_FSYNC /**/ + /* HAS_FTELLO: * This symbol, if defined, indicates that the ftello routine is * available to ftell beyond 32 bits (useful for ILP32 hosts). diff --git a/vos/config.ga.def b/vos/config.ga.def index f728340..efc8c1a 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -72,6 +72,7 @@ $d_fseeko='undef' $d_fsetpos='define' $d_fstatfs='undef' $d_fstatvfs='undef' +$d_fsync='undef' $d_ftello='undef' $d_Gconvert='sprintf((b),"%.*g",(n),(x))' $d_getcwd='define' diff --git a/vos/config.ga.h b/vos/config.ga.h index 4bea2da..f0b49de 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -1357,6 +1357,13 @@ */ /*#define HAS_FSTATFS /**/ +/* HAS_FSYNC: + * This symbol, if defined, indicates that the fsync routine is + * available to write a file's modified data and attributes to + * permanent storage. + */ +/*#define HAS_FSYNC /**/ + /* HAS_FTELLO: * This symbol, if defined, indicates that the ftello routine is * available to ftell beyond 32 bits (useful for ILP32 hosts). diff --git a/win32/config.bc b/win32/config.bc index 276c84f..f6ee0c3 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -145,6 +145,7 @@ d_fseeko='undef' d_fsetpos='define' d_fstatfs='undef' d_fstatvfs='undef' +d_fsync='undef' d_ftello='undef' d_ftime='define' d_getcwd='undef' diff --git a/win32/config.gc b/win32/config.gc index 8d5b4ec..ffb3a7f 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -145,6 +145,7 @@ d_fseeko='undef' d_fsetpos='define' d_fstatfs='undef' d_fstatvfs='undef' +d_fsync='undef' d_ftello='undef' d_ftime='define' d_getcwd='undef' diff --git a/win32/config.vc b/win32/config.vc index 58b1719..042bcc0 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -1,4 +1,4 @@ -## Configured by: ~cf_email~ +# Configured by: ~cf_email~ ## Target system: WIN32 Author='' CONFIGDOTSH='true' @@ -145,6 +145,7 @@ d_fseeko='undef' d_fsetpos='define' d_fstatfs='undef' d_fstatvfs='undef' +d_fsync='undef' d_ftello='undef' d_ftime='define' d_getcwd='undef'