diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-28 11:06:03 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-28 11:06:03 +0000 |
commit | 1e78eb0bd44caf57a234c49ff9b5193a977b6ad3 (patch) | |
tree | 5f48d2c9aeedfe8c04d989230427204f10f7e0ba /libc/misc/dirent/dirstream.h | |
parent | 46de710e624b2e578d9adf3bf44de5513867fba3 (diff) |
Fix scandir64 to not free the wrong pieces of memory (which could
and did cause segfaults) by adjusting the working scandir.c to
the the 64 thing. Fix up potential for mismatches between the
libc and kernel dirent structures, which could also cause ugly
problems.
-Erik
Diffstat (limited to 'libc/misc/dirent/dirstream.h')
-rw-r--r-- | libc/misc/dirent/dirstream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/misc/dirent/dirstream.h b/libc/misc/dirent/dirstream.h index 92e81af0b..5cb63a23d 100644 --- a/libc/misc/dirent/dirstream.h +++ b/libc/misc/dirent/dirstream.h @@ -70,4 +70,8 @@ struct __dirstream { #endif }; /* stream data from opendir() */ + +extern int __getdents(unsigned int fd, struct dirent *dirp, unsigned int count); +extern int __getdents64 (unsigned int fd, struct dirent64 *dirp, unsigned int count); + #endif /* dirent.h */ |