X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=posix.h;h=ca30edb9958f5727951bde50cf17088991b7cf78;hb=c668921a45b7a7f5f548d0e09836f143f56b4ae0;hp=35f4d2836a1eed84ab04ea867e0b26aa0113b035;hpb=7bf7acb6d60e16e9eaa208761d019c39da396fc0;p=libpicofe.git diff --git a/posix.h b/posix.h index 35f4d28..ca30edb 100644 --- a/posix.h +++ b/posix.h @@ -17,6 +17,19 @@ #define DT_DIR 0 #endif +#elif defined(__PSP__) + +#include +#include +#include + +/* 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"