This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Misc fixes


Hi!

This patch fixes 2 small issues.  fmemopen call in psiginfo shouldn't go
through PLT (elf/check-localplt failure) and there is a warning about
multi-line comment in sprof.c.

2009-03-10  Jakub Jelinek  <jakub@redhat.com>

	* include/stdio.h (fmemopen): Add libc_hidden_proto.
	* libio/fmemopen.c (fmemopen): Add libc_hidden_def.

	* elf/sprof.c: Avoid warning about multi-line comment.

--- libc/include/stdio.h.jj	2008-12-09 10:58:34.000000000 +0100
+++ libc/include/stdio.h	2009-03-10 14:22:16.000000000 +0100
@@ -152,6 +152,7 @@ libc_hidden_proto (fread_unlocked)
 libc_hidden_proto (fwrite_unlocked)
 libc_hidden_proto (fgets_unlocked)
 libc_hidden_proto (fputs_unlocked)
+libc_hidden_proto (fmemopen)
 libc_hidden_proto (open_memstream)
 libc_hidden_proto (__libc_fatal)
 libc_hidden_proto (__vsprintf_chk)
--- libc/libio/fmemopen.c.jj	2008-10-11 10:43:36.000000000 +0200
+++ libc/libio/fmemopen.c	2009-03-10 14:22:53.000000000 +0100
@@ -1,5 +1,6 @@
 /* Fmemopen implementation.
-   Copyright (C) 2000, 2002, 2005, 2006, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002, 2005, 2006, 2008, 2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Hanno Mueller, kontakt@hanno.de, 2000.
 
@@ -258,3 +259,4 @@ fmemopen (void *buf, size_t len, const c
 
   return _IO_fopencookie (c, mode, iof);
 }
+libc_hidden_def (fmemopen)
--- libc/elf/sprof.c.jj	2009-02-16 14:47:24.000000000 +0100
+++ libc/elf/sprof.c	2009-03-10 13:15:52.000000000 +0100
@@ -87,7 +87,7 @@ static const struct argp_option options[
 
 /* Short description of program.  */
 static const char doc[] = N_("Read and display shared object profiling data.");
-//For bug reporting instructions, please see:\n		\
+//For bug reporting instructions, please see:\n
 //<http://www.gnu.org/software/libc/bugs.html>.\n");
 
 /* Strings for arguments in help texts.  */

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]