]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 4 Aug 2002 20:54:20 +0000 (20:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 4 Aug 2002 20:54:20 +0000 (20:54 +0000)
2002-08-04  Jakub Jelinek  <jakub@redhat.com>

* manual/debug.texi: Fix spelling to programmatically.
Reported by <hayastan132@hotmail.com>.

* include/libio.h: Add libc_hidden_proto for __uflow.
* include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
fgetpos to _IO_* names.
Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
* include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
putwc_unlocked, vswscanf.
* libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
* libio/fileno.c: Use <stdio.h> and libc_hidden_def.
* libio/fseek.c: Likewise.
* libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
not fopencookie.
* libio/genops.c (__uflow): Add libc_hidden_def.
* libio/iofflush_u.c (fflush_unlocked): Likewise.
* libio/iofgets_u.c (fgets_unlocked): Likewise.
* libio/iofputs_u.c (fputs_unlocked): Likewise.
* libio/iofputws_u.c (fputws_unlocked): Likewise.
* libio/iofread_u.c (fread_unlocked): Likewise.
* libio/iofwrite_u.c (fwrite_unlocked): Likewise.
* libio/iovswscanf.c (vswscanf): Likewise.
* libio/putwc_u.c (putwc_unlocked): Likewise.
* libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
* malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
* malloc/mtrace.c: Likewise.

* sunrpc/clnt_perr.c: Remove fputs macro.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.

* iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
iconv_prog, linereader, and charmap-dir.
* locale/Makefile: Likewise for locale and charmap-dir.
* malloc/Makefile: Likewise for memusagestat.
* nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
* sunrpc/Makefile: Likewise for rpc_main.
* sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
* timezone/Makefile: Likewise for zic.

* stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.

29 files changed:
ChangeLog
iconv/Makefile
include/libio.h
include/stdio.h
include/wchar.h
libio/fileno.c
libio/fmemopen.c
libio/fseek.c
libio/genops.c
libio/iofflush_u.c
libio/iofgets_u.c
libio/iofputs.c
libio/iofputs_u.c
libio/iofputws_u.c
libio/iofread_u.c
libio/iofwrite_u.c
libio/iolibio.h
libio/iovswscanf.c
libio/putwc_u.c
locale/Makefile
malloc/Makefile
malloc/malloc.c
malloc/mtrace.c
manual/debug.texi
nscd/Makefile
stdio-common/perror.c
sunrpc/Makefile
sysdeps/unix/sysv/linux/Makefile
timezone/Makefile

index 36f9d57958be2df4055607b683960d96724aa83b..2b7c71faf7a15351cd03376212821550bef26397 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,53 @@
+2002-08-04  Jakub Jelinek  <jakub@redhat.com>
+
+       * manual/debug.texi: Fix spelling to programmatically.
+       Reported by <hayastan132@hotmail.com>.
+
 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
 
+       * include/libio.h: Add libc_hidden_proto for __uflow.
+       * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
+       fgetpos to _IO_* names.
+       Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
+       fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
+       * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
+       putwc_unlocked, vswscanf.
+       * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
+       * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
+       * libio/fseek.c: Likewise.
+       * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
+       not fopencookie.
+       * libio/genops.c (__uflow): Add libc_hidden_def.
+       * libio/iofflush_u.c (fflush_unlocked): Likewise.
+       * libio/iofgets_u.c (fgets_unlocked): Likewise.
+       * libio/iofputs_u.c (fputs_unlocked): Likewise.
+       * libio/iofputws_u.c (fputws_unlocked): Likewise.
+       * libio/iofread_u.c (fread_unlocked): Likewise.
+       * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
+       * libio/iovswscanf.c (vswscanf): Likewise.
+       * libio/putwc_u.c (putwc_unlocked): Likewise.
+       * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
+       * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
+       * malloc/mtrace.c: Likewise.
+
+       * sunrpc/clnt_perr.c: Remove fputs macro.
+       * sunrpc/svc_simple.c: Likewise.
+       * sunrpc/svc_tcp.c: Likewise.
+       * sunrpc/svc_udp.c: Likewise.
+       * sunrpc/xdr_rec.c: Likewise.
+       * sunrpc/xdr_ref.c: Likewise.
+
+       * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
+       iconv_prog, linereader, and charmap-dir.
+       * locale/Makefile: Likewise for locale and charmap-dir.
+       * malloc/Makefile: Likewise for memusagestat.
+       * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
+       * sunrpc/Makefile: Likewise for rpc_main.
+       * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
+       * timezone/Makefile: Likewise for zic.
+
+       * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
+
        * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
        * elf/dl-close.c (_dl_close): Add libc_hidden_def.
        * elf/dl-open.c (_dl_open): Add libc_hidden_def.
index eb8ffacd8c116d43825c8b980f441df967acae6b..15846c2c07ce8eaef8413020e385fea3b65e1b4a 100644 (file)
@@ -63,10 +63,13 @@ CFLAGS-gconv_cache.c += -DGCONV_DIR='"$(gconvdir)"'
 CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
 CFLAGS-iconvconfig.c = -DGCONV_PATH='"$(gconvdir)"' -DGCONV_DIR='"$(gconvdir)"'
 
+CPPFLAGS-iconv_prog = -DNOT_IN_libc
 CPPFLAGS-iconv_charmap = -DNOT_IN_libc
 CPPFLAGS-iconvconfig = -DNOT_IN_libc
+CPPFLAGS-linereader = -DNOT_IN_libc
 CPPFLAGS-strtab = -DNOT_IN_libc
 CPPFLAGS-charmap = -DNOT_IN_libc
+CPPFLAGS-charmap-dir = -DNOT_IN_libc
 
 include ../Rules
 
index a3a6518876c29cbb197939af416858f66dd9062c..ee727e262f794c8087839946964b8c89dff5c7cc 100644 (file)
@@ -5,6 +5,7 @@
 
 libc_hidden_proto (__overflow)
 libc_hidden_proto (__underflow)
+libc_hidden_proto (__uflow)
 libc_hidden_proto (__woverflow)
 libc_hidden_proto (__wunderflow)
 libc_hidden_proto (__wuflow)
index 4f144d3e7815369ca1b06d8291047bbe55f27312..e58c033709add2b2b8af4c6bd89885a0752b1e60 100644 (file)
@@ -62,9 +62,7 @@ extern void __funlockfile (FILE *__stream);
 extern int __ftrylockfile (FILE *__stream);
 
 extern int __getc_unlocked (FILE *__fp);
-#  ifdef USE_IN_LIBIO
 extern wint_t __getwc_unlocked (FILE *__fp);
-#  endif
 
 
 extern __const char *__const _sys_errlist_internal[] attribute_hidden;
@@ -76,8 +74,31 @@ extern int __asprintf_internal (char **__restrict __ptr,
 #  ifndef NOT_IN_libc
 #    define __asprintf(ptr, fmt, args...) \
   INTUSE(__asprintf) (ptr, fmt, ##args)
+
+extern _IO_FILE *_IO_new_fopen __P((const char*, const char*));
+#   define fopen(fname, mode) _IO_new_fopen (fname, mode)
+extern _IO_FILE *_IO_new_fdopen __P((int, const char*));
+#   define fdopen(fd, mode) _IO_new_fdopen (fd, mode)
+extern int _IO_new_fclose __P((_IO_FILE*));
+#   define fclose(fp) _IO_new_fclose (fp)
+extern int _IO_fputs __P((const char*, _IO_FILE*));
+libc_hidden_proto (_IO_fputs)
+#   define fputs(str, fp) _IO_fputs (str, fp)
+extern int _IO_new_fsetpos __P ((_IO_FILE *, const _IO_fpos_t *));
+#   define fsetpos(fp, posp) _IO_new_fsetpos (fp, posp)
+extern int _IO_new_fgetpos __P ((_IO_FILE *, _IO_fpos_t *));
+#   define fgetpos(fp, posp) _IO_new_fgetpos (fp, posp)
 #  endif
 
+libc_hidden_proto (fileno)
+libc_hidden_proto (fwrite)
+libc_hidden_proto (fseek)
+libc_hidden_proto (fflush_unlocked)
+libc_hidden_proto (fread_unlocked)
+libc_hidden_proto (fwrite_unlocked)
+libc_hidden_proto (fgets_unlocked)
+libc_hidden_proto (fputs_unlocked)
+
 # endif
 
 #endif
index 8395392de6111282c44a0756048ba674692c0f4e..cb63ed97a9f8811e33e06632925ea96368d4f107 100644 (file)
@@ -14,6 +14,11 @@ libc_hidden_proto (__wcstoull_internal)
 libc_hidden_proto (__wcscasecmp_l)
 libc_hidden_proto (__wcsncasecmp_l)
 
+libc_hidden_proto (fputws_unlocked)
+libc_hidden_proto (putwc_unlocked)
+
+libc_hidden_proto (vswscanf)
+
 
 /* Now define the internal interfaces.  */
 extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2)
index 3b24cd093c6196431bacb62adf00389097130e34..036ddb1b46ea67aec7346a92ccaab393b794228f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1996, 1997, 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
@@ -26,7 +26,7 @@
    in files containing the exception.  */
 
 #include "libioP.h"
-#include "stdio.h"
+#include <stdio.h>
 
 int
 fileno (fp)
@@ -42,6 +42,7 @@ fileno (fp)
 
   return _IO_fileno (fp);
 }
+libc_hidden_def (fileno)
 
 #ifdef _IO_MTSAFE_IO
 #ifdef weak_alias
index 3afc04929cd62983cf078cb8f4fb527f1532707b..a1c75f2cf1bab6fa317b917ccdbc8771f1f6d099 100644 (file)
@@ -1,5 +1,5 @@
 /* Fmemopen implementation.
-   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  Hanno Mueller, kontakt@hanno.de, 2000.
 
@@ -75,6 +75,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
+#include "libioP.h"
+
 
 typedef struct fmemopen_cookie_struct fmemopen_cookie_t;
 struct fmemopen_cookie_struct
@@ -237,5 +239,5 @@ fmemopen (void *buf, size_t len, const char *mode)
   iof.seek = fmemopen_seek;
   iof.close = fmemopen_close;
 
-  return fopencookie (c, mode, iof);
+  return _IO_fopencookie (c, mode, iof);
 }
index ccb2238ab9aa7a9c37f39b1de47c2a4db4baa353..831a4d497bb180823a0960dfc2d9cb16eda5f427 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995,1996,1997,1998,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
@@ -26,7 +26,7 @@
    in files containing the exception.  */
 
 #include "libioP.h"
-#include "stdio.h"
+#include <stdio.h>
 
 int
 fseek (fp, offset, whence)
@@ -43,3 +43,4 @@ fseek (fp, offset, whence)
   _IO_cleanup_region_end (0);
   return result;
 }
