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

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

int utime(const char *path, const struct utimbuf *times)
{
	if (times) {
		struct timeval tv[2] = {
			{ .tv_sec = times->actime },
			{ .tv_sec = times->modtime } };
		return syscall(SYS_utimes, path, tv);
	}
	return syscall(SYS_utimes, path, 0);
}
debug log:

solving b2b5741 ...
found b2b5741 in https://git.vuxu.org/mirror/musl/

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).