2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_
|
|
|
|
#include "libc/calls/struct/timeval.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
2022-08-13 20:11:56 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
struct itimerval {
|
|
|
|
struct timeval it_interval; /* {0,0} means singleshot */
|
|
|
|
struct timeval it_value; /* {0,0} means disarm */
|
|
|
|
};
|
|
|
|
|
2022-08-13 20:11:56 +00:00
|
|
|
int getitimer(int, struct itimerval *);
|
|
|
|
int setitimer(int, const struct itimerval *, struct itimerval *);
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
2020-06-15 14:18:57 +00:00
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_ITIMERVAL_H_ */
|