blob: b5598faf162e18332ee57bbd8d018368447a865f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
--- ./newlib/libc/sys/psp/sys/dirent.h.orig 2012-01-25 19:33:12.000000000 +0000
+++ ./newlib/libc/sys/psp/sys/dirent.h 2012-01-25 19:33:12.000000000 +0000
@@ -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
|