summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/ifconfig/ifclone.c
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-07-15 07:32:56 +0200
committerChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-02 10:21:51 +0200
commit21abaef9b0c0ffd54100554155426bd5b4360f07 (patch)
tree464e27eead240a0bf9749c3f8eec3a1fdd149694 /freebsd/sbin/ifconfig/ifclone.c
parentrtemsbsd: Add wrapper for open, fopen, malloc, ... (diff)
downloadrtems-libbsd-21abaef9b0c0ffd54100554155426bd5b4360f07.tar.bz2
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.
Diffstat (limited to 'freebsd/sbin/ifconfig/ifclone.c')
-rw-r--r--freebsd/sbin/ifconfig/ifclone.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifclone.c b/freebsd/sbin/ifconfig/ifclone.c
index eedb6a8c..8fb9d6c3 100644
--- a/freebsd/sbin/ifconfig/ifclone.c
+++ b/freebsd/sbin/ifconfig/ifclone.c
@@ -35,6 +35,15 @@ static const char rcsid[] =
#endif /* not lint */
#ifdef __rtems__
+#define RTEMS_BSD_PROGRAM_NO_OPEN_WRAP
+#define RTEMS_BSD_PROGRAM_NO_SOCKET_WRAP
+#define RTEMS_BSD_PROGRAM_NO_CLOSE_WRAP
+#define RTEMS_BSD_PROGRAM_NO_FOPEN_WRAP
+#define RTEMS_BSD_PROGRAM_NO_FCLOSE_WRAP
+#define RTEMS_BSD_PROGRAM_NO_MALLOC_WRAP
+#define RTEMS_BSD_PROGRAM_NO_CALLOC_WRAP
+#define RTEMS_BSD_PROGRAM_NO_REALLOC_WRAP
+#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP
#include <machine/rtems-bsd-program.h>
#endif /* __rtems__ */
#include <sys/queue.h>