build: Add legacy support for futimens() and utimensat().
authorjilles <jilles@FreeBSD.org>
Thu, 9 Jun 2016 21:57:34 +0000 (21:57 +0000)
committerjilles <jilles@FreeBSD.org>
Thu, 9 Jun 2016 21:57:34 +0000 (21:57 +0000)
commitf2916effb327c8dff2584e6b5b775387a67ebf47
treece5fb651e3647bbcbb5e7528ba715e2412bd1056
parent11745a27b1c88a43294771a37db0f7d644d84653
build: Add legacy support for futimens() and utimensat().

In order to allow using utimensat() in install(1), add futimens() and
utimensat() to -legacy.

The files futimens.c and utimensat.c are modified copies of the files under
lib/libc/sys/ since the libc versions use symbols that do not exist in the
libc on the build system (sys_futimens and sys_utimensat) . I expect the
next non-sweeping change to both sets of files to be to delete them, anyway.

This will allow reverting r299942 (which is a revert of r299850) enabling
nanosecond timestamps in install(1).

Reviewed by: bdrewery
Makefile.inc1
tools/build/Makefile
tools/build/futimens.c [new file with mode: 0644]
tools/build/stat.h [new file with mode: 0644]
tools/build/utimensat.c [new file with mode: 0644]