+libc_hidden_def (fseek)
index eb03664b80c4e39b949d9fa8d9d52f9f4e1cb7c0..115c7dfe9abec26c302fb6a189adbd02ac9c66d4 100644 (file)
@@ -383,11 +383,12 @@ __uflow (fp)
     INTUSE(_IO_free_backup_area) (fp);
   return _IO_UFLOW (fp);
 }
+libc_hidden_def (__uflow)
 
 void
 _IO_setb (f, b, eb, a)
      _IO_FILE *f;
-      char *b;
+     char *b;
      char *eb;
      int a;
 {
index 4603ec388c810cee852724e50a9d3bb51b0569df..d604ebfec28425ee45479d374c34a2b19e4443db 100644 (file)
@@ -40,3 +40,4 @@ fflush_unlocked (fp)
       return _IO_SYNC (fp) ? EOF : 0;
     }
 }
+libc_hidden_def (fflush_unlocked)
index bf5bb09681c461f78705e45539272cbd24b3f640..ded2a7c83c897f272a7ce17742b1ebfd4f1be10e 100644 (file)
@@ -59,3 +59,4 @@ fgets_unlocked (buf, n, fp)
   fp->_IO_file_flags |= old_error;
   return result;
 }
+libc_hidden_def (fgets_unlocked)
index 0835e8417f4ce40fb4f1314a2a36f884e38e5f7e..f2fd21d66ad2f7e66979261a9ee9fc7ec649fdb4 100644 (file)
@@ -45,7 +45,7 @@ _IO_fputs (str, fp)
   _IO_cleanup_region_end (0);
   return result;
 }
