summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/ftpd/ftpd-init.c
blob: 2741a6336a2fccf4b718630ff9f649c1c0b02d42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
}