Luna/libc/include/sys/time.h
apio 678121c3ed
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc: Add setitimer()
2023-11-16 21:48:18 +01:00

37 lines
972 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/itimer.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]);
/* Set an interval timer. */
int setitimer(int which, const struct itimerval* new_timer, struct itimerval* old_timer);
#ifdef __cplusplus
}
#endif
#endif