1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:37:47 +00:00

LibC: Add lutimes(2) and futimes(2) implementations

Needed for a port of nix
This commit is contained in:
Emily Trau 2023-06-05 17:46:36 -07:00 committed by Jelle Raaijmakers
parent c6c0ce78f5
commit b8c847a3cd
2 changed files with 30 additions and 4 deletions

View file

@ -20,7 +20,9 @@ struct timezone {
int adjtime(const struct timeval* delta, struct timeval* old_delta);
int gettimeofday(struct timeval* __restrict__, void* __restrict__);
int settimeofday(struct timeval* __restrict__, void* __restrict__);
int utimes(char const* pathname, const struct timeval[2]);
int utimes(char const* pathname, struct timeval const times[2]);
int lutimes(char const* pathname, struct timeval const times[2]);
int futimes(int fd, struct timeval const times[2]);
static inline void timeradd(const struct timeval* a, const struct timeval* b, struct timeval* out)
{