mailing list of musl libc
 help / color / mirror / code / Atom feed
3b5f4e380b337150233d97d170e03f57156070f5 blob 333 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
#include <utime.h>
#include <sys/stat.h>
#include <time.h>
#include <fcntl.h>

int utime(const char *path, const struct utimbuf *times)
{
	struct timespec *ts = 0;
	if (times) {
		struct timespec tmp[2] = {
			{ .tv_sec = times->actime },
			{ .tv_sec = times->modtime } };
		ts = tmp;
	}
	return utimensat(AT_FDCWD, path, ts, 0);
}
debug log:

solving 3b5f4e3 ...
found 3b5f4e3 in https://inbox.vuxu.org/musl/20140526184036.GZ507@brightrain.aerifal.cx/ ||
	https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/
found b2b5741 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 b2b5741b32099a63b2b02ecb275377b6f9e32f23	src/time/utime.c

applying [1/2] https://inbox.vuxu.org/musl/20140526184036.GZ507@brightrain.aerifal.cx/
diff --git a/src/time/utime.c b/src/time/utime.c
index b2b5741..3b5f4e3 100644

Checking patch src/time/utime.c...
Applied patch src/time/utime.c cleanly.

skipping https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/ for 3b5f4e3
index at:
100644 3b5f4e380b337150233d97d170e03f57156070f5	src/time/utime.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).