for homebrew PSP development. WWW: http://www.ps2dev.org PR: ports/132323, ports/132324, ports/132325, ports/132326 ports/132327, ports/132328, ports/132329, ports/132330 Submitted by: Tassilo Philipp <tphilipp@potion-studios.com>
42 lines
835 B
C
42 lines
835 B
C
--- newlib/libc/sys/psp/sys/dirent.h.orig 1970-01-01 02:00:00.000000000 +0200
|
|
+++ newlib/libc/sys/psp/sys/dirent.h 2007-06-01 12:22:26.000000000 +0300
|
|
@@ -0,0 +1,39 @@
|
|
+#ifndef _SYS_DIRENT_H
|
|
+#define _SYS_DIRENT_H
|
|
+
|
|
+/* PSP dirent.h, based on pspiofilemgr_dirent.h
|
|
+ by Jim Paris <jim@jtan.com> */
|
|
+
|
|
+#ifdef __cplusplus
|
|
+extern "C" {
|
|
+#endif
|
|
+
|
|
+#include <pspiofilemgr_dirent.h>
|
|
+
|
|
+#define MAXNAMLEN 255
|
|
+
|
|
+/* Same as SceIoDirent, just with a different name. */
|
|
+struct dirent {
|
|
+ /** File status. */
|
|
+ SceIoStat d_stat;
|
|
+ /** File name. */
|
|
+ char d_name[256];
|
|
+ /** Device-specific data. */
|
|
+ void * d_private;
|
|
+ int dummy;
|
|
+};
|
|
+
|
|
+typedef struct {
|
|
+ SceUID uid;
|
|
+ struct dirent de;
|
|
+} DIR;
|
|
+
|
|
+DIR *opendir (const char *);
|
|
+struct dirent *readdir (DIR *);
|
|
+int closedir (DIR *);
|
|
+
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
+
|
|
+#endif
|