From f7ddf3d3b79a8762bcf8c9fc8ae22392527ff7f6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 3 Apr 2002 00:36:12 +0000 Subject: Update. 2002-04-02 Jakub Jelinek * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function. * inet/ether_hton.c (__nss_ethers_lookup): Likewise. * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise. * sunrpc/netname.c (__nss_publickey_lookup): Likewise. * sunrpc/publickey.c (__nss_publickey_lookup): Likewise. 2002-03-30 Jakub Jelinek * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown dynamic tags. 2002-03-29 Jakub Jelinek * sysdeps/i386/fpu/s_fabs.S: New file. * sysdeps/i386/fpu/s_fabsf.S: New file. * sysdeps/i386/fpu/s_fabsl.S: New file. * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file. * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file. * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file. 2002-04-02 Ulrich Drepper * rt/tst-shm.c (do_test): Add one more test for size of shared memory object. 2002-03-29 Wolfram Gloger * malloc/malloc.c: Add short description and prototypes for malloc_get_state, malloc_set_state and posix_memalign, for consistency and to avoid warnings with -Wstrict-prototypes. Reported by Andreas Jaeger . 2002-04-02 Ulrich Drepper * po/gl.po: Update from translation team. --- rt/tst-shm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rt/tst-shm.c') diff --git a/rt/tst-shm.c b/rt/tst-shm.c index 12d6da46d8..01bf89fa74 100644 --- a/rt/tst-shm.c +++ b/rt/tst-shm.c @@ -1,5 +1,5 @@ /* Test program for POSIX shm_* functions. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2000. @@ -131,6 +131,7 @@ do_test (void) pid_t pid2; int status1; int status2; + struct stat st; /* Create the shared memory object. */ fd = shm_open ("/shm-test", O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600); @@ -154,6 +155,12 @@ do_test (void) return 0; } + if (fstat (fd, &st) == -1 || st.st_size != 4000) + { + shm_unlink ("/shm-test"); + error (EXIT_FAILURE, 0, "initial stat failed"); + } + /* Spawn to processes which will do the work. */ pid1 = fork (); if (pid1 == 0) -- cgit v1.2.1