From e547d07a488ab17397217e2a57594c78bf747373 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 4 Nov 2000 04:37:24 +0000 Subject: More cleanups. Fix things so tinylogin compiles. Fix a bug in getdelim -- patch from David Whedon . --- libc/sysdeps/linux/common/Makefile | 3 ++- libc/sysdeps/linux/common/syscalls.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/common') 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 -_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 -_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 -- cgit v1.2.3