diff options
Diffstat (limited to 'rtemsbsd/ftpd/ftpd-init.c')
-rw-r--r-- | rtemsbsd/ftpd/ftpd-init.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/rtemsbsd/ftpd/ftpd-init.c b/rtemsbsd/ftpd/ftpd-init.c new file mode 100644 index 00000000..2741a633 --- /dev/null +++ b/rtemsbsd/ftpd/ftpd-init.c @@ -0,0 +1,39 @@ +/* + * FTP Server Daemon + * + * Submitted by: Jake Janovetz <janovetz@tempest.ece.uiuc.edu> + * + * Changed by: Sergei Organov <osv@javad.ru> (OSV) + * Arnout Vandecappelle <arnout@mind.be> (AV) + * Sebastien Bourdeauducq <sebastien@milkymist.org> (MM) + */ + +/************************************************************************* + * ftpd-init.c + ************************************************************************* + * Description: + * + * This file contains the legacy daemon initialisation. + * + *************************************************************************/ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include <rtems/ftpd.h> + +/* Configuration table */ +extern struct rtems_ftpd_configuration rtems_ftpd_configuration; + +/* + * rtems_initialize_ftpd + * + * Call the FTPD start function. + */ +int +rtems_initialize_ftpd(void) +{ + rtems_ftpd_configuration.verbose = true; + return rtems_ftpd_start(&rtems_ftpd_configuration); +} |