Changeset d9a8aa0 in rtems


Ignore:
Timestamp:
Oct 15, 2007, 8:00:38 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.8
Children:
df3055aa
Parents:
8e1da2b6
Message:

Adjust to POSIX. Minor updates from FreeBSD.

Location:
cpukit/libnetworking
Files:
3 edited

Legend:

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

    r8e1da2b6 rd9a8aa0  
    160160
    161161struct hostent *
    162 gethostbyaddr(const char *addr, int len, int type)
     162gethostbyaddr(const void *addr, socklen_t len, int type)
    163163{
    164164        struct hostent *hp = 0;
  • cpukit/libnetworking/libc/getnetnamadr.c

    r8e1da2b6 rd9a8aa0  
    146146
    147147struct netent *
    148 getnetbyaddr(addr, af)
    149         u_long addr;
    150         int af;
     148getnetbyaddr(uint32_t addr, int af)
    151149{
    152150        struct netent *hp = 0;
     
    176174
    177175void
    178 setnetent(stayopen)
    179         int stayopen;
     176setnetent(int stayopen)
    180177{
    181178        _setnethtent(stayopen);
     
    184181
    185182void
    186 endnetent()
     183endnetent(void)
    187184{
    188185        _endnethtent();
  • cpukit/libnetworking/netdb.h

    r8e1da2b6 rd9a8aa0  
    9898};
    9999
    100 /*
    101  * Assumption here is that a network number
    102  * fits in an unsigned long -- probably a poor one.
    103  */
    104100struct  netent {
    105101        char            *n_name;        /* official name of net */
     
    124120/*
    125121 * Error return codes from gethostbyname() and gethostbyaddr()
    126  * (left in extern int h_errno).
     122 * (left in h_errno).
    127123 */
    128124
     
    140136void            endprotoent(void);
    141137void            endservent(void);
    142 struct hostent  *gethostbyaddr(const char *, int, int);
     138struct hostent  *gethostbyaddr(const void *, socklen_t, int);
    143139struct hostent  *gethostbyname(const char *);
    144140struct hostent  *gethostbyname2(const char *, int);
    145141struct hostent  *gethostent(void);
    146 struct netent   *getnetbyaddr(unsigned long, int);
     142struct netent   *getnetbyaddr(uint32_t, int);
    147143struct netent   *getnetbyname(const char *);
    148144struct netent   *getnetent(void);
Note: See TracChangeset for help on using the changeset viewer.