summaryrefslogtreecommitdiffstats
path: root/dhcpcd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-17 14:05:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-01-30 16:23:03 +0100
commit61d281e39d43b05a24c534256620337f22bbd406 (patch)
treed50f12cfb1d5710e32ac1ba31c0285d26d8d32d2 /dhcpcd
parente6d558f7ae6aff8a47b689eb290a8a77585359f6 (diff)
downloadrtems-libbsd-61d281e39d43b05a24c534256620337f22bbd406.tar.bz2
DHCPCD(8): Add RTEMS program support
Diffstat (limited to 'dhcpcd')
-rw-r--r--dhcpcd/dhcpcd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/dhcpcd/dhcpcd.c b/dhcpcd/dhcpcd.c
index 70210f11..492ad970 100644
--- a/dhcpcd/dhcpcd.c
+++ b/dhcpcd/dhcpcd.c
@@ -1092,6 +1092,24 @@ signal_init(void (*func)(int, siginfo_t *, void *), sigset_t *oldset)
return 0;
}
+#ifdef __rtems__
+#include <rtems/libio.h>
+
+static int
+main(int argc, char **argv);
+
+int rtems_bsd_command_dhcpcd(int argc, char **argv)
+{
+ int exit_code;
+
+ rtems_mkdir(DBDIR, S_IRWXU | S_IRWXG | S_IRWXO);
+
+ exit_code = rtems_bsd_program_call_main("dhcpcd", main, argc, argv);
+
+ return exit_code;
+}
+#endif /* __rtems__ */
+
int
main(int argc, char **argv)
{