Changeset c69b6fe in rtems


Ignore:
Timestamp:
Jun 9, 2010, 11:36:09 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9b432db
Parents:
14fc3a7
Message:

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

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

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r14fc3a7 rc69b6fe  
     12010-06-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libnetworking/rtems/ftpfs.h, libnetworking/lib/ftpfs.c:  Added
     4        rtems_ftpfs_mount() again.  Documentation.
     5
    162010-06-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/libnetworking/lib/ftpfs.c

    r14fc3a7 rc69b6fe  
    100100} rtems_ftpfs_mount_entry;
    101101
     102static const rtems_filesystem_operations_table rtems_ftpfs_ops;
     103
    102104static const rtems_filesystem_file_handlers_r rtems_ftpfs_handlers;
    103105
     
    131133}
    132134
    133 #if 0
    134 CCJ_REMOVE_MOUNT
    135135rtems_status_code rtems_ftpfs_mount(const char *mount_point)
    136136{
     
    141141  }
    142142
    143   rv = mkdir(mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
     143  rv = rtems_mkdir(mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
    144144  if (rv != 0) {
    145145    return RTEMS_IO_ERROR;
     
    148148  rv = mount(
    149149    NULL,
    150     &rtems_ftpfs_ops,
     150    mount_point,
     151    RTEMS_FILESYSTEM_TYPE_FTPFS,
    151152    RTEMS_FILESYSTEM_READ_WRITE,
    152     NULL,
    153     mount_point
     153    NULL
    154154  );
    155155  if (rv != 0) {
     
    159159  return RTEMS_SUCCESSFUL;
    160160}
    161 #endif
    162161
    163162static rtems_status_code rtems_ftpfs_do_ioctl(
     
    13191318}
    13201319
    1321 const rtems_filesystem_operations_table rtems_ftpfs_ops = {
     1320static const rtems_filesystem_operations_table rtems_ftpfs_ops = {
    13221321  .evalpath_h = rtems_ftpfs_eval_path,
    13231322  .evalformake_h = NULL,
  • cpukit/libnetworking/rtems/ftpfs.h

    r14fc3a7 rc69b6fe  
    22 * @file
    33 *
    4  * File Transfer Protocol file system (FTP client).
     4 * @brief File Transfer Protocol file system (FTP client).
    55 */
    66
     
    4747 * @defgroup rtems_ftpfs File Transfer Protocol File System
    4848 *
    49  * The FTP file system (FTP client) can be used to transfer files from or to
    50  * remote hosts.
     49 * @brief The FTP file system (FTP client) can be used to transfer files from
     50 * or to remote hosts.
    5151 *
    5252 * You can mount the FTP file system with a call to rtems_ftpfs_mount().
    53  * Alternatively you can use mount() with the @ref rtems_ftpfs_ops operations
    54  * table.
     53 * Alternatively you can use mount() directly.
    5554 *
    5655 * You can open files either read-only or write-only.  A seek is not allowed.
     
    7574
    7675/**
    77  * Well-known port number for FTP control connection.
     76 * @brief Well-known port number for FTP control connection.
    7877 */
    7978#define RTEMS_FTPFS_CTRL_PORT 21
    8079
    8180/**
    82  * Default mount point for FTP file system.
     81 * @brief Default mount point for FTP file system.
    8382 */
    8483#define RTEMS_FTPFS_MOUNT_POINT_DEFAULT "/FTP"
    8584
    8685/**
    87  * FTP file system IO control requests.
     86 * @brief FTP file system IO control requests.
    8887 */
    8988typedef enum {
     
    9594
    9695/**
    97  * FTP file system operations table.
    98  */
    99 extern const rtems_filesystem_operations_table rtems_ftpfs_ops;
     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 */     
     104rtems_status_code rtems_ftpfs_mount( const char *mount_point);
    100105
    101106/**
    102  * Returns in @a verbose if the verbose mode is enabled or disabled for the
    103  * file system at @a mount_point.
     107 * @brief Returns in @a verbose if the verbose mode is enabled or disabled for
     108 * the file system at @a mount_point.
    104109 *
    105110 * If @a mount_point is @c NULL the default mount point
     
    109114
    110115/**
    111  * Enables or disables the verbose mode if @a verbose is @c true or
     116 * @brief Enables or disables the verbose mode if @a verbose is @c true or
    112117 * @c false respectively for the file system at @a mount_point.
    113118 *
     
    121126
    122127/**
    123  * Returns the current timeout value in @a timeout for the file system at
    124  * @a mount_point.
     128 * @brief Returns the current timeout value in @a timeout for the file system
     129 * at @a mount_point.
    125130 *
    126131 * If @a mount_point is @c NULL the default mount point
     
    133138
    134139/**
    135  * Sets the timeout value to @a timeout for the file system at @a mount_point.
     140 * @brief Sets the timeout value to @a timeout for the file system at
     141 * @a mount_point.
    136142 *
    137143 * The timeout value will be used during connection establishment of active
     
    150156
    151157/**
    152  * Creates the default mount point @ref RTEMS_FTPFS_MOUNT_POINT_DEFAULT and
    153  * mounts the FTP file system. Do not call directly, use mount.xs
    154  *
    155  * It is mounted with read and write access.
     158 * Do not call directly, use rtems_ftpfs_mount() or mount().
    156159 */
    157 int rtems_ftpfs_initialize(rtems_filesystem_mount_table_entry_t *e,
    158                            const void                           *d);
     160int rtems_ftpfs_initialize(
     161  rtems_filesystem_mount_table_entry_t *mt_entry,
     162  const void *data
     163);
    159164
    160165#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.