cosmopolitan/libc/utime.h
Justine Tunney b0df6c1fce
Implement proper time zone support
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.
2024-05-04 23:06:37 -07:00

17 lines
422 B
C

#ifndef COSMOPOLITAN_LIBC_UTIME_H_
#define COSMOPOLITAN_LIBC_UTIME_H_
COSMOPOLITAN_C_START_
struct utimbuf {
int64_t actime; /* access time */
int64_t modtime; /* modified time */
};
int utime(const char *, const struct utimbuf *) libcesque;
#ifdef _COSMO_SOURCE
int sys_utime(const char *, const struct utimbuf *) libcesque;
#endif /* _COSMO_SOURCE */
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_UTIME_H_ */