Changeset 293228e8 in rtems
- Timestamp:
- Jun 10, 2010, 9:20:29 AM (10 years ago)
- Branches:
- 4.11, master
- Children:
- 2144d18
- Parents:
- b813d632
- Location:
- cpukit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
rb813d632 r293228e8 1 2010-06-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2 3 * libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c: Removed 4 rtems_ftpfs_mount(). 5 1 6 2010-06-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2 7 -
cpukit/libnetworking/lib/ftpfs.c
rb813d632 r293228e8 131 131 132 132 return 0; 133 }134 135 rtems_status_code rtems_ftpfs_mount(const char *mount_point)136 {137 int rv = 0;138 139 if (mount_point == NULL) {140 mount_point = RTEMS_FTPFS_MOUNT_POINT_DEFAULT;141 }142 143 rv = rtems_mkdir(mount_point, S_IRWXU | S_IRWXG | S_IRWXO);144 if (rv != 0) {145 return RTEMS_IO_ERROR;146 }147 148 rv = mount(149 NULL,150 mount_point,151 RTEMS_FILESYSTEM_TYPE_FTPFS,152 RTEMS_FILESYSTEM_READ_WRITE,153 NULL154 );155 if (rv != 0) {156 return RTEMS_IO_ERROR;157 }158 159 return RTEMS_SUCCESSFUL;160 133 } 161 134 -
cpukit/libnetworking/rtems/ftpfs.h
rb813d632 r293228e8 50 50 * or to remote hosts. 51 51 * 52 * You can mount the FTP file system with a call to rtems_ftpfs_mount(). 53 * Alternatively you can use mount() directly. 52 * You can mount the FTP file system with a call to mount() or 53 * mount_and_make_target_path() with the @ref RTEMS_FILESYSTEM_TYPE_FTPFS file 54 * system type. 55 * 56 * You have to add @ref CONFIGURE_FILESYSTEM_FTPFS to your application 57 * configuration. 54 58 * 55 59 * You can open files either read-only or write-only. A seek is not allowed. … … 92 96 RTEMS_FTPFS_IOCTL_SET_TIMEOUT = _IOW( 'd', 2, struct timeval *) 93 97 } rtems_ftpfs_ioctl_numbers; 94 95 /**96 * @brief Creates the mount point @a mount_point and mounts the FTP file97 * system.98 *99 * If @a mount_point is @c NULL the default mount point100 * @ref RTEMS_FTPFS_MOUNT_POINT_DEFAULT will be used.101 *102 * It is mounted with read and write access.103 */104 rtems_status_code rtems_ftpfs_mount( const char *mount_point);105 98 106 99 /** … … 156 149 157 150 /** 158 * Do not call directly, use rtems_ftpfs_mount() ormount().151 * @brief Do not call directly, use mount(). 159 152 */ 160 153 int rtems_ftpfs_initialize(
Note: See TracChangeset
for help on using the changeset viewer.