summaryrefslogtreecommitdiff
path: root/core/include/fs.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-03-04 22:54:07 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-03-04 22:54:07 -0800
commitb4da45a8a0a7c7e6f66850dee1f1733100767c30 (patch)
tree9c7113f863d116123b33627e4351e642410ebb22 /core/include/fs.h
parent62f4043881ed61fae8ea899c59797a1cc8e1c651 (diff)
downloadsyslinux-b4da45a8a0a7c7e6f66850dee1f1733100767c30.tar.gz
readdir: replace opendir/readdir/closedir API with a 32-bit API
The 16-bit API to opendir/readdir/closedir was confused, had a memory leak, and was incompatible with Syslinux 3.x anyway. Replace it with a pure 32-bit API. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r--core/include/fs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/include/fs.h b/core/include/fs.h
index c210288b..14073e53 100644
--- a/core/include/fs.h
+++ b/core/include/fs.h
@@ -6,6 +6,7 @@
#include <string.h>
#include <com32.h>
#include <stdio.h>
+#include <sys/dirent.h>
#include "core.h"
#include "disk.h"
@@ -210,6 +211,11 @@ void pm_realpath(com32sys_t *regs);
size_t realpath(char *dst, const char *src, size_t bufsize);
int chdir(const char *src);
+/* readdir.c */
+DIR *opendir(const char *pathname);
+struct dirent *readdir(DIR *dir);
+int closedir(DIR *dir);
+
/*
* Generic functions that filesystem drivers may choose to use
*/