notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a23a278
)
add minimal PSP support
author
kub
<derkub@gmail.com>
Thu, 14 Jan 2021 20:57:13 +0000
(21:57 +0100)
committer
kub
<derkub@gmail.com>
Sat, 16 Jan 2021 11:29:00 +0000
(12:29 +0100)
posix.h
patch
|
blob
|
blame
|
history
diff --git
a/posix.h
b/posix.h
index
35f4d28
..
ca30edb
100644
(file)
--- a/
posix.h
+++ b/
posix.h
@@
-17,6
+17,19
@@
#define DT_DIR 0
#endif
+#elif defined(__PSP__)
+
+#include <dirent.h>
+#include <unistd.h>
+#include <sys/stat.h>
+
+/* map PSP names to posix. needs special scandir() function to mask rwx bits */
+#define d_type d_stat.st_attr
+#define DT_LNK FIO_SO_IFLNK
+#define DT_DIR FIO_SO_IFDIR
+#define DT_REG FIO_SO_IFREG
+#define DT_UNKNOWN 0
+
#else
#error "must provide posix"