blob: b149e7b2c6c3a5ca71ccc23877ce2971209544dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
Index: b/usr/src/lib/libc/port/sys/utimesys.c
===================================================================
--- a/usr/src/lib/libc/port/sys/utimesys.c
+++ b/usr/src/lib/libc/port/sys/utimesys.c
@@ -38,6 +38,24 @@ futimens(int fd, const timespec_t times[
return (syscall(SYS_utimesys, 0, fd, times));
}
+int futimes(int fd, const struct timeval tv[2])
+{
+ timespec_t ts[2];
+ timespec_t *tsp;
+
+ if (tv == NULL) {
+ tsp = NULL;
+ } else {
+ ts[0].tv_sec = tv[0].tv_sec;
+ ts[0].tv_nsec = tv[0].tv_usec * 1000;
+ ts[1].tv_sec = tv[1].tv_sec;
+ ts[1].tv_nsec = tv[1].tv_usec * 1000;
+ tsp = ts;
+ }
+
+ return futimens(fd, tsp);
+}
+
int
utimensat(int fd, const char *path, const timespec_t times[2], int flag)
{
Index: b/usr/src/lib/libc/port/mapfile-vers
===================================================================
--- a/usr/src/lib/libc/port/mapfile-vers
+++ b/usr/src/lib/libc/port/mapfile-vers
@@ -281,6 +281,7 @@ SYMBOL_VERSION DYSON_1 {
fts_open;
fts_read;
fts_set;
+ futimes;
get_current_dir_name;
getgrouplist;
gnu_strerror_r;
|