fa4ba916ea
* include/dirent.h: New file. Import from glibc-2.2.5. * include/dirstream.h: Likewise. * lib/dirent/__getdirentries.c: Likewise. * lib/dirent/closedir.c: Likewise. * lib/dirent/readdir.c (readdir): Likewise. * lib/libc+gnu.c: Include them. * include/linux/x86/syscall.h (SYS_getdents): New macro. * include/linux/x86_64/syscall.h (SYS_getdents): Likewise. * lib/linux/gnu.c (getdents): New function. * include/limits.h (NAME_MAX): New macro. * include/fcntl.h (O_DIRECTORY): New macro. * scaffold/tests/readdir.dir: New directory. * scaffold/tests/99-readdir.c: New file, use it. * build-aux/check-mescc.sh (tests): Run it. |
||
---|---|---|
.. | ||
linux | ||
sys | ||
alloca.h | ||
argz.h | ||
assert.h | ||
ctype.h | ||
dirent.h | ||
dirstream.h | ||
dlfcn.h | ||
endian.h | ||
errno.h | ||
fcntl.h | ||
features.h | ||
float.h | ||
getopt.h | ||
inttypes.h | ||
libgen.h | ||
libmes-mini.h | ||
libmes.h | ||
limits.h | ||
locale.h | ||
math.h | ||
memory.h | ||
pwd.h | ||
setjmp.h | ||
signal.h | ||
stdarg.h | ||
stdbool.h | ||
stddef.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
stdnoreturn.h | ||
string.h | ||
strings.h | ||
time.h | ||
unistd.h |