wasi-libc/libc-bottom-half/headers/public/__header_sys_stat.h
Dan Gohman 256081f628 Move the mode_t macros into their own header.
This allows them to be defined by <fcntl.h> as well, as specified by
POSIX.

This fixes a part of src/api/fcntl.c.
2019-05-10 12:37:49 -07:00

16 lines
282 B
C

#ifndef __wasilibc___header_sys_stat_h
#define __wasilibc___header_sys_stat_h
#include <__struct_stat.h>
#define st_atime st_atim.tv_sec
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
#include <__mode_t.h>
#define UTIME_NOW (-1)
#define UTIME_OMIT (-2)
#endif