Changeset 7e6f235 in rtems


Ignore:
Timestamp:
Apr 22, 2016, 8:06:16 AM (4 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
master
Children:
232d6fec
Parents:
187a074
git-author:
Christian Mauderer <Christian.Mauderer@…> (04/22/16 08:06:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/28/16 11:01:37)
Message:

libnetworking: Add <rtems/rtems_netdb.h>

Move prototypes of non-portable _get*by*name/addr and _set/end*ent
functions. This makes it easier to update <netdb.h>.

Location:
cpukit/libnetworking
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/Makefile.am

    r187a074 r7e6f235  
    150150include_rtems_HEADERS += rtems/mkrootfs.h
    151151include_rtems_HEADERS += rtems/rtems_mii_ioctl.h
     152include_rtems_HEADERS += rtems/rtems_netdb.h
    152153
    153154libnetworking_a_SOURCES += rtems/sghostname.c \
  • cpukit/libnetworking/libc/gethostbydns.c

    r187a074 r7e6f235  
    7474#endif
    7575#include <netdb.h>
     76#include <rtems/rtems_netdb.h>
    7677#include <resolv.h>
    7778#include <ctype.h>
  • cpukit/libnetworking/libc/gethostbyht.c

    r187a074 r7e6f235  
    6161#include <arpa/inet.h>
    6262#include <netdb.h>
     63#include <rtems/rtems_netdb.h>
    6364#include <stdio.h>
    6465#include <stdlib.h> /* realloc, malloc, free */
  • cpukit/libnetworking/libc/gethostbynis.c

    r187a074 r7e6f235  
    3333#include <arpa/inet.h>
    3434#include <netdb.h>
     35#include <rtems/rtems_netdb.h>
    3536#include <stdio.h>
    3637#include <stdlib.h>
  • cpukit/libnetworking/libc/gethostnamadr.c

    r187a074 r7e6f235  
    3333#include <arpa/inet.h>
    3434#include <netdb.h>
     35#include <rtems/rtems_netdb.h>
    3536#include <stdio.h>
    3637#include <ctype.h>
  • cpukit/libnetworking/libc/getnetbydns.c

    r187a074 r7e6f235  
    7171#include <stdio.h>
    7272#include <netdb.h>
     73#include <rtems/rtems_netdb.h>
    7374#include <resolv.h>
    7475#include <ctype.h>
  • cpukit/libnetworking/libc/getnetbyht.c

    r187a074 r7e6f235  
    5252#include <arpa/nameser.h>
    5353#include <netdb.h>
     54#include <rtems/rtems_netdb.h>
    5455#include <stdio.h>
    5556#include <string.h>
  • cpukit/libnetworking/libc/getnetbynis.c

    r187a074 r7e6f235  
    3333#include <arpa/inet.h>
    3434#include <netdb.h>
     35#include <rtems/rtems_netdb.h>
    3536#include <stdio.h>
    3637#include <stdlib.h>
  • cpukit/libnetworking/libc/getnetnamadr.c

    r187a074 r7e6f235  
    3333#include <arpa/inet.h>
    3434#include <netdb.h>
     35#include <rtems/rtems_netdb.h>
    3536#include <stdio.h>
    3637#include <ctype.h>
  • cpukit/libnetworking/libc/map_v4v6.c

    r187a074 r7e6f235  
    6868#include <string.h>
    6969#include <netdb.h>
     70#include <rtems/rtems_netdb.h>
    7071#include <resolv.h>
    7172#include <ctype.h>
  • cpukit/libnetworking/netdb.h

    r187a074 r7e6f235  
    169169
    170170/* DO NOT USE THESE, THEY ARE SUBJECT TO CHANGE AND ARE NOT PORTABLE!!! */
    171 void    _sethosthtent(int);
    172 void    _endhosthtent(void);
    173 void    _sethostdnsent(int);
    174 void    _endhostdnsent(void);
    175 void    _setnethtent(int);
    176 void    _endnethtent(void);
    177 void    _setnetdnsent(int);
    178 void    _endnetdnsent(void);
    179 struct hostent * _gethostbyhtname(const char *, int);
    180 struct hostent * _gethostbydnsname(const char *, int);
    181 struct hostent * _gethostbynisname(const char *, int);
    182 struct hostent * _gethostbyhtaddr (const char *, int, int);
    183 struct hostent * _gethostbydnsaddr(const char *, int, int);
    184 struct hostent * _gethostbynisaddr(const char *, int, int);
    185 struct netent *  _getnetbyhtname (const char *);
    186 struct netent *  _getnetbydnsname(const char *);
    187 struct netent *  _getnetbynisname(const char *);
    188 struct netent *  _getnetbyhtaddr (unsigned long, int);
    189 struct netent *  _getnetbydnsaddr(unsigned long, int);
    190 struct netent *  _getnetbynisaddr(unsigned long, int);
    191 void _map_v4v6_address(const char *, char *);
    192 void _map_v4v6_hostent(struct hostent *, char **, int *len);
    193171__END_DECLS
    194172
  • cpukit/libnetworking/preinstall.am

    r187a074 r7e6f235  
    311311PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems_mii_ioctl.h
    312312
     313$(PROJECT_INCLUDE)/rtems/rtems_netdb.h: rtems/rtems_netdb.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
     314        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems_netdb.h
     315PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems_netdb.h
     316
    313317$(PROJECT_INCLUDE)/sys/$(dirstamp):
    314318        @$(MKDIR_P) $(PROJECT_INCLUDE)/sys
Note: See TracChangeset for help on using the changeset viewer.