[lkml]   [2001]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: horrible disk thorughput on itanium
    Andi Kleen writes:
    > (Linus Torvalds) writes:
    > >
    > > "putc()" is a standard function. If it sucks, let's get it fixed. And
    > > instead of changing bonnie, how about pinging the _real_ people who
    > > write sucky code?
    > It is easy to fix. Just do #define putc putc_unlocked
    > There is just a slight problem: it'll fail if your application is threaded
    > and wants to use the same FILE from multiple threads.
    > It is a common problem on all OS that eventually got threadsafe stdio.
    > I bet putc sucks on Solaris too.

    This kind of thing should be covered by _REENTRANT. If you don't
    compile with _REENTRANT (the default), then putc() should be the
    unlocked version.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:13    [W:0.029 / U:5.480 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site