From 7c24e9a9b02b04dcaf9507acb94091ea70a2c02d Mon Sep 17 00:00:00 2001 From: Xavi Del Campo Date: Fri, 31 Jan 2020 10:32:23 +0100 Subject: Imported pristine psxsdk-20190410 from official repo --- libpsx/include/sys/stat.h | 19 +++++++++++++++++++ libpsx/include/sys/types.h | 11 +++++++++++ 2 files changed, 30 insertions(+) create mode 100644 libpsx/include/sys/stat.h create mode 100644 libpsx/include/sys/types.h (limited to 'libpsx/include/sys') diff --git a/libpsx/include/sys/stat.h b/libpsx/include/sys/stat.h new file mode 100644 index 0000000..5b0d7ca --- /dev/null +++ b/libpsx/include/sys/stat.h @@ -0,0 +1,19 @@ +/** + * PSXSDK + * + * sys/stat.h + */ + +#ifndef _SYS_STAT_H +#define _SYS_STAT_H + +struct stat +{ + unsigned int st_size; + unsigned int st_blksize; + unsigned int st_blocks; +}; + +int stat(const char *path, struct stat *sb); + +#endif diff --git a/libpsx/include/sys/types.h b/libpsx/include/sys/types.h new file mode 100644 index 0000000..2d6df2a --- /dev/null +++ b/libpsx/include/sys/types.h @@ -0,0 +1,11 @@ +#ifndef _SYS_TYPES_H +#define _SYS_TYPES_H + +#include + +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef unsigned long u_long; + +#endif -- cgit v1.2.3