-INTDEF(_IO_fputs)
+libc_hidden_def (_IO_fputs)
 
 #ifdef weak_alias
 weak_alias (_IO_fputs, fputs)
index 02427f8f339b625ba79f1b042d406670a991f6f2..475e5334d224e11001ea3dc1d9f22966769c386d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1996,1997,1998,1999,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
@@ -41,3 +41,4 @@ fputs_unlocked (str, fp)
     result = 1;
   return result;
 }
+libc_hidden_def (fputs_unlocked)
index bbfef0942d2468dbb5834a333d37cebcf11a428d..a73f6b529e51694380df7f24630981251c43b6a7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996-2000, 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
@@ -42,3 +42,4 @@ fputws_unlocked (str, fp)
     result = 1;
   return result;
 }
+libc_hidden_def (fputws_unlocked)
index 527af10de22a9db9ca6577049dcd65f030634bc1..98c7ffdd16767d3642b46c8d7ab07dead24d336d 100644 (file)
@@ -45,3 +45,4 @@ fread_unlocked (buf, size, count, fp)
   bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
   return bytes_requested == bytes_read ? count : bytes_read / size;
 }
+libc_hidden_def (fread_unlocked)
index e4e97339478f70104361bf6b8b1b9d24e7eeac41..738cc5b28fe89bc8bf396b7437ed5dfde63691c6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996-2000, 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
@@ -51,3 +51,4 @@ fwrite_unlocked (buf, size, count, fp)
 
   return written / size;
 }
