mirror of
https://github.com/fluencelabs/musl
synced 2025-06-24 20:21:59 +00:00
implement futimens and utimensat
This commit is contained in:
6
src/stat/futimens.c
Normal file
6
src/stat/futimens.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
int futimens(int fd, const struct timespec times[2])
|
||||
{
|
||||
return utimensat(fd, 0, times, 0);
|
||||
}
|
7
src/stat/utimensat.c
Normal file
7
src/stat/utimensat.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int utimensat(int fd, const char *path, const struct timespec times[2], int flags)
|
||||
{
|
||||
return syscall4(__NR_utimensat, fd, (long)path, (long)times, flags);
|
||||
}
|
Reference in New Issue
Block a user