mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 23:40:15 +00:00
Added ftpd server from Jake Janovetz <janovetz@tempest.ece.uiuc.edu>.
This commit is contained in:
53
c/src/lib/libnetworking/rtems_servers/Makefile.in
Normal file
53
c/src/lib/libnetworking/rtems_servers/Makefile.in
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
@SET_MAKE@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
RTEMS_ROOT = @top_srcdir@
|
||||
PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
|
||||
LIBNAME=lib.a
|
||||
LIB=${ARCH}/${LIBNAME}
|
||||
|
||||
# C and C++ source names, if any, go here -- minus the .c or .cc
|
||||
C_PIECES=sghostname issetugid \
|
||||
rtems_glue rtems_syscall rtems_bootp \
|
||||
rtems_showmbuf rtems_showroute \
|
||||
rtems_showifstat rtems_showipstat rtems_showicmpstat \
|
||||
rtems_showtcpstat rtems_showudpstat rtems_select
|
||||
C_FILES=$(C_PIECES:%=%.c)
|
||||
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
|
||||
|
||||
SRCS=$(C_FILES)
|
||||
OBJS=$(C_O_FILES)
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
#
|
||||
# Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
|
||||
-DDIAGNOSTIC -DBOOTP_COMPAT
|
||||
CPPFLAGS +=
|
||||
CFLAGS +=
|
||||
|
||||
#
|
||||
# Add your list of files to delete here. The config files
|
||||
# already know how to delete some stuff, so you may want
|
||||
# to just run 'make clean' first to see what gets missed.
|
||||
# 'make clobber' already includes 'make clean'
|
||||
#
|
||||
|
||||
CLEAN_ADDITIONS += $(LIB)
|
||||
CLOBBER_ADDITIONS +=
|
||||
|
||||
all: ${ARCH} $(LIB)
|
||||
|
||||
$(LIB): $(SRCS) ${OBJS}
|
||||
$(make-library)
|
||||
1067
c/src/lib/libnetworking/rtems_servers/ftpd.c
Normal file
1067
c/src/lib/libnetworking/rtems_servers/ftpd.c
Normal file
File diff suppressed because it is too large
Load Diff
26
c/src/lib/libnetworking/rtems_servers/ftpd.h
Normal file
26
c/src/lib/libnetworking/rtems_servers/ftpd.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* FTP Server Information
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __FTPD_H__
|
||||
#define __FTPD_H__
|
||||
|
||||
|
||||
#define FTPD_CONTROL_PORT 21
|
||||
|
||||
/*
|
||||
* Reply codes.
|
||||
*/
|
||||
|
||||
#define PRELIM 1 /* positive preliminary */
|
||||
#define COMPLETE 2 /* positive completion */
|
||||
#define CONTINUE 3 /* positive intermediate */
|
||||
#define TRANSIENT 4 /* transient negative completion */
|
||||
#define ERROR 5 /* permanent negative completion */
|
||||
|
||||
void rtems_ftpd_sTart(rtems_task_priority priority);
|
||||
|
||||
#endif /* __FTPD_H__ */
|
||||
|
||||
53
c/src/libnetworking/rtems_servers/Makefile.in
Normal file
53
c/src/libnetworking/rtems_servers/Makefile.in
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
@SET_MAKE@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
RTEMS_ROOT = @top_srcdir@
|
||||
PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
|
||||
LIBNAME=lib.a
|
||||
LIB=${ARCH}/${LIBNAME}
|
||||
|
||||
# C and C++ source names, if any, go here -- minus the .c or .cc
|
||||
C_PIECES=sghostname issetugid \
|
||||
rtems_glue rtems_syscall rtems_bootp \
|
||||
rtems_showmbuf rtems_showroute \
|
||||
rtems_showifstat rtems_showipstat rtems_showicmpstat \
|
||||
rtems_showtcpstat rtems_showudpstat rtems_select
|
||||
C_FILES=$(C_PIECES:%=%.c)
|
||||
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
|
||||
|
||||
SRCS=$(C_FILES)
|
||||
OBJS=$(C_O_FILES)
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
#
|
||||
# Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
|
||||
-DDIAGNOSTIC -DBOOTP_COMPAT
|
||||
CPPFLAGS +=
|
||||
CFLAGS +=
|
||||
|
||||
#
|
||||
# Add your list of files to delete here. The config files
|
||||
# already know how to delete some stuff, so you may want
|
||||
# to just run 'make clean' first to see what gets missed.
|
||||
# 'make clobber' already includes 'make clean'
|
||||
#
|
||||
|
||||
CLEAN_ADDITIONS += $(LIB)
|
||||
CLOBBER_ADDITIONS +=
|
||||
|
||||
all: ${ARCH} $(LIB)
|
||||
|
||||
$(LIB): $(SRCS) ${OBJS}
|
||||
$(make-library)
|
||||
1067
c/src/libnetworking/rtems_servers/ftpd.c
Normal file
1067
c/src/libnetworking/rtems_servers/ftpd.c
Normal file
File diff suppressed because it is too large
Load Diff
26
c/src/libnetworking/rtems_servers/ftpd.h
Normal file
26
c/src/libnetworking/rtems_servers/ftpd.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* FTP Server Information
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __FTPD_H__
|
||||
#define __FTPD_H__
|
||||
|
||||
|
||||
#define FTPD_CONTROL_PORT 21
|
||||
|
||||
/*
|
||||
* Reply codes.
|
||||
*/
|
||||
|
||||
#define PRELIM 1 /* positive preliminary */
|
||||
#define COMPLETE 2 /* positive completion */
|
||||
#define CONTINUE 3 /* positive intermediate */
|
||||
#define TRANSIENT 4 /* transient negative completion */
|
||||
#define ERROR 5 /* permanent negative completion */
|
||||
|
||||
void rtems_ftpd_sTart(rtems_task_priority priority);
|
||||
|
||||
#endif /* __FTPD_H__ */
|
||||
|
||||
Reference in New Issue
Block a user