+libc_hidden_def (fwrite_unlocked)
index be04604dedc7820ee665a95b24fae983318dc57a..80fb527d88d330c82fd0980f608be1ac96ad5e3f 100644 (file)
@@ -25,6 +25,7 @@ extern _IO_FILE *__fopen_internal __P((const char*, const char*, int));
 extern _IO_FILE *__fopen_maybe_mmap __P((_IO_FILE *));
 extern int _IO_fprintf __P((_IO_FILE*, const char*, ...));
 extern int _IO_fputs __P((const char*, _IO_FILE*));
+libc_hidden_proto (_IO_fputs)
 extern int _IO_fsetpos __P((_IO_FILE*, const _IO_fpos_t *));
 extern int _IO_fsetpos64 __P((_IO_FILE*, const _IO_fpos64_t *));
 extern long int _IO_ftell __P((_IO_FILE*));
index dd7dbf8c379639c4d143fb97185b376c8790e575..1bbddd442fb124969f599fcebeedc865952a47d8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997-2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997-2000, 2001, 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
@@ -47,3 +47,4 @@ vswscanf (string, format, args)
   ret = _IO_vfwscanf ((_IO_FILE *) &sf._sbf, format, args, NULL);
   return ret;
 }
+libc_hidden_def (vswscanf)
index 95db00126088dc7650b55120c15dd34faafc7cdb..b76a3139272ab6d3081d89e5e39de7a9a2857c90 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1995,1996,1997,1999,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
@@ -27,3 +27,4 @@ putwc_unlocked (wc, fp)
   CHECK_FILE (fp, WEOF);
   return _IO_putc_unlocked (wc, fp);
 }
+libc_hidden_def (putwc_unlocked)
index ebcf7bd66897b19e1f8ab9bcddbd9b3537b0c68b..d3c62adc077e3da0d75f364c582c2dfd339dcc73 100644 (file)
@@ -99,6 +99,7 @@ CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
 CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
 CFLAGS-charmap-dir.c = -Wno-write-strings
 
+CPPFLAGS-locale = -DNOT_IN_libc
 CPPFLAGS-localedef = -DNOT_IN_libc
 CPPFLAGS-ld-ctype = -DNOT_IN_libc
 CPPFLAGS-ld-time = -DNOT_IN_libc
@@ -109,6 +110,7 @@ CPPFLAGS-ld-identification = -DNOT_IN_libc
 CPPFLAGS-charmap = -DNOT_IN_libc
 CPPFLAGS-locarchive = -DNOT_IN_libc
 CPPFLAGS-linereader = -DNOT_IN_libc
+CPPFLAGS-charmap-dir = -DNOT_IN_libc
 
 # Depend on libc.so so a DT_NEEDED is generated in the shared objects.
 # This ensures they will load libc.so for needed symbols if loaded by
index 226ed99fc33512bf5dc8fb71616f425e362959a0..bb7d15db7b05de7ad92197ce86e862f79befec08 100644 (file)
@@ -56,6 +56,8 @@ aux := set-freeres
 
 include ../Makeconfig
 
+CPPFLAGS-memusagestat = -DNOT_IN_libc
+
 # The Perl script to analyze the output of the mtrace functions.
 ifneq ($(PERL),no)
 install-bin-script = mtrace
index 08b8e86794c640c3b906fa8024a1775a570499f7..685514900c02cccb4ced4dd657fd6241a5eab3de 100644 (file)
@@ -490,6 +490,8 @@ Void_t *(*__morecore)(ptrdiff_t) = __default_morecore;
 
 #ifndef _LIBC
 #define __builtin_expect(expr, val)    (expr)
