summaryrefslogtreecommitdiff
path: root/libpsx/include/sys
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 10:32:23 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 10:32:23 +0100
commit7c24e9a9b02b04dcaf9507acb94091ea70a2c02d (patch)
treec28d0748652ad4b4222309e46e6cfc82c0906220 /libpsx/include/sys
parenta2b7b6bb1cc2f4a3258b7b2dbc92399d151f864d (diff)
downloadpsxsdk-7c24e9a9b02b04dcaf9507acb94091ea70a2c02d.tar.gz
Imported pristine psxsdk-20190410 from official repo
Diffstat (limited to 'libpsx/include/sys')
-rw-r--r--libpsx/include/sys/stat.h19
-rw-r--r--libpsx/include/sys/types.h11
2 files changed, 30 insertions, 0 deletions
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 <types.h>
+
+typedef unsigned char u_char;
+typedef unsigned short u_short;
+typedef unsigned int u_int;
+typedef unsigned long u_long;
+
+#endif