Ignore:
Timestamp:
Jul 2, 2008, 1:40:19 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
7f5a245d
Parents:
e03da15
Message:

2008-07-02 Joel Sherrill <joel.sherrill@…>

  • libnetworking/Makefile.am, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getservbyname.c, libnetworking/libc/getservbyport.c: Add initial versions of getservbyport_r(), gethostbyaddr_r(), and getservbyport_r(). At this point they are just simple weappers for the version without the _r in the name.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/libc/gethostnamadr.c

    re03da15 r1fbd0baf  
    157157        }
    158158        return hp;
     159}
     160
     161int gethostbyaddr_r(const void *addr, socklen_t len, int type,
     162               struct hostent *ret, char *buf, size_t buflen,
     163               struct hostent **result, int *h_errnop)
     164{
     165  #warning "implement a proper gethostbyaddr_r"
     166 
     167  *result = gethostbyaddr( addr, len, type );
     168  if ( *result )
     169    return 0;
     170  return -1;
    159171}
    160172
Note: See TracChangeset for help on using the changeset viewer.