mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
oparations table for mount command is now const.
* libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h: Rewrite of
the FTP file system which implements now the trivial command state
machines of RFC 959. For the data transfer passive (= default) and
active (= fallback) modes are now supported.
* libmisc/shell/main_mount_ftp.c: Update for FTP file system changes.
38 lines
765 B
C
38 lines
765 B
C
/*
|
|
* Shell Command Implmentation
|
|
*
|
|
* Author: Fernando RUIZ CASAS
|
|
* Work: fernando.ruiz@ctv.es
|
|
* Home: correo@fernando-ruiz.com
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
|
|
#include <rtems.h>
|
|
#include <rtems/shell.h>
|
|
#include <rtems/dosfs.h>
|
|
#include <rtems/fsmount.h>
|
|
#include "internal.h"
|
|
|
|
#include <rtems/ftpfs.h>
|
|
|
|
rtems_shell_filesystems_t rtems_shell_Mount_FTP = {
|
|
name: "ftp",
|
|
driver_needed: 1,
|
|
fs_ops: &rtems_ftpfs_ops,
|
|
mounter: rtems_shell_libc_mounter
|
|
};
|