NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/46661: libpthread shouldn't provide __res_state()



David Laight:
>  > yvaine# ./test
>  > _res is not supported for multi-threaded programs.
>  > zsh: abort (core dumped)  ./test
>  
>  Where does that printf() come from?

src/lib/libpthread/res_state.c:

res_state
__res_state(void)
{
        static const char res[] = "_res is not supported for multi-threaded"
            " programs.\n";
        (void)write(STDERR_FILENO, res, sizeof(res) - 1);
        abort();
        return NULL;
}

        - river.


Home | Main Index | Thread Index | Old Index