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


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

Re: elf/sprof.c (generate_call_graph): putchar_unlocked


Gordon Matzigkeit <gord@m-tech.ab.ca> writes:

> Is it supposed to be supported by glibc, or is it deprecated?

I don't support stdio but since Hurd relies on some stdio features not
yet implemented in libio it has to be available.

> The reason for this latest question is that elf/sprof.c contains a
> reference to putchar_unlocked, which is defined in libio, but not
> stdio.

Simply define 

#define putc_unlocked(c, s) putc (c, s)

> Is the correct fix to change sprof.c,

No.

> to modify stdio,

Yes.

> or to ditch stdio entirely and just use libio?

I wish this is possible...

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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