diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-17 14:05:00 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-01-30 16:23:03 +0100 |
commit | 61d281e39d43b05a24c534256620337f22bbd406 (patch) | |
tree | d50f12cfb1d5710e32ac1ba31c0285d26d8d32d2 /dhcpcd/dhcpcd.c | |
parent | DHCPCD(8): Use select() instead of pselect() (diff) | |
download | rtems-libbsd-61d281e39d43b05a24c534256620337f22bbd406.tar.bz2 |
DHCPCD(8): Add RTEMS program support
Diffstat (limited to 'dhcpcd/dhcpcd.c')
-rw-r--r-- | dhcpcd/dhcpcd.c | 18 |
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) { |