diff options
Diffstat (limited to 'libio')
-rw-r--r-- | libio/fileno.c | 6 | ||||
-rw-r--r-- | libio/iofgets.c | 1 | ||||
-rw-r--r-- | libio/iofputs.c | 1 | ||||
-rw-r--r-- | libio/iofread.c | 1 | ||||
-rw-r--r-- | libio/oldstdfiles.c | 1 |
5 files changed, 5 insertions, 5 deletions
diff --git a/libio/fileno.c b/libio/fileno.c index 036ddb1b46..cee6971b9a 100644 --- a/libio/fileno.c +++ b/libio/fileno.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1993,95,96,97,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -44,12 +44,10 @@ fileno (fp) } libc_hidden_def (fileno) -#ifdef _IO_MTSAFE_IO #ifdef weak_alias /* The fileno implementation for libio does not require locking because it only accesses once a single variable and this is already atomic - (at least at thread level). */ + (at least at thread level). Therefore we don't test _IO_MTSAFE_IO here. */ weak_alias (fileno, fileno_unlocked) #endif -#endif diff --git a/libio/iofgets.c b/libio/iofgets.c index d61dd066c4..ea1d3ed53b 100644 --- a/libio/iofgets.c +++ b/libio/iofgets.c @@ -69,5 +69,6 @@ weak_alias (_IO_fgets, fgets) # ifndef _IO_MTSAFE_IO weak_alias (_IO_fgets, fgets_unlocked) +libc_hidden_weak (fgets_unlocked) # endif #endif diff --git a/libio/iofputs.c b/libio/iofputs.c index f2fd21d66a..1201735a38 100644 --- a/libio/iofputs.c +++ b/libio/iofputs.c @@ -52,5 +52,6 @@ weak_alias (_IO_fputs, fputs) # ifndef _IO_MTSAFE_IO weak_alias (_IO_fputs, fputs_unlocked) +libc_hidden_ver (_IO_fputs, fputs_unlocked) # endif #endif diff --git a/libio/iofread.c b/libio/iofread.c index 08f6ab0b59..6eb99da4ab 100644 --- a/libio/iofread.c +++ b/libio/iofread.c @@ -53,5 +53,6 @@ weak_alias (_IO_fread, fread) # ifndef _IO_MTSAFE_IO weak_alias (_IO_fread, fread_unlocked) +libc_hidden_ver (_IO_fread, fread_unlocked) # endif #endif diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c index d67ae27cbb..83749db871 100644 --- a/libio/oldstdfiles.c +++ b/libio/oldstdfiles.c @@ -44,7 +44,6 @@ = {FILEBUF_LITERAL(CHAIN, FLAGS, FD, NULL), &_IO_old_file_jumps}; #else #define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \ - static struct _IO_wide_data _IO_wide_data_##FD; \ struct _IO_FILE_plus NAME \ = {FILEBUF_LITERAL(CHAIN, FLAGS, FD, NULL), &_IO_old_file_jumps}; #endif |