This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
revive probe for futimes ()
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 31 Oct 2005 17:50:05 +0000 (17:50 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 31 Oct 2005 17:50:05 +0000 (17:50 +0000)
p4raw-id: //depot/perl@25935

Configure
Porting/Glossary
config_h.SH
handy.h

index 0ac41e6..fba1111 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -26,7 +26,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Tue Oct 25 01:58:55 CEST 2005 [metaconfig 3.0 PL70]
+# Generated on Mon Oct 31 19:12:32 CET 2005 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -441,6 +441,7 @@ d_fsync=''
 d_ftello=''
 d_ftime=''
 d_gettimeod=''
+d_futimes=''
 d_Gconvert=''
 d_getcwd=''
 d_getespwnam=''
@@ -12555,6 +12556,10 @@ case "$longsize" in
 8) echo "(Your long is 64 bits, so you could use ftell.)" ;;
 esac
 
+: see if futimes exists
+set futimes d_futimes
+eval $inlibc
+
 : see if getcwd exists
 set getcwd d_getcwd
 eval $inlibc
@@ -21123,6 +21128,7 @@ d_fstatvfs='$d_fstatvfs'
 d_fsync='$d_fsync'
 d_ftello='$d_ftello'
 d_ftime='$d_ftime'
+d_futimes='$d_futimes'
 d_getcwd='$d_getcwd'
 d_getespwnam='$d_getespwnam'
 d_getfsstat='$d_getfsstat'
index 9691143..bcd3a97 100644 (file)
@@ -810,6 +810,10 @@ d_ftime (d_ftime.U):
        that the ftime() routine exists.  The ftime() routine is basically
        a sub-second accuracy clock.
 
+d_futimes (f_futimes.U):
+       This variable conditionally defines the HAS_FUTIMES symbol, which
+       indicates to the C program that the futimes() routine is available.
+
 d_Gconvert (d_gconvert.U):
        This variable holds what Gconvert is defined as to convert
        floating point numbers into strings.  By default, Configure
index b6249d7..2588ec9 100644 (file)
@@ -1458,6 +1458,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_ftello HAS_FTELLO          /**/
 
+/* HAS_FUTIMES:
+ *     This symbol, if defined, indicates that the futimes routine is
+ *     available to change file descriptor time stamps with struct timevals.
+ */
+#$d_futimes HAS_FUTIMES                /**/
+
 /* Gconvert:
  *     This preprocessor macro is defined to convert a floating point
  *     number to a string without a trailing decimal point.  This
@@ -1948,6 +1954,18 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_madvise HAS_MADVISE                /**/
 
+/* HAS_MALLOC_SIZE:
+ *     This symbol, if defined, indicates that the malloc_size
+ *     routine is available for use.
+ */
+#$d_malloc_size HAS_MALLOC_SIZE                /**/
+
+/* HAS_MALLOC_GOOD_SIZE:
+ *     This symbol, if defined, indicates that the malloc_good_size
+ *     routine is available for use.
+ */
+#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE      /**/
+
 /* HAS_MEMCHR:
  *     This symbol, if defined, indicates that the memchr routine is available
  *     to locate characters within a C string.
@@ -3901,18 +3919,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_libm_lib_version LIBM_LIB_VERSION          /**/
 
-/* HAS_MALLOC_SIZE:
- *     This symbol, if defined, indicates that the malloc_size
- *     routine is available for use.
- */
-#$d_malloc_size HAS_MALLOC_SIZE                /**/
-
-/* HAS_MALLOC_GOOD_SIZE:
- *     This symbol, if defined, indicates that the malloc_good_size
- *     routine is available for use.
- */
-#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE      /**/
-
 /* HAS_NL_LANGINFO:
  *     This symbol, if defined, indicates that the nl_langinfo routine is
  *     available to return local data.  You will also need <langinfo.h>
diff --git a/handy.h b/handy.h
index bb4c342..7f1e1dd 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -175,7 +175,7 @@ typedef U64TYPE U64;
 #endif
 
 /* HMB H.Merijn Brand - a placeholder for preparing Configure patches */
-#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE) && defined(HAS_CLEARENV)
+#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE) && defined(HAS_CLEARENV) && defined(HAS_FUTIMES)
 /* Not (yet) used at top level, but mention them for metaconfig */
 #endif