Changeset 293228e8 in rtems


Ignore:
Timestamp:
Jun 10, 2010, 9:20:29 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2144d18
Parents:
b813d632
Message:

2010-06-10 Sebastian Huber <sebastian.huber@…>

  • libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c: Removed rtems_ftpfs_mount().
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb813d632 r293228e8  
     12010-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
    162010-06-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/libnetworking/lib/ftpfs.c

    rb813d632 r293228e8  
    131131
    132132  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     NULL
    154   );
    155   if (rv != 0) {
    156     return RTEMS_IO_ERROR;
    157   }
    158 
    159   return RTEMS_SUCCESSFUL;
    160133}
    161134
  • cpukit/libnetworking/rtems/ftpfs.h

    rb813d632 r293228e8  
    5050 * or to remote hosts.
    5151 *
    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.
    5458 *
    5559 * You can open files either read-only or write-only.  A seek is not allowed.
     
    9296  RTEMS_FTPFS_IOCTL_SET_TIMEOUT = _IOW( 'd', 2, struct timeval *)
    9397} rtems_ftpfs_ioctl_numbers;
    94 
    95 /**
    96  * @brief Creates the mount point @a mount_point and mounts the FTP file
    97  * system.
    98  *       
    99  * If @a mount_point is @c NULL the default mount point         
    100  * @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);
    10598
    10699/**
     
    156149
    157150/**
    158  * Do not call directly, use rtems_ftpfs_mount() or mount().
     151 * @brief Do not call directly, use mount().
    159152 */
    160153int rtems_ftpfs_initialize(
Note: See TracChangeset for help on using the changeset viewer.