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: River Tarnell <river%RT.UK.EU.ORG@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/46661: libpthread shouldn't provide __res_state()
Date: Thu, 5 Jul 2012 18:47:04 +0100

 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