This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


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

Re: on DU4.0d/alpha, gethostbyname_r is only declared with -D_REENTRANT


>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

>> I think we ought to define _REENTRANT whenever we are using POSIX
>> threads.

Alexandre> The point is that I was *not* using POSIX threads.
Alexandre> Maybe we shouldn't use gethostbyname_r in this case...

Ah, ok.  There is no point in using gethostbyname_r unless we are also
using POSIX threads.  We don't need reentrancy when there is only a
single thread.

Tom

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