libroot/posix: Add lutimes for better posix compatibility

* Didn't exist on BeOS, but exists most other places.
* Update times of a file, not following symbolic links.
This commit is contained in:
Alexander von Gluck IV
2017-11-16 00:38:54 -06:00
parent f69a80b4bb
commit be149e8ccf
2 changed files with 29 additions and 1 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ extern int getitimer(int which, struct itimerval *value);
extern int setitimer(int which, const struct itimerval *value, struct itimerval *oldValue);
extern int gettimeofday(struct timeval *tv, void *tz);
extern int utimes(const char *name, const struct timeval times[2]);
extern int utimes(const char *path, const struct timeval times[2]);
extern int lutimes(const char *path, const struct timeval times[2]);
/* legacy */
#ifdef __cplusplus