Changeset e599318 in rtems-libbsd for freebsd/lib/libc/resolv


Ignore:
Timestamp:
Oct 9, 2013, 8:52:54 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, ea5d0c78038d92597983c0922a011a62f5dc2dea, aef7a74b94f8860c59438933239fb41314f1abb7, freebsd-9.3, 9b9a9768474265ecab31c40e0502b453a187145f
Children:
d652c3b
Parents:
bceabc9
git-author:
Sebastian Huber <sebastian.huber@…> (10/09/13 20:52:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/10/13 07:08:23)
Message:

Update files to match FreeBSD layout

Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:

o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h

It is now possible to include <sys/socket.h> directly for example.

Generate one Makefile which builds everything including tests.

Location:
freebsd/lib/libc/resolv
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • freebsd/lib/libc/resolv/h_errno.c

    rbceabc9 re599318  
    2626 */
    2727
    28 #include <sys/types.h>
     28#include <rtems/bsd/sys/types.h>
    2929#include <netinet/in.h>
    3030#include <arpa/nameser.h>
  • freebsd/lib/libc/resolv/herror.c

    rbceabc9 re599318  
    5757
    5858#include "namespace.h"
    59 #include <sys/types.h>
    60 #include <sys/param.h>
     59#include <rtems/bsd/sys/types.h>
     60#include <rtems/bsd/sys/param.h>
    6161#include <sys/uio.h>
    6262
  • freebsd/lib/libc/resolv/mtctxres.c

    rbceabc9 re599318  
    108108
    109109#ifdef _LIBC
     110#ifndef __rtems__
    110111        if (pthread_main_np() != 0)
    111112                return (&sharedctx);
     113#endif /* __rtems__ */
    112114#endif
    113115
  • freebsd/lib/libc/resolv/res_comp.c

    rbceabc9 re599318  
    7575
    7676#include "port_before.h"
    77 #include <sys/types.h>
    78 #include <sys/param.h>
     77#include <rtems/bsd/sys/types.h>
     78#include <rtems/bsd/sys/param.h>
    7979#include <netinet/in.h>
    8080#include <arpa/nameser.h>
  • freebsd/lib/libc/resolv/res_data.c

    rbceabc9 re599318  
    2626#include "port_before.h"
    2727
    28 #include <sys/types.h>
    29 #include <sys/param.h>
     28#include <rtems/bsd/sys/types.h>
     29#include <rtems/bsd/sys/param.h>
    3030#include <sys/socket.h>
    31 #include <sys/time.h>
     31#include <rtems/bsd/sys/time.h>
    3232
    3333#include <netinet/in.h>
  • freebsd/lib/libc/resolv/res_debug.c

    rbceabc9 re599318  
    101101#include "port_before.h"
    102102
    103 #include <sys/types.h>
    104 #include <sys/param.h>
     103#include <rtems/bsd/sys/types.h>
     104#include <rtems/bsd/sys/param.h>
    105105#include <sys/socket.h>
    106106
  • freebsd/lib/libc/resolv/res_findzonecut.c

    rbceabc9 re599318  
    2727#include "port_before.h"
    2828
    29 #include <sys/param.h>
     29#include <rtems/bsd/sys/param.h>
    3030#include <sys/socket.h>
    31 #include <sys/time.h>
     31#include <rtems/bsd/sys/time.h>
    3232
    3333#include <netinet/in.h>
  • freebsd/lib/libc/resolv/res_init.c

    rbceabc9 re599318  
    7878#include "namespace.h"
    7979
    80 #include <sys/types.h>
    81 #include <sys/param.h>
     80#include <rtems/bsd/sys/types.h>
     81#include <rtems/bsd/sys/param.h>
    8282#include <sys/socket.h>
    83 #include <sys/time.h>
     83#include <rtems/bsd/sys/time.h>
    8484
    8585#include <netinet/in.h>
  • freebsd/lib/libc/resolv/res_mkquery.c

    rbceabc9 re599318  
    7575
    7676#include "port_before.h"
    77 #include <sys/types.h>
    78 #include <sys/param.h>
     77#include <rtems/bsd/sys/types.h>
     78#include <rtems/bsd/sys/param.h>
    7979#include <netinet/in.h>
    8080#include <arpa/nameser.h>
  • freebsd/lib/libc/resolv/res_mkupdate.c

    rbceabc9 re599318  
    3232#include "port_before.h"
    3333
    34 #include <sys/types.h>
    35 #include <sys/param.h>
     34#include <rtems/bsd/sys/types.h>
     35#include <rtems/bsd/sys/param.h>
    3636
    3737#include <netinet/in.h>
  • freebsd/lib/libc/resolv/res_query.c

    rbceabc9 re599318  
    7575
    7676#include "port_before.h"
    77 #include <sys/types.h>
    78 #include <sys/param.h>
     77#include <rtems/bsd/sys/types.h>
     78#include <rtems/bsd/sys/param.h>
    7979#include <netinet/in.h>
    8080#include <arpa/inet.h>
  • freebsd/lib/libc/resolv/res_send.c

    rbceabc9 re599318  
    8585
    8686#include "namespace.h"
    87 #include <sys/types.h>
    88 #include <sys/param.h>
    89 #include <sys/time.h>
     87#include <rtems/bsd/sys/types.h>
     88#include <rtems/bsd/sys/param.h>
     89#include <rtems/bsd/sys/time.h>
    9090#include <sys/socket.h>
    9191#include <sys/uio.h>
     
    109109
    110110#ifdef USE_KQUEUE
    111 #ifdef __rtems__
    112 #include <freebsd/sys/event.h>
    113 #else
    114111#include <sys/event.h>
    115 #endif /* __rtems__ */
    116112#else
    117113#ifdef USE_POLL
  • freebsd/lib/libc/resolv/res_state.c

    rbceabc9 re599318  
    2828 */
    2929
    30 #include <sys/types.h>
     30#include <rtems/bsd/sys/types.h>
    3131#include <netinet/in.h>
    3232#include <arpa/nameser.h>
  • freebsd/lib/libc/resolv/res_update.c

    rbceabc9 re599318  
    3333#include "port_before.h"
    3434
    35 #include <sys/param.h>
     35#include <rtems/bsd/sys/param.h>
    3636#include <sys/socket.h>
    37 #include <sys/time.h>
     37#include <rtems/bsd/sys/time.h>
    3838
    3939#include <netinet/in.h>
     
    5050#include <string.h>
    5151
    52 #ifdef __rtems__
    53 #include <isc/print.h>
    54 #endif
    5552#include <isc/list.h>
    5653#include <resolv.h>
Note: See TracChangeset for help on using the changeset viewer.