]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Tue, 5 Jun 2001 06:21:21 +0000 (06:21 +0000)
committerAndreas Jaeger <aj@suse.de>
Tue, 5 Jun 2001 06:21:21 +0000 (06:21 +0000)
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.

15 files changed:
ChangeLog
manual/libm-err-tab.pl
manual/resource.texi
sysdeps/alpha/elf/start.S
sysdeps/arm/elf/start.S
sysdeps/cris/elf/start.S
sysdeps/hppa/elf/start.S
sysdeps/i386/elf/start.S
sysdeps/ia64/elf/start.S
sysdeps/m68k/elf/start.S
sysdeps/mips/elf/start.S
sysdeps/s390/s390-32/elf/start.S
sysdeps/s390/s390-64/elf/start.S
sysdeps/sh/elf/start.S
sysdeps/unix/nice.c

index 10cf5128737d3cb70bf548df821cb51746305fa3..6f458fa94435006a815665cec00800303040f834 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+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.
+
 2001-06-04  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/ieee754/ldbl-128/e_sinhl.c: New file, contributed by
index 448bf801ab8b41f1702f3ce3ab6c32353d3ed321..fa10858343f362af2c10939c177fd01ca04282dd 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
-# Copyright (C) 1999 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Andreas Jaeger <aj@suse.de>, 1999.
 
@@ -110,7 +110,7 @@ sub parse_ulps {
       next;
     }
     if (/^Function: /) {
-      if (/\Real part of/) {
+      if (/Real part of/) {
        s/Real part of //;
        $type = 'real';
       } elsif (/Imaginary part of/) {
index da30d7cbda3f0c03f1c92a78f4f1de013b78bf43..3beb9390065a828ee3a42b05f35e25a8b24facf3 100644 (file)
@@ -1170,7 +1170,7 @@ afterward as the criterion for failure.
 Set the nice value of a set of processes to @var{niceval}; @var{class}
 and @var{id} specify which ones (see below).
 
-The return value is the nice value on success, and @code{-1} on
+The return value is @code{0} on success, and @code{-1} on
 failure.  The following @code{errno} error condition are possible for
 this function:
 
@@ -1225,7 +1225,10 @@ process group, or its owner (real uid), according to @var{class}.
 @comment BSD
 @deftypefun int nice (int @var{increment})
 Increment the nice value of the calling process by @var{increment}.
-The return value is the same as for @code{setpriority}.
+The return value is the new nice value on success, and @code{-1} on
+failure.  In the case of failure, @code{errno} will be set to the
+same values as for @code{setpriority}.
+
 
 Here is an equivalent definition of @code{nice}:
 
@@ -1233,8 +1236,12 @@ Here is an equivalent definition of @code{nice}:
 int
 nice (int increment)
 @{
-  int old = getpriority (PRIO_PROCESS, 0);
-  return setpriority (PRIO_PROCESS, 0, old + increment);
+  int result, old = getpriority (PRIO_PROCESS, 0);
+  result = setpriority (PRIO_PROCESS, 0, old + increment);
+  if (result != -1)
+      return old + increment;
+  else
+      return -1;
 @}
 @end smallexample
 @end deftypefun
index 90f59f0452de1b71969fac737637cb5d5b2b5496..54eaab6353117cce0d38370a269a389f71d3bd1a 100644 (file)
@@ -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
index 13b9c780ef8e2027ccf9412733c08716ddb2580c..4d841c82d954a5245238a26bdc9379dbd23d7a6e 100644 (file)
@@ -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
        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
index f6336d2dab48fe125e5f13141435533da25661ab..eef5c7543b910107d2589cf19b31304b1e63c219 100644 (file)
@@ -42,6 +42,7 @@
 
        .text
        .globl  _start
+       type _start,@function
 _start:
        /* Clear the frame pointer, to mark the outermost frame.  */
        moveq   0,r8
index 88bb790be273a42dd07abe50d14dd3787b1efc4b..a5c3e521dd0940f0cc0934fe58f6451c3a150e99 100644 (file)
@@ -14,7 +14,7 @@
        
        .globl _start
        .export _start, ENTRY
-
+       .type _start,@function
 _start:
 
        .proc
index c4124df9ae5020c09114db827dee0b1778a4a53c..6a0795c2577e23ff685098ad8cc9f5f53b47e6d4 100644 (file)
@@ -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.  */
index 27a7a1df36ccc22b344cb9f51932bd0068b6a166..ab61d701dd9d0c36f49892da94311573a1398fd0 100644 (file)
@@ -37,6 +37,7 @@
        .global _start
 
        .proc _start
+       type _start,@function
 _start:
        .prologue
        { .mlx
index eefe75286e1b2106bd85b348ca5d296d629186e2..cf286f1cedfa9820fb5aca620560d39bf0b6da0a 100644 (file)
@@ -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.  */
index a5ae48048a11b847089fd3fe691c1a660e4395c1..19bf93a64342d682cf22457f0e69132231da7e5a 100644 (file)
@@ -67,6 +67,7 @@
 
        .text
        .globl ENTRY_POINT
+       .type ENTRY_POINT,@function
 ENTRY_POINT:
 #ifdef __PIC__
        SET_GP
index 7313b92e088e861db1485462674338923577760d..104f68096a02941ce9af9a49f3269d81ef84b015 100644 (file)
@@ -39,6 +39,7 @@
 
        .text
        .globl _start
+       type _start,@function
 _start:
        /* Setup pointer to literal pool of _start */
        basr    %r13,0
index d85c0805a9f04de667a031bfd8b5f97f5a274feb..981d3e892c96537398f1945dd2b25cbc781fae37 100644 (file)
@@ -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
index 21b1ec2a4bdca001a00c64b9d92ef9244d56a94a..ab5ebbfa4bd0cfbacffd47bfffadc3c1fab51dac 100644 (file)
@@ -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
        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
index ffde93f3c2beed0a9c7bd91d607a18a5fd7df0d0..17d07376bc8015aec89602d5a2b25d65c6e90eab 100644 (file)
@@ -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
 /* 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;
+
 }