1 #ifndef LIBPICOFE_POSIX_H
2 #define LIBPICOFE_POSIX_H
4 /* define POSIX stuff: dirent, scandir, getcwd, mkdir */
5 #if defined(__FreeBSD__) || defined(__MACH__) || defined(__linux__) || defined(__MINGW32__)
10 #include <sys/types.h>
14 #define mkdir(pathname,mode) mkdir(pathname)
20 #elif defined(__PSP__)
27 /* map PSP names to posix. needs special scandir() function to mask rwx bits */
28 #define d_type d_stat.st_attr
29 #define DT_LNK FIO_SO_IFLNK
30 #define DT_DIR FIO_SO_IFDIR
31 #define DT_REG FIO_SO_IFREG
37 #error "must provide posix"
41 #endif // LIBPICOFE_POSIX_H