Changeset View
Changeset View
Standalone View
Standalone View
contrib/mg/futimens.c
- This file was added.
| /* This file is in the public domain. */ | |||||
| #include <sys/time.h> | |||||
| #include <stdio.h> | |||||
| #include "config.h" | |||||
| #ifndef HAVE_FUTIMENS | |||||
| int | |||||
| futimens(int fildes, const struct timespec times[2]) | |||||
| { | |||||
| struct timeval timevals[2]; | |||||
| TIMESPEC_TO_TIMEVAL(&timevals[0], ×[0]); | |||||
| TIMESPEC_TO_TIMEVAL(&timevals[1], ×[1]); | |||||
| return futimes(fildes, timevals); | |||||
| } | |||||
| #endif /* !HAVE_FUTIMENS */ | |||||