Changeset 21abaef in rtems-libbsd


Ignore:
Timestamp:
Jul 15, 2016, 5:32:56 AM (4 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 0ad342ae5f65d22eb6c914d58664d3b5d1d3d43f, freebsd-9.3, 98d197895b6162050176ea18d66783a1dc216d82
Children:
6e9a8ea
Parents:
d31a365
git-author:
Christian Mauderer <Christian.Mauderer@…> (07/15/16 05:32:56)
git-committer:
Christian Mauderer <Christian.Mauderer@…> (08/02/16 08:21:51)
Message:

freebsd: Don't use new wrappers for old ports.

Some of the commands have been adapted manually. So the wrapper
currently don't necessarily work as expected. For example ifconfig calls
malloc outside of the program call.

Location:
freebsd
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • freebsd/bin/hostname/hostname.c

    rd31a365 r21abaef  
    4545#include <getopt.h>
    4646#include <rtems/netcmds-config.h>
     47#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     48#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     49#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     50#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     51#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    4756#include <machine/rtems-bsd-program.h>
    4857#include <machine/rtems-bsd-commands.h>
  • freebsd/contrib/tcpdump/tcpdump.c

    rd31a365 r21abaef  
    4444#include <getopt.h>
    4545#define setpriority(a, b, c)
     46#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     47#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     48#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     49#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     50#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     51#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    4655#include <machine/rtems-bsd-program.h>
    4756#include <machine/rtems-bsd-commands.h>
  • freebsd/lib/libc/gen/err.c

    rd31a365 r21abaef  
    5151static void (*err_exit)(int);
    5252#else /* __rtems__ */
     53#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     56#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     57#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     58#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     59#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     60#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     61#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    5362#include <machine/rtems-bsd-program.h>
    5463#define err_file stderr
  • freebsd/sbin/ifconfig/ifclone.c

    rd31a365 r21abaef  
    3636
    3737#ifdef __rtems__
     38#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     39#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     40#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     41#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     42#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     43#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     44#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     45#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     46#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    3847#include <machine/rtems-bsd-program.h>
    3948#endif /* __rtems__ */
  • freebsd/sbin/ifconfig/ifconfig.c

    rd31a365 r21abaef  
    4949#include <getopt.h>
    5050#undef option
     51#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     56#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     57#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     58#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     59#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    5160#include <machine/rtems-bsd-program.h>
    5261#include <machine/rtems-bsd-commands.h>
  • freebsd/sbin/ifconfig/ifgroup.c

    rd31a365 r21abaef  
    3232
    3333#ifdef __rtems__
     34#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     35#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     36#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     37#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     38#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     39#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     40#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     41#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     42#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    3443#include <machine/rtems-bsd-program.h>
    3544#endif /* __rtems__ */
  • freebsd/sbin/ping/ping.c

    rd31a365 r21abaef  
    4747#define __need_getopt_newlib
    4848#include <getopt.h>
     49#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     50#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     51#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     56#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     57#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    4958#include <machine/rtems-bsd-program.h>
    5059#include <machine/rtems-bsd-commands.h>
  • freebsd/sbin/ping6/ping6.c

    rd31a365 r21abaef  
    107107#define __need_getopt_newlib
    108108#include <getopt.h>
     109#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     110#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     111#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     112#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     113#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     114#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     115#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     116#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     117#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    109118#include <machine/rtems-bsd-program.h>
    110119#include <machine/rtems-bsd-commands.h>
  • freebsd/sbin/route/route.c

    rd31a365 r21abaef  
    4545#define __need_getopt_newlib
    4646#include <getopt.h>
     47#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     48#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     49#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     50#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     51#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    4756#include <machine/rtems-bsd-program.h>
    4857#include <machine/rtems-bsd-commands.h>
  • freebsd/sbin/sysctl/sysctl.c

    rd31a365 r21abaef  
    4646#define __need_getopt_newlib
    4747#include <getopt.h>
     48#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     49#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     50#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     51#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     56#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    4857#include <machine/rtems-bsd-program.h>
    4958#include <machine/rtems-bsd-commands.h>
  • freebsd/usr.bin/netstat/if.c

    rd31a365 r21abaef  
    3737
    3838#ifdef __rtems__
     39#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     40#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     41#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     42#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     43#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     44#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     45#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     46#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     47#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    3948#include <machine/rtems-bsd-program.h>
    4049#endif /* __rtems__ */
  • freebsd/usr.bin/netstat/main.c

    rd31a365 r21abaef  
    4545#define __need_getopt_newlib
    4646#include <getopt.h>
     47#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
     48#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
     49#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
     50#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
     51#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
     52#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
     53#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
     54#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
     55#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
    4756#include <machine/rtems-bsd-program.h>
    4857#include <machine/rtems-bsd-commands.h>
Note: See TracChangeset for help on using the changeset viewer.