Changeset fef6dd1 in rtems-libbsd


Ignore:
Timestamp:
Jul 15, 2016, 5:32:56 AM (4 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
4.11
Children:
084d4db
Parents:
87d0cda
git-author:
Christian Mauderer <Christian.Mauderer@…> (07/15/16 05:32:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/03/16 12:13:18)
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:
11 edited

Legend:

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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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/usr.bin/netstat/if.c

    r87d0cda rfef6dd1  
    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

    r87d0cda rfef6dd1  
    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.