From 66f8fa9bec0c6f0e62ccaad22f8ddd36267a5284 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 30 Jul 1999 06:32:48 +0000 Subject: Update. * malloc/malloc.c (ptmalloc_init): Also initialize __libc_pagesize if no threads are used. * libio/iofwrite.c: Add weak alias for _unlocked function if not _IO_MTSAFE_IO. * libio/iofread.c: Likewise. * libio/iofgets.c: Likewise. * libio/iofputs.c: Likewise. * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_end): New definition. --- libio/iofread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libio/iofread.c') diff --git a/libio/iofread.c b/libio/iofread.c index c2d12d8693..a6bda98162 100644 --- a/libio/iofread.c +++ b/libio/iofread.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU IO Library. This library is free software; you can redistribute it and/or @@ -47,4 +47,8 @@ _IO_fread (buf, size, count, fp) #ifdef weak_alias weak_alias (_IO_fread, fread) + +# ifndef _IO_MTSAFE_IO +weak_alias (_IO_fread, fread_unlocked) +# endif #endif -- cgit 1.4.1