diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-20 09:48:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-20 09:48:01 +0000 |
commit | a0780919b48b7b966822f3513edd6cf131ad3d8d (patch) | |
tree | 4fbadfbb73b113800da2fd1b21ac45ce1fe41862 /stdio-common/tstscanf.c | |
parent | c53a89d434f518f99d5168e9c8693ac63777042a (diff) | |
download | glibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.zip glibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.tar.gz glibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.tar.bz2 |
Update.
1998-09-20 09:37 Ulrich Drepper <drepper@cygnus.com>
* elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
* elf/elf.h: Add AT_FPUCW.
* elf/Makefile (dl-routines): Add fpu_control.
(elide-routines.os): Add fpu_control.
(rtld-routines): Add fpu_control.
* math/Makefile (aux): Remove fpu_control.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
(_dl_show_auxv): Likewise.
* sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
if different from OS default.
* stdio-common/tstscanf.c: Add test case for (nil).
Diffstat (limited to 'stdio-common/tstscanf.c')
-rw-r--r-- | stdio-common/tstscanf.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/stdio-common/tstscanf.c b/stdio-common/tstscanf.c index 3e6e496..52473cd 100644 --- a/stdio-common/tstscanf.c +++ b/stdio-common/tstscanf.c @@ -219,5 +219,21 @@ main (int argc, char **argv) } } + fputs ("Test 6:\n", stdout); + { + char *p = (char *) -1; + int res; + + sprintf (buf, "%p", NULL); + res = sscanf (buf, "%p", &p); + printf ("sscanf (\"%s\", \"%%p\", &p) = %d, p == %p\n", buf, res, p); + + if (res != 1 || p != NULL) + { + fputs ("test failed!\n", stdout); + result = 1; + } + } + exit (result); } |