mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
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.
This commit is contained in:
24
ChangeLog
24
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
|
||||
|
@@ -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/) {
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
@@ -43,6 +43,7 @@
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
.type _start,@function
|
||||
_start:
|
||||
/* Clear the frame pointer since this is the outermost frame. */
|
||||
mov fp, #0
|
||||
|
@@ -42,6 +42,7 @@
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
type _start,@function
|
||||
_start:
|
||||
/* Clear the frame pointer, to mark the outermost frame. */
|
||||
moveq 0,r8
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
.globl _start
|
||||
.export _start, ENTRY
|
||||
|
||||
.type _start,@function
|
||||
_start:
|
||||
|
||||
.proc
|
||||
|
@@ -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. */
|
||||
|
@@ -37,6 +37,7 @@
|
||||
.global _start
|
||||
|
||||
.proc _start
|
||||
type _start,@function
|
||||
_start:
|
||||
.prologue
|
||||
{ .mlx
|
||||
|
@@ -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. */
|
||||
|
@@ -67,6 +67,7 @@
|
||||
|
||||
.text
|
||||
.globl ENTRY_POINT
|
||||
.type ENTRY_POINT,@function
|
||||
ENTRY_POINT:
|
||||
#ifdef __PIC__
|
||||
SET_GP
|
||||
|
@@ -39,6 +39,7 @@
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
type _start,@function
|
||||
_start:
|
||||
/* Setup pointer to literal pool of _start */
|
||||
basr %r13,0
|
||||
|
@@ -39,6 +39,7 @@
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
type _start,@function
|
||||
_start:
|
||||
/* Load argc and argv from stack. */
|
||||
la %r4,8(%r15) # get argv
|
||||
|
@@ -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
|
||||
@@ -43,6 +43,7 @@
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
type _start,@function
|
||||
_start:
|
||||
/* Clear the frame pointer since this is the outermost frame. */
|
||||
mov #0, r14
|
||||
|
@@ -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;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user