Changeset 068c3ee1 in rtems for cpukit/ChangeLog


Ignore:
Timestamp:
Nov 2, 2006, 9:48:41 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
918b7a9
Parents:
e1d578d8
Message:

2006-11-02 Steven Johnson <sjohnson@…>

  • libnetworking/netdb.h, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c: This patch adds a functional gethostbyname_r to RTEMS. We were having problems with multiple threads calling gethostbyname, so we decided the best way to deal with it was to do it properly, rather than kludge up our code to make gethostbyname safe. We have found several slightly different parameter lists for this function, it does not seem to be standard. The one we used has the linux interface. In RTEMS there was an existing gethostbyname_r inside a #ifdef _THREAD_SAFE which was NOT Threadsafe, as this just called gethostbyname. So we have placed all of the additional code inside the #ifdef _THREAD_SAFE.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    re1d578d8 r068c3ee1  
     12006-11-02      Steven Johnson <sjohnson@sakuraindustries.com>
     2
     3        * libnetworking/netdb.h, libnetworking/libc/gethostbyht.c,
     4        libnetworking/libc/gethostnamadr.c: This patch adds a functional
     5        gethostbyname_r to RTEMS. We were having problems with multiple
     6        threads calling gethostbyname, so we decided the best way to deal
     7        with it was to do it properly, rather than kludge up our code to make
     8        gethostbyname safe. We have found several slightly different
     9        parameter lists for this function, it does not seem to be standard.
     10        The one we used has the linux interface. In RTEMS there was an
     11        existing gethostbyname_r inside a #ifdef _THREAD_SAFE which was NOT
     12        Threadsafe, as this just called gethostbyname. So we have placed all
     13        of the additional code inside the #ifdef _THREAD_SAFE.
     14
    1152006-10-30      Joel Sherrill <joel@OARcorp.com>
    216
Note: See TracChangeset for help on using the changeset viewer.