Luna/libc/include/sys/time.h
apio a92077d311
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc: Add all variants of utime
2023-08-08 14:14:35 +02:00

33 lines
819 B
C

/* sys/time.h: POSIX time types. */
#ifndef _SYS_TIME_H
#define _SYS_TIME_H
#define _INCLUDE_TIMESPEC_MACROS
#include <bits/attrs.h>
#include <bits/timespec.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Get the current time of day. */
__deprecated int gettimeofday(struct timeval* tp, void* timezone);
/* Change a file's access and modification timestamps, with microsecond precision. */
int utimes(const char* path, const struct timeval buf[2]);
/* Change a file descriptor's access and modification timestamps, with microsecond precision. */
int futimes(int fd, const struct timeval buf[2]);
/* Change a symlink's access and modification timestamps, with microsecond precision. */
int lutimes(const char* path, const struct timeval buf[2]);
#ifdef __cplusplus
}
#endif
#endif