diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-03 17:58:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-03 17:58:38 +0000 |
commit | 8fb3e0079a0512e8525f6c5897c51563d57801e7 (patch) | |
tree | a6f26d8cbf90b7ee76dc3c0b7fc20f8664f9a513 /sysdeps | |
parent | ae828bc6f9a3ff47cb92846f71a9a7f8c6d5c941 (diff) | |
download | glibc-8fb3e0079a0512e8525f6c5897c51563d57801e7.zip glibc-8fb3e0079a0512e8525f6c5897c51563d57801e7.tar.gz glibc-8fb3e0079a0512e8525f6c5897c51563d57801e7.tar.bz2 |
Update.
1998-03-03 17:55 Ulrich Drepper <drepper@cygnus.com>
* elf/sprof.c: Cleanup a bit.
1998-03-03 08:01 H.J. Lu <hjl@gnu.org>
* sysdeps/generic/sysdep.h (L): New. Define.
* sysdeps/unix/sysv/linux/i386/sysdep.h (L): New. Define.
* sysdeps/i386/i586/addmul_1.S: Fix a typo.
* sysdeps/unix/sysv/linux/i386/clone.S: Follow Intel's advice
to have only one exit point for functions.
* sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
* sysdeps/unix/sysv/linux/i386/s_pread64.S: Likewise.
* sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Likewise.
* sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
* sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1998-03-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Safe and
reset errno so that errno isn't set to ENOSYS in the first call.
* sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Likewise.
* sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
* sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
* sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/sysdep.h | 7 | ||||
-rw-r--r-- | sysdeps/i386/i586/addmul_1.S | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/clone.S | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/mmap.S | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/s_pread64.S | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/s_pwrite64.S | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sigaction.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/socket.S | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/syscall.S | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sysdep.h | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sigaction.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sigpending.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sigprocmask.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sigsuspend.c | 2 |
14 files changed, 34 insertions, 10 deletions
diff --git a/sysdeps/generic/sysdep.h b/sysdeps/generic/sysdep.h index 014cd1c..2ba01f4 100644 --- a/sysdeps/generic/sysdep.h +++ b/sysdeps/generic/sysdep.h @@ -1,5 +1,5 @@ /* Generic asm macros used on many machines. - Copyright (C) 1991, 92, 93, 96 Free Software Foundation, Inc. + Copyright (C) 1991, 92, 93, 96, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -41,3 +41,8 @@ #ifndef END #define END(sym) #endif + +/* Local label name for asm code. */ +#ifndef L +#define L(name) name +#endif diff --git a/sysdeps/i386/i586/addmul_1.S b/sysdeps/i386/i586/addmul_1.S index b97799f..76bf25f 100644 --- a/sysdeps/i386/i586/addmul_1.S +++ b/sysdeps/i386/i586/addmul_1.S @@ -35,7 +35,7 @@ #define s2_limb ebp .text -ENRTY(__mpn_addmul_1) +ENTRY(__mpn_addmul_1) INSN1(push,l ,R(edi)) INSN1(push,l ,R(esi)) diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S index 0aec95e..88d0e27 100644 --- a/sysdeps/unix/sysv/linux/i386/clone.S +++ b/sysdeps/unix/sysv/linux/i386/clone.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson (rth@tamu.edu) @@ -59,6 +59,7 @@ ENTRY(__clone) jl syscall_error jz thread_start +L(pseudo_end): ret thread_start: diff --git a/sysdeps/unix/sysv/linux/i386/mmap.S b/sysdeps/unix/sysv/linux/i386/mmap.S index 30bbcdf..5c2449e 100644 --- a/sysdeps/unix/sysv/linux/i386/mmap.S +++ b/sysdeps/unix/sysv/linux/i386/mmap.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -40,6 +40,7 @@ ENTRY (__mmap) ja syscall_error /* Successful; return the syscall's value. */ +L(pseudo_end): ret PSEUDO_END (__mmap) diff --git a/sysdeps/unix/sysv/linux/i386/s_pread64.S b/sysdeps/unix/sysv/linux/i386/s_pread64.S index 9e14aa8..7f8816b 100644 --- a/sysdeps/unix/sysv/linux/i386/s_pread64.S +++ b/sysdeps/unix/sysv/linux/i386/s_pread64.S @@ -1,5 +1,5 @@ /* pread64 syscall for Linux/ix86. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -48,7 +48,8 @@ ENTRY (__syscall_pread64) POPARGS_5 /* Restore register contents. */ cmpl $-4095, %eax /* Check %eax for error. */ jae syscall_error /* Jump to error handler if error. */ - ret /* Return to caller. */ #endif + ret /* Return to caller. */ +L(pseudo_end): PSEUDO_END (__syscall_pread64) diff --git a/sysdeps/unix/sysv/linux/i386/s_pwrite64.S b/sysdeps/unix/sysv/linux/i386/s_pwrite64.S index a21fe2f..7b72d12 100644 --- a/sysdeps/unix/sysv/linux/i386/s_pwrite64.S +++ b/sysdeps/unix/sysv/linux/i386/s_pwrite64.S @@ -1,5 +1,5 @@ /* pwrite64 syscall for Linux/ix86. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -48,7 +48,8 @@ ENTRY (__syscall_pwrite64) POPARGS_5 /* Restore register contents. */ cmpl $-4095, %eax /* Check %eax for error. */ jae syscall_error /* Jump to error handler if error. */ - ret /* Return to caller. */ #endif +L(pseudo_end): + ret /* Return to caller. */ PSEUDO_END (__syscall_pwrite64) diff --git a/sysdeps/unix/sysv/linux/i386/sigaction.c b/sysdeps/unix/sysv/linux/i386/sigaction.c index a6d2b63..0110a80 100644 --- a/sysdeps/unix/sysv/linux/i386/sigaction.c +++ b/sysdeps/unix/sysv/linux/i386/sigaction.c @@ -48,6 +48,7 @@ __sigaction (int sig, const struct sigaction *act, struct sigaction *oact) if (!__libc_missing_rt_sigs) { struct kernel_sigaction kact, koact; + int saved_errno = errno; if (act) { @@ -76,6 +77,7 @@ __sigaction (int sig, const struct sigaction *act, struct sigaction *oact) return result; } + __set_errno (saved_errno); __libc_missing_rt_sigs = 1; } diff --git a/sysdeps/unix/sysv/linux/i386/socket.S b/sysdeps/unix/sysv/linux/i386/socket.S index f649470..4326676 100644 --- a/sysdeps/unix/sysv/linux/i386/socket.S +++ b/sysdeps/unix/sysv/linux/i386/socket.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -58,6 +58,7 @@ ENTRY (__socket) jae syscall_error /* Successful; return the syscall's value. */ +L(pseudo_end): ret PSEUDO_END (__socket) diff --git a/sysdeps/unix/sysv/linux/i386/syscall.S b/sysdeps/unix/sysv/linux/i386/syscall.S index 6a020e0..349408d 100644 --- a/sysdeps/unix/sysv/linux/i386/syscall.S +++ b/sysdeps/unix/sysv/linux/i386/syscall.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,6 +31,7 @@ ENTRY (syscall) POPARGS_5 /* Restore register contents. */ cmpl $-4095, %eax /* Check %eax for error. */ jae syscall_error /* Jump to error handler if error. */ +L(pseudo_end): ret /* Return to caller. */ PSEUDO_END (syscall) diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 7455e8d..4ebcc6c 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -30,6 +30,9 @@ #undef SYS_ify #define SYS_ify(syscall_name) __NR_##syscall_name +/* ELF-like local names start with `.L'. */ +#undef L +#define L(name) .L##name #ifdef ASSEMBLER diff --git a/sysdeps/unix/sysv/linux/sigaction.c b/sysdeps/unix/sysv/linux/sigaction.c index 49cb3b6..773bfa0 100644 --- a/sysdeps/unix/sysv/linux/sigaction.c +++ b/sysdeps/unix/sysv/linux/sigaction.c @@ -50,6 +50,7 @@ __sigaction (sig, act, oact) if (!__libc_missing_rt_sigs) { struct kernel_sigaction kact, koact; + int saved_errno = errno; if (act) { @@ -80,6 +81,7 @@ __sigaction (sig, act, oact) return result; } + __set_errno (saved_errno); __libc_missing_rt_sigs = 1; } diff --git a/sysdeps/unix/sysv/linux/sigpending.c b/sysdeps/unix/sysv/linux/sigpending.c index 4d5514a..1776fdd 100644 --- a/sysdeps/unix/sysv/linux/sigpending.c +++ b/sysdeps/unix/sysv/linux/sigpending.c @@ -40,11 +40,13 @@ sigpending (set) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ + int saved_errno = errno; int result = __syscall_rt_sigpending (set, _NSIG / 8); if (result >= 0 || errno != ENOSYS) return result; + __set_errno (saved_errno); __libc_missing_rt_sigs = 1; } diff --git a/sysdeps/unix/sysv/linux/sigprocmask.c b/sysdeps/unix/sysv/linux/sigprocmask.c index 476f46a..064179e 100644 --- a/sysdeps/unix/sysv/linux/sigprocmask.c +++ b/sysdeps/unix/sysv/linux/sigprocmask.c @@ -41,11 +41,13 @@ __sigprocmask (how, set, oset) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ + int saved_errno = errno; int result = __syscall_rt_sigprocmask (how, set, oset, _NSIG / 8); if (result >= 0 || errno != ENOSYS) return result; + __set_errno (saved_errno); __libc_missing_rt_sigs = 1; } diff --git a/sysdeps/unix/sysv/linux/sigsuspend.c b/sysdeps/unix/sysv/linux/sigsuspend.c index 1970154..a5d2eb0 100644 --- a/sysdeps/unix/sysv/linux/sigsuspend.c +++ b/sysdeps/unix/sysv/linux/sigsuspend.c @@ -40,11 +40,13 @@ __sigsuspend (set) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ + int saved_errno = errno; int result = __syscall_rt_sigsuspend (set, _NSIG / 8); if (result >= 0 || errno != ENOSYS) return result; + __set_errno (saved_errno); __libc_missing_rt_sigs = 1; } |