Luna/libc/include/sys/time.h

33 lines
819 B
C
Raw Normal View History

2023-05-20 10:05:22 +00:00
/* sys/time.h: POSIX time types. */
#ifndef _SYS_TIME_H
#define _SYS_TIME_H
#define _INCLUDE_TIMESPEC_MACROS
2023-05-20 10:05:22 +00:00
#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);
2023-08-08 12:14:35 +00:00
/* 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]);
2023-05-20 10:05:22 +00:00
#ifdef __cplusplus
}
#endif
#endif