diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-15 00:36:42 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-15 17:51:17 +0930 |
commit | 985e026451640c880e13827454aa31b7a636d1bc (patch) | |
tree | 2a034beb448ef79b8b57e9d207f2e0722e38cda5 /gdb/ppc-fbsd-nat.c | |
parent | d0ecdcddc363ad7f05fc50cf1eee4028fa7f8964 (diff) | |
download | gdb-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 'gdb/ppc-fbsd-nat.c')
0 files changed, 0 insertions, 0 deletions