2023-05-20 10:05:22 +00:00
|
|
|
/* sys/time.h: POSIX time types. */
|
|
|
|
|
|
|
|
#ifndef _SYS_TIME_H
|
|
|
|
#define _SYS_TIME_H
|
|
|
|
|
2023-06-03 11:15:10 +00:00
|
|
|
#define _INCLUDE_TIMESPEC_MACROS
|
|
|
|
|
2023-05-20 10:05:22 +00:00
|
|
|
#include <bits/attrs.h>
|
2023-11-16 20:48:18 +00:00
|
|
|
#include <bits/itimer.h>
|
2023-05-20 10:05:22 +00:00
|
|
|
#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-11-16 20:48:18 +00:00
|
|
|
/* Set an interval timer. */
|
|
|
|
int setitimer(int which, const struct itimerval* new_timer, struct itimerval* old_timer);
|
|
|
|
|
2023-05-20 10:05:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|