mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
* misc/bsd-compat.c (longjmp, setjmp): Functions removed.
(getpgrp): Call __getpgid instead of __getpgrp.
This commit is contained in:
parent
01cc0be627
commit
787126fe16
@ -1,5 +1,8 @@
|
||||
Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||
|
||||
* misc/bsd-compat.c (longjmp, setjmp): Functions removed.
|
||||
(getpgrp): Call __getpgid instead of __getpgrp.
|
||||
|
||||
* Makefile (subdirs): Add elf first.
|
||||
* elf/Makefile: New file.
|
||||
* elf/elf.h: New file.
|
||||
|
21
NEWS
21
NEWS
@ -1,4 +1,4 @@
|
||||
GNU C Library NEWS -- history of user-visible changes. 26 January 1995
|
||||
GNU C Library NEWS -- history of user-visible changes. 17 February 1995
|
||||
|
||||
Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
|
||||
See the end for copying conditions.
|
||||
@ -11,8 +11,8 @@ Version 1.10
|
||||
symbols where available. The ELF object file format supports weak
|
||||
symbols; GNU ld also supports weak symbols in the a.out format. (There
|
||||
is also now support for other GNU ld extensions in ELF. Use the
|
||||
`--with-elf' option to configure to indicate you have elf, and
|
||||
`--with-gnu-ld' if using GNU ld.) This changed resulted in the deletion
|
||||
`--with-elf' option to configure to indicate you have ELF, and
|
||||
`--with-gnu-ld' if using GNU ld.) This change resulted in the deletion
|
||||
of many files which contained only symbol aliases, reducing the size of
|
||||
the source and the compiled library; many other files were renamed to
|
||||
less cryptic names previously occupied by the symbol alias files.
|
||||
@ -40,6 +40,10 @@ Version 1.10
|
||||
strings, like `strtol' and `strtoul', but they return `long long int' and
|
||||
`unsigned long long int' values, respectively (64-bit quantities).
|
||||
|
||||
* The new functions `strtof' and `strtold' parse floating-point values from
|
||||
strings, like `strtod', but they return `float' and `long double' values,
|
||||
respectively (on some machines `double' and `long double' are the same).
|
||||
|
||||
* There is a new malloc debugging hook `__memalign_hook'.
|
||||
|
||||
* There are new typedefs `ushort' for `unsigned short int' and `uint' for
|
||||
@ -48,6 +52,17 @@ Version 1.10
|
||||
|
||||
* The `-lmcheck' library to enable standard malloc debugging hooks is now
|
||||
done differently, so that it works even without GNU ld.
|
||||
|
||||
* Ulrich Drepper has contributed new implementations of the floating-point
|
||||
printing and reading code used in the `printf' family of functions and
|
||||
`strtod', `strtof', and `strtold'. These new functions are perfectly
|
||||
accurate, and much faster than the old ones.
|
||||
|
||||
* The `printf' family of functions now understand a new formatting flag
|
||||
for numeric conversions: the ' flag (e.g. %'d or %'f) says to group
|
||||
numbers as indicated by the locale. In the default "C" locale, numbers
|
||||
are not grouped; but locales for specific countries will define the
|
||||
usual conventions (i.e. separate thousands with `,' in the US locale).
|
||||
|
||||
Version 1.09
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* BSD-compatible versions of functions where BSD and POSIX.1 conflict.
|
||||
|
||||
Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1992, 1994, 1995 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
|
||||
@ -18,33 +18,15 @@ License along with the GNU C Library; see the file COPYING.LIB. If
|
||||
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||
Cambridge, MA 02139, USA. */
|
||||
|
||||
#define _BSD_SOURCE
|
||||
|
||||
#include <ansidecl.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <gnu-stabs.h>
|
||||
#include <limits.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#undef getpgrp
|
||||
function_alias(getpgrp, __getpgrp, pid_t, (pid),
|
||||
DEFUN(getpgrp, (pid), pid_t pid))
|
||||
/* Don't include unistd.h because it declares a conflicting
|
||||
prototype for the POSIX.1 `getpgrp' function. */
|
||||
extern pid_t __getpgid __P ((pid_t));
|
||||
|
||||
/* These entry points allow for things compiled for another C library
|
||||
that want the BSD-compatible definitions. (Of course, their jmp_buf
|
||||
must be big enough.) */
|
||||
|
||||
#undef longjmp
|
||||
#ifdef __STDC__
|
||||
#define void __NORETURN void
|
||||
#endif
|
||||
function_alias_void(longjmp, siglongjmp, (env, val),
|
||||
DEFUN(longjmp, (env, val), CONST jmp_buf env AND int val))
|
||||
|
||||
#undef setjmp
|
||||
int
|
||||
DEFUN(setjmp, (env), jmp_buf env)
|
||||
pid_t
|
||||
getpgrp (pid)
|
||||
pid_t pid;
|
||||
{
|
||||
return sigsetjmp (env, 1);
|
||||
return __getpgid (pid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user