diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-09 11:36:09 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-09 11:36:09 +0000 |
commit | c69b6fe66a7294ce2b246d633f7ebeeca8618c8c (patch) | |
tree | 1a2aa8bd34ec6d4b9853881de0b872e613cbcf65 /cpukit/libnetworking/lib | |
parent | 2010-06-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-c69b6fe66a7294ce2b246d633f7ebeeca8618c8c.tar.bz2 |
2010-06-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c: Added
rtems_ftpfs_mount() again. Documentation.
Diffstat (limited to 'cpukit/libnetworking/lib')
-rw-r--r-- | cpukit/libnetworking/lib/ftpfs.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c index 5e7f520990..659a5e3e43 100644 --- a/cpukit/libnetworking/lib/ftpfs.c +++ b/cpukit/libnetworking/lib/ftpfs.c @@ -99,6 +99,8 @@ typedef struct { struct timeval timeout; } rtems_ftpfs_mount_entry; +static const rtems_filesystem_operations_table rtems_ftpfs_ops; + static const rtems_filesystem_file_handlers_r rtems_ftpfs_handlers; static const rtems_filesystem_file_handlers_r rtems_ftpfs_root_handlers; @@ -130,8 +132,6 @@ static int rtems_ftpfs_set_connection_timeout( return 0; } -#if 0 -CCJ_REMOVE_MOUNT rtems_status_code rtems_ftpfs_mount(const char *mount_point) { int rv = 0; @@ -140,17 +140,17 @@ rtems_status_code rtems_ftpfs_mount(const char *mount_point) mount_point = RTEMS_FTPFS_MOUNT_POINT_DEFAULT; } - rv = mkdir(mount_point, S_IRWXU | S_IRWXG | S_IRWXO); + rv = rtems_mkdir(mount_point, S_IRWXU | S_IRWXG | S_IRWXO); if (rv != 0) { return RTEMS_IO_ERROR; } rv = mount( NULL, - &rtems_ftpfs_ops, + mount_point, + RTEMS_FILESYSTEM_TYPE_FTPFS, RTEMS_FILESYSTEM_READ_WRITE, - NULL, - mount_point + NULL ); if (rv != 0) { return RTEMS_IO_ERROR; @@ -158,7 +158,6 @@ rtems_status_code rtems_ftpfs_mount(const char *mount_point) return RTEMS_SUCCESSFUL; } -#endif static rtems_status_code rtems_ftpfs_do_ioctl( const char *mount_point, @@ -1318,7 +1317,7 @@ static int rtems_ftpfs_fstat( return 0; } -const rtems_filesystem_operations_table rtems_ftpfs_ops = { +static const rtems_filesystem_operations_table rtems_ftpfs_ops = { .evalpath_h = rtems_ftpfs_eval_path, .evalformake_h = NULL, .link_h = NULL, |