+
+#define fwrite(buf, size, count, fp) _IO_fwrite (buf, size, count, fp)
 #endif
 
 /*
index 171eb5a57009ebdf30eb01d1550573f24f20f4fd..52347ea117396c9245f0e08aa81fce8a2a30b541 100644 (file)
@@ -42,6 +42,7 @@
 # include <libio/iolibio.h>
 # define fopen(f, n) _IO_fopen64 (f, n)
 # define setvbuf(s, b, f, l) INTUSE(_IO_setvbuf) (s, b, f, l)
+# define fwrite(buf, size, count, fp) _IO_fwrite (buf, size, count, fp)
 #endif
 
 #ifndef attribute_hidden
index fe5244a2cffb8a226ea1fadca2c97faabed86543..a6ec0c4d56c8bdd5be257c061880676df2687a76 100644 (file)
@@ -5,7 +5,7 @@
 
 Applications are usually debugged using dedicated debugger programs.
 But sometimes this is not possible and, in any case, it is useful to
-provide the developer with as much information as possible at the time 
+provide the developer with as much information as possible at the time
 the problems are experienced.  For this reason a few functions are
 provided which a program can use to help the developer more easily
 locate the problem.
@@ -26,7 +26,7 @@ locate the problem.
 A @dfn{backtrace} is a list of the function calls that are currently
 active in a thread.  The usual way to inspect a backtrace of a program
 is to use an external debugger such as gdb.  However, sometimes it is
-useful to obtain a backtrace programatically from within a program,
+useful to obtain a backtrace programmatically from within a program,
 e.g., for the purposes of logging or diagnostics.
 
 The header file @file{execinfo.h} declares three functions that obtain
index a3cbe7cf6a21d24ab4e455c02ad66cf68925da97..434cf4d759225823142dd8f683c08da94c6c557b 100644 (file)
@@ -53,6 +53,9 @@ distribute := nscd.h nscd-client.h dbg_log.h \
 
 include ../Rules
 
+CPPFLAGS-nscd = -DNOT_IN_libc
+CPPFLAGS-nscd_conf = -DNOT_IN_libc
+CPPFLAGS-dbg_log = -DNOT_IN_libc
 CPPFLAGS-connections = -DNOT_IN_libc
 CPPFLAGS-hstcache = -DNOT_IN_libc
 
index 077eed586752f1aba68acb672ae748d8c79289b4..6a4e3494ed79436205bd46cf64008d28049e11a6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993,1997,1998,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1993,1997,1998,2000-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
@@ -65,8 +65,8 @@ perror (const char *s)
      oriented yet?  In this case we'll create a new stream which is
      using the same underlying file descriptor.  */
   if (__builtin_expect (_IO_fwide (stderr, 0) != 0, 1)
-      || fileno_unlocked (stderr) == -1
-      || (fd = __dup (fileno_unlocked (stderr))) == -1
+      || (fd = fileno (stderr)) == -1
+      || (fd = __dup (fd)) == -1
       || (fp = fdopen (fd, "w+")) == NULL)
     {
       if (__builtin_expect (fd != -1, 0))
index dd21ddf1023640617ea73a530abc225231c12a89..6f978e61c1f6af1989c50a992f9005981d6f720c 100644 (file)
@@ -121,6 +121,7 @@ ifeq (yes,$(have_doors))
 CPPFLAGS-key_call.c += -DHAVE_DOORS=1
 endif
 CPPFLAGS += -D_RPC_THREAD_SAFE_
+CPPFLAGS-rpc_main += -DNOT_IN_libc
 
 include ../Rules
 
index 68e9a1ea4cf13ced86c7fee90d1ae4f980373790..9a2bbc492e663af28b1078ad17558f4ccf2a7d74 100644 (file)
@@ -110,4 +110,6 @@ endif
 
 ifeq ($(subdir),elf)
 sysdep-rtld-routines += dl-brk dl-sbrk
+
+CPPFLAGS-lddlibc4 += -DNOT_IN_libc
 endif
index 41a9c1d78db8e54a9909c30a3da140cd0363cef9..cf2c7d7f424684b08b346dfdefb899a31fcdcd4e 100644 (file)
@@ -48,6 +48,8 @@ all: # Make this the default target; it will be defined in Rules.
 
 include ../Makeconfig  # Get objpfx defined so we can use it below.
 
+CPPFLAGS-zic = -DNOT_IN_libc
+
 # z.* use this variable.
 define nl