diff options
Diffstat (limited to 'c/src/lib/libc')
-rw-r--r-- | c/src/lib/libc/Makefile.in | 2 | ||||
-rw-r--r-- | c/src/lib/libc/getdents.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/c/src/lib/libc/Makefile.in b/c/src/lib/libc/Makefile.in index c193bd93e3..18e05bd1ff 100644 --- a/c/src/lib/libc/Makefile.in +++ b/c/src/lib/libc/Makefile.in @@ -12,7 +12,7 @@ LIBNAME=libcsupport.a LIB=${ARCH}/${LIBNAME} # C and C++ source names, if any, go here -- minus the .c or .cc -C_PIECES=__gettod __brk __times _execve malloc syscalls \ +C_PIECES=__gettod __brk __times _execve getdents malloc syscalls \ no_libc newlibc newlibif newlibifr support unixlibc \ libio hosterr tcattr tcdrain cfiospeed termios C_FILES=$(C_PIECES:%=%.c) diff --git a/c/src/lib/libc/getdents.c b/c/src/lib/libc/getdents.c new file mode 100644 index 0000000000..9b16d82409 --- /dev/null +++ b/c/src/lib/libc/getdents.c @@ -0,0 +1,14 @@ +/* + * Just enough to make newlib return an error. + * + * $Id$ + */ + +int getdents( + int fd, + void *buf, + int len +) +{ + return -1; +} |