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()

The following reply was made to PR lib/46661; it has been noted by GNATS.

From: David Laight <>
Subject: Re: lib/46661: libpthread shouldn't provide __res_state()
Date: Thu, 5 Jul 2012 18:38:32 +0100

 On Thu, Jul 05, 2012 at 03:10:01PM +0000, River Tarnell wrote:
 > >Number:         46661
 > >Category:       lib
 > >Synopsis:       libpthread shouldn't provide __res_state()
 > yvaine# cc test.c -o test -lpthread
 > yvaine# ./test
 > _res is not supported for multi-threaded programs.
 > zsh: abort (core dumped)  ./test
 Where does that printf() come from?
 I though that libraries weren't allowed to write to stdout/stderr
 or assume that fds 1 or 2 were suitable places to write messages to.
 Any controlling terminal is probably safe, but not much else.
 David Laight:

Home | Main Index | Thread Index | Old Index