From 9b022d6db80564cfc10c7f18e5d05cedb32f6375 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Fri, 19 Jul 2002 20:36:09 +0000 Subject: * libc/argz/argz_replace.c: Include buf_findstr.h. * libc/argz/buf_findstr.c: Likewise. * libc/argz/envz_entry.c: Include buf_findstr.h. Cast return value to (char *). * libc/argz/envz_get.c: Likewise. * libc/include/sys/unistd.h: Add getopt and getsubopt declarations. * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c. * libc/stdlib/getsubopt.3: New file. * libc/stdlib/getsubopt.c: New file. * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base): Change esp to ebp. --- newlib/libc/sys/linux/machine/i386/socketcall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/sys/linux') diff --git a/newlib/libc/sys/linux/machine/i386/socketcall.h b/newlib/libc/sys/linux/machine/i386/socketcall.h index bd83d5175..07908767f 100644 --- a/newlib/libc/sys/linux/machine/i386/socketcall.h +++ b/newlib/libc/sys/linux/machine/i386/socketcall.h @@ -18,7 +18,7 @@ #define __sockcall_base(type, name) \ { \ long __res; \ -__asm__ volatile ("push %%ebx; movl %2,%%ebx; lea 8(%%esp),%%ecx; int $0x80; pop %%ebx" \ +__asm__ volatile ("push %%ebx; movl %2,%%ebx; lea 8(%%ebp),%%ecx; int $0x80; pop %%ebx" \ : "=a" (__res) \ : "0" (__NR_socketcall),"r" (SOCK_##name)); \ __syscall_return(type,__res); \ -- cgit v1.2.3