mailing list of musl libc
 help / color / mirror / code / Atom feed
ad3348481ac6afec510e45582271d70541fc61eb blob 499 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#define _GNU_SOURCE
#include <sys/time.h>
#include "syscall.h"

int futimesat(int dirfd, const char *pathname, const struct timeval times[2])
{
#ifdef SYS_futimesat
	return syscall(SYS_futimesat, dirfd, pathname, times);
#else
	struct timespec ts[2];
	if (times) {
		ts[0].tv_sec = times[0].tv_sec;
		ts[0].tv_nsec = times[0].tv_usec * 1000;
		ts[1].tv_sec = times[1].tv_sec;
		ts[1].tv_nsec = times[1].tv_usec * 1000;
	}
	return syscall(SYS_utimensat, dirfd, pathname, times ? ts : 0, 0);
#endif
}
debug log:

solving ad33484 ...
found ad33484 in https://inbox.vuxu.org/musl/20140525054237.GA18085@brightrain.aerifal.cx/
found dbefc84 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 dbefc844c46e092067a4650a8db1e59857192269	src/stat/futimesat.c

applying [1/1] https://inbox.vuxu.org/musl/20140525054237.GA18085@brightrain.aerifal.cx/
diff --git a/src/stat/futimesat.c b/src/stat/futimesat.c
index dbefc84..ad33484 100644

Checking patch src/stat/futimesat.c...
Applied patch src/stat/futimesat.c cleanly.

index at:
100644 ad3348481ac6afec510e45582271d70541fc61eb	src/stat/futimesat.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).