diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-07-17 08:32:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-07-17 08:32:35 +0000 |
commit | 2706ee382341eb1c2e5f96c7d90f346696dbd0d8 (patch) | |
tree | c29690519bcb43604d9e0affa936aa7a2798660a /gmon | |
parent | 23700036397721389b90ac41571d68df2f26ad67 (diff) | |
download | glibc-2706ee382341eb1c2e5f96c7d90f346696dbd0d8.tar.gz |
Update.
2001-07-17 Ulrich Drepper <drepper@redhat.com>
* inet/rcmd.c (iruserfopen): Disable implicit locking for the stream.
* inet/ruserpass.c (ruserpass): Likewise.
* nss/nsswitch.c (nss_parse_file): Likewise.
* resolv/res_hconf.c (_res_hconf_init): Likewise.
* resolv/res_init.c (__res_vinit): Likewise.
* gmon/bb_exit_func.c (__bb_exit_func): Likewise.
* misc/getpass.c (getpass): Likewise.
* misc/getusershell.c (initshells): Likewise.
* misc/getttyent.c (setttyent): Likewise.
* misc/mntent_r.c (__setmntent): Likewise.
* time/getdate.c (__getdate_r): Likewise.
* time/tzfile.c (__tzfile_read): Likewise.
* iconv/gconv_conf.c (read_conf_file): Likewise.
* intl/localealias.c (read_alias_file): Disable implicit locking
for the stream. Use _unlocked functions for glibc.
* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Disable
implicit locking for the stream.
(__get_nprocs_conf): Likewise.
(phys_pages_info): Likewise.
Diffstat (limited to 'gmon')
-rw-r--r-- | gmon/bb_exit_func.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gmon/bb_exit_func.c b/gmon/bb_exit_func.c index 90a6701989..ce61c75d6e 100644 --- a/gmon/bb_exit_func.c +++ b/gmon/bb_exit_func.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger (davidm@cs.arizona.edu). @@ -25,6 +25,7 @@ #include <sys/types.h> #include <stdio.h> +#include <stdio_ext.h> #include <string.h> #define OUT_NAME "gmon.out" @@ -43,6 +44,9 @@ __bb_exit_func (void) perror (OUT_NAME); return; } + /* No threads use this stream. */ + __fsetlocking (fp, FSETLOCKING_BYCALLER); + memcpy (&ghdr.cookie[0], GMON_MAGIC, 4); memcpy (&ghdr.version, &version, sizeof (version)); fwrite_unlocked (&ghdr, sizeof (ghdr), 1, fp); |