aboutsummaryrefslogtreecommitdiff
path: root/binutils/config.in
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-04-15 00:36:42 +0930
committerAlan Modra <amodra@gmail.com>2021-04-15 17:51:17 +0930
commit985e026451640c880e13827454aa31b7a636d1bc (patch)
tree2a034beb448ef79b8b57e9d207f2e0722e38cda5 /binutils/config.in
parentd0ecdcddc363ad7f05fc50cf1eee4028fa7f8964 (diff)
downloadgdb-985e026451640c880e13827454aa31b7a636d1bc.zip
gdb-985e026451640c880e13827454aa31b7a636d1bc.tar.gz
gdb-985e026451640c880e13827454aa31b7a636d1bc.tar.bz2
PR27725, better objcopy -p times
Nanosecond rather than second resolution. PR 27725 * configure.ac: Check for sys/time.h and utimensat. Use standard checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond members of struct stat. * rename.c: Prefer sys/time.h for utimes over utime.h for utime. (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define (get_stat_atime_ns, get_stat_mtime_ns): New inline functions. (get_stat_atime, get_stat_mtime): Likewise. (set_times): Choose first available of utimensat, utimes, utime. Use above inline functions to set timespec and timeval values. * configure: Regenerate. * config.in: Regenerate. * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of file timestamp when --preserve-dates is used.
Diffstat (limited to 'binutils/config.in')
-rw-r--r--binutils/config.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/binutils/config.in b/binutils/config.in
index cc6aad1..e79967c 100644
--- a/binutils/config.in
+++ b/binutils/config.in
@@ -115,6 +115,18 @@
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
+/* Define to 1 if `st_atimensec' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_ATIMENSEC
+
+/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC
+
+/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC
+
+/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC
+
/* Define to 1 if you have the <sys/file.h> header file. */
#undef HAVE_SYS_FILE_H
@@ -124,6 +136,9 @@
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
@@ -133,6 +148,9 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Define to 1 if you have the `utimensat' function. */
+#undef HAVE_UTIMENSAT
+
/* Define to 1 if you have the `utimes' function. */
#undef HAVE_UTIMES
@@ -182,6 +200,10 @@
/* Define to 1 if user symbol names have a leading underscore, 0 if not. */
#undef TARGET_PREPENDS_UNDERSCORE
+/* Define to 1 if the type of the st_atim member of a struct stat is struct
+ timespec. */
+#undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC
+
/* Use b modifier when opening binary files? */
#undef USE_BINARY_FOPEN