mailing list of musl libc
 help / color / mirror / code / Atom feed
5990aa63fb3dcf5af98fdc1687305fa3426e9481 blob 528 bytes (raw)

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

int __futimesat(int dirfd, const char *pathname, const struct timeval times[2])
{
	struct timespec ts[2];
	if (times) {
		int i;
		for (i=0; i<2; i++) {
			if (times[i].tv_usec >= 1000000U)
				return __syscall_ret(-EINVAL);
			ts[i].tv_sec = times[i].tv_sec;
			ts[i].tv_nsec = times[i].tv_usec * 1000;
		}
	}
	return utimensat(dirfd, pathname, times ? ts : 0, 0);
}

weak_alias(__futimesat, futimesat);
debug log:

solving 5990aa6 ...
found 5990aa6 in https://inbox.vuxu.org/musl/20140526184036.GZ507@brightrain.aerifal.cx/ ||
	https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/
found dbefc84 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 dbefc844c46e092067a4650a8db1e59857192269	src/stat/futimesat.c

applying [1/2] https://inbox.vuxu.org/musl/20140526184036.GZ507@brightrain.aerifal.cx/
diff --git a/src/stat/futimesat.c b/src/stat/futimesat.c
index dbefc84..5990aa6 100644

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

skipping https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/ for 5990aa6
index at:
100644 5990aa63fb3dcf5af98fdc1687305fa3426e9481	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).