From: Roland McGrath Date: Tue, 21 Feb 1995 06:17:59 +0000 (+0000) Subject: * misc/bsd-compat.c (longjmp, setjmp): Functions removed. X-Git-Tag: upstream/2.30~30157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=787126fe16e340c8a0c4301d4cab942973d7d85c;p=external%2Fglibc.git * misc/bsd-compat.c (longjmp, setjmp): Functions removed. (getpgrp): Call __getpgid instead of __getpgrp. --- diff --git a/ChangeLog b/ChangeLog index e605efe..ea275a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Tue Feb 21 00:10:50 1995 Roland McGrath + * 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. diff --git a/NEWS b/NEWS index 21f0db5..dfc213c 100644 --- a/NEWS +++ b/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 diff --git a/misc/bsd-compat.c b/misc/bsd-compat.c index 03c43ee..2bcef9f 100644 --- a/misc/bsd-compat.c +++ b/misc/bsd-compat.c @@ -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 #include -#include -#include -#include -#include - -#undef getpgrp -function_alias(getpgrp, __getpgrp, pid_t, (pid), - DEFUN(getpgrp, (pid), pid_t pid)) - -/* 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)) +/* Don't include unistd.h because it declares a conflicting + prototype for the POSIX.1 `getpgrp' function. */ +extern pid_t __getpgid __P ((pid_t)); -#undef setjmp -int -DEFUN(setjmp, (env), jmp_buf env) +pid_t +getpgrp (pid) + pid_t pid; { - return sigsetjmp (env, 1); + return __getpgid (pid); }