diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-04-03 00:36:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-04-03 00:36:12 +0000 |
commit | f7ddf3d3b79a8762bcf8c9fc8ae22392527ff7f6 (patch) | |
tree | c91234585688808d4a94aada6d4bfba8a06cb959 /rt/tst-shm.c | |
parent | 62097690c666f54c912381b38089bced1fafd46d (diff) | |
download | glibc-f7ddf3d3b79a8762bcf8c9fc8ae22392527ff7f6.zip glibc-f7ddf3d3b79a8762bcf8c9fc8ae22392527ff7f6.tar.gz glibc-f7ddf3d3b79a8762bcf8c9fc8ae22392527ff7f6.tar.bz2 |
Update.
2002-04-02 Jakub Jelinek <jakub@redhat.com>
* 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 <jakub@redhat.com>
* elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
dynamic tags.
2002-03-29 Jakub Jelinek <jakub@redhat.com>
* 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 <drepper@redhat.com>
* rt/tst-shm.c (do_test): Add one more test for size of shared
memory object.
2002-03-29 Wolfram Gloger <wg@malloc.de>
* 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 <aj@suse.de>.
2002-04-02 Ulrich Drepper <drepper@redhat.com>
* po/gl.po: Update from translation team.
Diffstat (limited to 'rt/tst-shm.c')
-rw-r--r-- | rt/tst-shm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rt/tst-shm.c b/rt/tst-shm.c index 12d6da4..01bf89f 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 <drepper@cygnus.com>, 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) |