projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.29.13: relax CAST-EXTERNALLY-CHECKABLE-P a bit
[sbcl.git]
/
src
/
runtime
/
largefile.c
diff --git
a/src/runtime/largefile.c
b/src/runtime/largefile.c
index
bd4cbc1
..
b71a77f
100644
(file)
--- a/
src/runtime/largefile.c
+++ b/
src/runtime/largefile.c
@@
-22,6
+22,7
@@
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/types.h>
+#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/stat.h>
@@
-42,7
+43,7
@@
ftruncate_largefile(int fd, off_t length) {
void*
mmap_largefile(void *start, size_t length, int prot, int flags, int fd, off_t offset) {
void*
mmap_largefile(void *start, size_t length, int prot, int flags, int fd, off_t offset) {
- mmap(start, length, prot, flags, fd, offset);
+ return mmap(start, length, prot, flags, fd, offset);
}
int
}
int
@@
-60,4
+61,9
@@
lstat_largefile(const char *file_name, struct stat *buf) {
return lstat(file_name, buf);
}
return lstat(file_name, buf);
}
+struct dirent64 *
+readdir_largefile(DIR *dir) {
+ return readdir64(dir);
+}
+
#endif
#endif