diff options
author | Andreas Jaeger <aj@suse.de> | 2001-06-05 06:21:21 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-06-05 06:21:21 +0000 |
commit | 6a7a8b22f64f780e8749edca9f998ebba6fdef4f (patch) | |
tree | 7320f66735aee7c9eae6c76dd21f5315e3e518c0 /sysdeps | |
parent | 17827c3a399d597c020b87b786e0413075e72162 (diff) | |
download | glibc-6a7a8b22f64f780e8749edca9f998ebba6fdef4f.tar glibc-6a7a8b22f64f780e8749edca9f998ebba6fdef4f.tar.gz glibc-6a7a8b22f64f780e8749edca9f998ebba6fdef4f.tar.bz2 glibc-6a7a8b22f64f780e8749edca9f998ebba6fdef4f.zip |
Update.
2001-06-05 Andreas Jaeger <aj@suse.de>
* manual/libm-err-tab.pl (parse_ulps): Fix typo.
2001-06-04 H.J. Lu <hjl@gnu.org>
* sysdeps/alpha/elf/start.S: Add .type for the entry point.
* sysdeps/arm/elf/start.S: Likewise.
* sysdeps/hppa/elf/start.S: Likewise.
* sysdeps/i386/elf/start.S: Likewise.
* sysdeps/m68k/elf/start.S: Likewise.
* sysdeps/mips/elf/start.S: Likewise.
* sysdeps/ia64/elf/start.S: Likewise.
* sysdeps/sh/elf/start.S: Likewise.
* sysdeps/s390/s390-32/elf/start.S: Likewise.
* sysdeps/s390/s390-64/elf/start.S: Likewise.
* sysdeps/cris/elf/start.S: Likewise.
2001-06-04 Bruce Mitchener <bruce@cubik.org>
* manual/resource.texi: Correct setpriority/nice documentation.
* sysdeps/unix/nice.c: Correct nice() implementation.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/alpha/elf/start.S | 3 | ||||
-rw-r--r-- | sysdeps/arm/elf/start.S | 7 | ||||
-rw-r--r-- | sysdeps/cris/elf/start.S | 1 | ||||
-rw-r--r-- | sysdeps/hppa/elf/start.S | 2 | ||||
-rw-r--r-- | sysdeps/i386/elf/start.S | 1 | ||||
-rw-r--r-- | sysdeps/ia64/elf/start.S | 1 | ||||
-rw-r--r-- | sysdeps/m68k/elf/start.S | 3 | ||||
-rw-r--r-- | sysdeps/mips/elf/start.S | 1 | ||||
-rw-r--r-- | sysdeps/s390/s390-32/elf/start.S | 1 | ||||
-rw-r--r-- | sysdeps/s390/s390-64/elf/start.S | 5 | ||||
-rw-r--r-- | sysdeps/sh/elf/start.S | 7 | ||||
-rw-r--r-- | sysdeps/unix/nice.c | 13 |
12 files changed, 30 insertions, 15 deletions
diff --git a/sysdeps/alpha/elf/start.S b/sysdeps/alpha/elf/start.S index 90f59f0452..54eaab6353 100644 --- a/sysdeps/alpha/elf/start.S +++ b/sysdeps/alpha/elf/start.S @@ -1,5 +1,5 @@ /* Startup code for Alpha/ELF. - Copyright (C) 1993,1995,1996,1997,1998,2000 Free Software Foundation, Inc. + Copyright (C) 1993,1995,1996,1997,1998,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson <rth@tamu.edu> @@ -24,6 +24,7 @@ .align 3 .globl _start .ent _start, 0 + .type _start,@function _start: .frame fp, 0, zero mov zero, fp diff --git a/sysdeps/arm/elf/start.S b/sysdeps/arm/elf/start.S index 13b9c780ef..4d841c82d9 100644 --- a/sysdeps/arm/elf/start.S +++ b/sysdeps/arm/elf/start.S @@ -1,5 +1,5 @@ /* Startup code for ARM & ELF - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 2001 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 @@ -27,12 +27,12 @@ At this entry point, most registers' values are unspecified, except: a1 Contains a function pointer to be registered with `atexit'. - This is how the dynamic linker arranges to have DT_FINI + This is how the dynamic linker arranges to have DT_FINI functions called for shared libraries that have been loaded before this code runs. sp The stack contains the arguments and environment: - 0(sp) argc + 0(sp) argc 4(sp) argv[0] ... (4*argc)(sp) NULL @@ -43,6 +43,7 @@ .text .globl _start + .type _start,@function _start: /* Clear the frame pointer since this is the outermost frame. */ mov fp, #0 diff --git a/sysdeps/cris/elf/start.S b/sysdeps/cris/elf/start.S index f6336d2dab..eef5c7543b 100644 --- a/sysdeps/cris/elf/start.S +++ b/sysdeps/cris/elf/start.S @@ -42,6 +42,7 @@ .text .globl _start + type _start,@function _start: /* Clear the frame pointer, to mark the outermost frame. */ moveq 0,r8 diff --git a/sysdeps/hppa/elf/start.S b/sysdeps/hppa/elf/start.S index 88bb790be2..a5c3e521dd 100644 --- a/sysdeps/hppa/elf/start.S +++ b/sysdeps/hppa/elf/start.S @@ -14,7 +14,7 @@ .globl _start .export _start, ENTRY - + .type _start,@function _start: .proc diff --git a/sysdeps/i386/elf/start.S b/sysdeps/i386/elf/start.S index c4124df9ae..6a0795c257 100644 --- a/sysdeps/i386/elf/start.S +++ b/sysdeps/i386/elf/start.S @@ -40,6 +40,7 @@ .text .globl _start + .type _start,@function _start: /* Clear the frame pointer. The ABI suggests this be done, to mark the outermost frame obviously. */ diff --git a/sysdeps/ia64/elf/start.S b/sysdeps/ia64/elf/start.S index 27a7a1df36..ab61d701dd 100644 --- a/sysdeps/ia64/elf/start.S +++ b/sysdeps/ia64/elf/start.S @@ -37,6 +37,7 @@ .global _start .proc _start + type _start,@function _start: .prologue { .mlx diff --git a/sysdeps/m68k/elf/start.S b/sysdeps/m68k/elf/start.S index eefe75286e..cf286f1ced 100644 --- a/sysdeps/m68k/elf/start.S +++ b/sysdeps/m68k/elf/start.S @@ -1,5 +1,5 @@ /* Startup code compliant to the ELF m68k ABI. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 2001 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 @@ -38,6 +38,7 @@ .text .globl _start + .type _start,@function _start: /* Clear the frame pointer. The ABI suggests this be done, to mark the outermost frame obviously. */ diff --git a/sysdeps/mips/elf/start.S b/sysdeps/mips/elf/start.S index a5ae48048a..19bf93a643 100644 --- a/sysdeps/mips/elf/start.S +++ b/sysdeps/mips/elf/start.S @@ -67,6 +67,7 @@ .text .globl ENTRY_POINT + .type ENTRY_POINT,@function ENTRY_POINT: #ifdef __PIC__ SET_GP diff --git a/sysdeps/s390/s390-32/elf/start.S b/sysdeps/s390/s390-32/elf/start.S index 7313b92e08..104f68096a 100644 --- a/sysdeps/s390/s390-32/elf/start.S +++ b/sysdeps/s390/s390-32/elf/start.S @@ -39,6 +39,7 @@ .text .globl _start + type _start,@function _start: /* Setup pointer to literal pool of _start */ basr %r13,0 diff --git a/sysdeps/s390/s390-64/elf/start.S b/sysdeps/s390/s390-64/elf/start.S index d85c0805a9..981d3e892c 100644 --- a/sysdeps/s390/s390-64/elf/start.S +++ b/sysdeps/s390/s390-64/elf/start.S @@ -18,7 +18,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* +/* This is the canonical entry point, usually the first thing in the text segment. Most registers' values are unspecified, except for: @@ -39,6 +39,7 @@ .text .globl _start + type _start,@function _start: /* Load argc and argv from stack. */ la %r4,8(%r15) # get argv @@ -69,7 +70,7 @@ _start: .word 0 /* FIXME: FPU flags or what ?!? */ - + .section .rodata .globl _fp_hw .long 3 diff --git a/sysdeps/sh/elf/start.S b/sysdeps/sh/elf/start.S index 21b1ec2a4b..ab5ebbfa4b 100644 --- a/sysdeps/sh/elf/start.S +++ b/sysdeps/sh/elf/start.S @@ -1,5 +1,5 @@ /* Startup code for SH & ELF. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2001 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 @@ -27,12 +27,12 @@ At this entry point, most registers' values are unspecified, except: r4 Contains a function pointer to be registered with `atexit'. - This is how the dynamic linker arranges to have DT_FINI + This is how the dynamic linker arranges to have DT_FINI functions called for shared libraries that have been loaded before this code runs. sp The stack contains the arguments and environment: - 0(sp) argc + 0(sp) argc 4(sp) argv[0] ... (4*argc)(sp) NULL @@ -43,6 +43,7 @@ .text .globl _start + type _start,@function _start: /* Clear the frame pointer since this is the outermost frame. */ mov #0, r14 diff --git a/sysdeps/unix/nice.c b/sysdeps/unix/nice.c index ffde93f3c2..17d07376bc 100644 --- a/sysdeps/unix/nice.c +++ b/sysdeps/unix/nice.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1996, 1997, 2001 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 @@ -23,11 +23,11 @@ /* Increment the scheduling priority of the calling process by INCR. The superuser may use a negative INCR to decrement the priority. */ int -nice (incr) - int incr; +nice (int incr) { int save; int prio; + int result; /* -1 is a valid priority, so we use errno to check for an error. */ save = errno; @@ -41,5 +41,10 @@ nice (incr) __set_errno (save); } - return setpriority (PRIO_PROCESS, 0, prio + incr); + result = setpriority (PRIO_PROCESS, 0, prio + incr); + if (result != -1) + return prio + incr; + else + return -1; + } |