mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
Cosmopolitan now supports 104 time zones. They're embedded inside any binary that links the localtime() function. Doing so adds about 100kb to the binary size. This change also gets time zones working properly on Windows for the first time. It's not needed to have /etc/localtime exist on Windows, since we can get this information from WIN32. We're also now updated to the latest version of Paul Eggert's TZ library.
18 lines
738 B
C
18 lines
738 B
C
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_
|
|
#include "libc/calls/struct/timeval.h"
|
|
#include "libc/mem/alloca.h"
|
|
#include "libc/time.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
int sys_settimeofday(const struct timeval *, const struct timezone *);
|
|
int sys_futimes(int, const struct timeval *);
|
|
int sys_lutimes(const char *, const struct timeval *);
|
|
int sys_utimes(const char *, const struct timeval *);
|
|
int sys_utimes_nt(const char *, const struct timeval[2]);
|
|
|
|
const char *DescribeTimeval(char[45], int, const struct timeval *);
|
|
#define DescribeTimeval(rc, ts) DescribeTimeval(alloca(45), rc, ts)
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_ */
|