From 411ab01cfe8d3e519f9d6ca02e689da8f7724fd9 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sun, 12 Nov 2000 19:00:01 +0000 Subject: Add HAS_FSYNC, lack noticed by Nicholas Clark. p4raw-id: //depot/perl@7653 --- Configure | 8 +++++++- Porting/Glossary | 4 ++++ Porting/config.sh | 5 +++-- Porting/config_H | 9 ++++++++- config_h.SH | 7 +++++++ configure.com | 1 + epoc/config.sh | 1 + uconfig.h | 7 +++++++ vos/config.alpha.def | 1 + vos/config.alpha.h | 7 +++++++ vos/config.ga.def | 1 + vos/config.ga.h | 7 +++++++ win32/config.bc | 1 + win32/config.gc | 1 + win32/config.vc | 3 ++- 15 files changed, 58 insertions(+), 5 deletions(-) diff --git a/Configure b/Configure index a526eff626..5c0100eb13 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 60342e689f..14a5bef963 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 a7c829f2c4..226a5e38e3 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 1011fc32ad..b303890c84 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 e58fd1294f..31504f3454 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 66b3d7a5e9..656395bbbb 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 f7283408a1..efc8c1a640 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 4bea2da04c..f0b49de383 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 276c84fe21..f6ee0c3b0a 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 8d5b4ec23f..ffb3a7f981 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 58b17196e5..042bcc0526 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' -- cgit v1.2.1