Skip to content

Commit

Permalink
add minimal PSP support
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Jan 16, 2021
1 parent a23a278 commit dfe767a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dfe767a

Please sign in to comment.