source: rtems-libbsd/rtemsbsd/ftpd/ftpd-init.c @ f0aaa04

55-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since f0aaa04 was 90873cc, checked in by Chris Johns <chrisj@…>, on 06/28/16 at 03:32:01

Add ftpd as a service. Add rtems-bsd-config.h for app libbsd set up.

  • Property mode set to 100644
File size: 1006 bytes
Line 
1/*
2 *  FTP Server Daemon
3 *
4 *  Submitted by: Jake Janovetz <janovetz@tempest.ece.uiuc.edu>
5 *
6 *  Changed by:   Sergei Organov <osv@javad.ru> (OSV)
7 *                Arnout Vandecappelle <arnout@mind.be> (AV)
8 *                Sebastien Bourdeauducq <sebastien@milkymist.org> (MM)
9 */
10
11/*************************************************************************
12 *                                 ftpd-init.c
13 *************************************************************************
14 * Description:
15 *
16 *    This file contains the legacy daemon initialisation.
17 *
18 *************************************************************************/
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/ftpd.h>
25
26/* Configuration table */
27extern struct rtems_ftpd_configuration rtems_ftpd_configuration;
28
29/*
30 * rtems_initialize_ftpd
31 *
32 * Call the FTPD start function.
33 */
34int
35rtems_initialize_ftpd(void)
36{
37  rtems_ftpd_configuration.verbose = true;
38  return rtems_ftpd_start(&rtems_ftpd_configuration);
39}
Note: See TracBrowser for help on using the repository browser.