aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-02-21 06:17:59 +0000
committerRoland McGrath <roland@gnu.org>1995-02-21 06:17:59 +0000
commit787126fe16e340c8a0c4301d4cab942973d7d85c (patch)
treedf1478404a6073a3e1fc6251a8c2e922af499a03
parent01cc0be62795f0afee7d7866bb2ec2f24b92dcee (diff)
downloadglibc-787126fe16e340c8a0c4301d4cab942973d7d85c.zip
glibc-787126fe16e340c8a0c4301d4cab942973d7d85c.tar.gz
glibc-787126fe16e340c8a0c4301d4cab942973d7d85c.tar.bz2
* misc/bsd-compat.c (longjmp, setjmp): Functions removed.
(getpgrp): Call __getpgid instead of __getpgrp.
-rw-r--r--ChangeLog3
-rw-r--r--NEWS21
-rw-r--r--misc/bsd-compat.c34
3 files changed, 29 insertions, 29 deletions
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 <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.
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 <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))
-
-/* 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);
}