summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-11-04 04:37:24 +0000
committerEric Andersen <andersen@codepoet.org>2000-11-04 04:37:24 +0000
commite547d07a488ab17397217e2a57594c78bf747373 (patch)
tree27ff5a616a1a4c6172cceb824be19e609b5d80a1 /libc/sysdeps/linux/common
parentcb9fa11843a7ea4a353a1a9954c8e054b35332b2 (diff)
More cleanups. Fix things so tinylogin compiles.
Fix a bug in getdelim -- patch from David Whedon <dwhedon@gordian.com>.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/Makefile3
-rw-r--r--libc/sysdeps/linux/common/syscalls.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile
index 0c361ba48..8d2b93830 100644
--- a/libc/sysdeps/linux/common/Makefile
+++ b/libc/sysdeps/linux/common/Makefile
@@ -29,7 +29,8 @@ LIBC=$(TOPDIR)libc.a
CSRC =closedir.o dirfd.o getdents.o getdnnm.o gethstnm.o getpagesize.o \
isatty.o kernel_version.o mkfifo.o opendir.o readdir.o rewinddir.o \
seekdir.o setegid.o seteuid.o setpgrp.o statfix.o tcgetatr.o tell.o \
- telldir.o wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o
+ telldir.o wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o \
+ libc_init.o
COBJS=$(patsubst %.c,%.o, $(CSRC))
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index c7d4343be..6b18c356d 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -44,13 +44,13 @@ _syscall0(pid_t, fork);
//#define __NR_read 3
#ifdef L_read
#include <unistd.h>
-_syscall3(size_t, read, int, fd, char *, buf, size_t, count);
+_syscall3(ssize_t, read, int, fd, __ptr_t, buf, size_t, count);
#endif
//#define __NR_write 4
#ifdef L_write
#include <unistd.h>
-_syscall3(size_t, write, int, fd, const char *, buf, size_t, count);
+_syscall3(ssize_t, write, int, fd, const __ptr_t, buf, size_t, count);
#endif
//#define __NR_open 5