10 __weak_alias(futimes
, __futimes50
)
13 int futimes(int fd
, const struct timeval tv
[2])
17 memset(&m
, 0, sizeof(m
));
18 m
.m_vfs_utimens
.fd
= fd
;
20 m
.m_vfs_utimens
.atime
= m
.m_vfs_utimens
.mtime
= 0;
21 m
.m_vfs_utimens
.ansec
= m
.m_vfs_utimens
.mnsec
= UTIME_NOW
;
24 m
.m_vfs_utimens
.atime
= tv
[0].tv_sec
;
25 m
.m_vfs_utimens
.mtime
= tv
[1].tv_sec
;
26 m
.m_vfs_utimens
.ansec
= tv
[0].tv_usec
* 1000;
27 m
.m_vfs_utimens
.mnsec
= tv
[1].tv_usec
* 1000;
29 m
.m_vfs_utimens
.name
= NULL
;
30 m
.m_vfs_utimens
.flags
= 0;
32 return(_syscall(VFS_PROC_NR
, VFS_UTIMENS
, &m
));