summaryrefslogtreecommitdiffstats
path: root/cpukit/ftpd/ftpd-init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-30 10:11:37 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-05-02 09:56:49 +0200
commitb771cb48a61c6094da114d064df7d6b1daa01953 (patch)
tree594609d1670eab02ec9ea65f38dd5e5b147447e8 /cpukit/ftpd/ftpd-init.c
parentftpd: Use floating-point tasks due to syslog() (diff)
downloadrtems-b771cb48a61c6094da114d064df7d6b1daa01953.tar.bz2
ftpd: Always build FTP daemon
Add support for libbsd initialization. Update #3419.
Diffstat (limited to 'cpukit/ftpd/ftpd-init.c')
-rw-r--r--cpukit/ftpd/ftpd-init.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpukit/ftpd/ftpd-init.c b/cpukit/ftpd/ftpd-init.c
new file mode 100644
index 0000000000..35546ff553
--- /dev/null
+++ b/cpukit/ftpd/ftpd-init.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2018 embedded brains GmbH. All rights reserved.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/ftpd.h>
+
+int rtems_initialize_ftpd( void )
+{
+ rtems_ftpd_configuration.verbose = true;
+ return rtems_ftpd_start( &rtems_ftpd_configuration );
+}