RTEMS  5.1
ftpfs.h
Go to the documentation of this file.
1 
7 /*
8  * Copyright (c) 2009
9  * embedded brains GmbH
10  * Obere Lagerstr. 30
11  * D-82178 Puchheim
12  * Germany
13  * <rtems@embedded-brains.de>
14  *
15  * (c) Copyright 2002
16  * Thomas Doerfler
17  * IMD Ingenieurbuero fuer Microcomputertechnik
18  * Herbststr. 8
19  * 82178 Puchheim, Germany
20  * <Thomas.Doerfler@imd-systems.de>
21  *
22  * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.
23  *
24  * This code has been created after closly inspecting "tftpdriver.c" from Eric
25  * Norum.
26  *
27  * The license and distribution terms for this file may be
28  * found in the file LICENSE in this distribution or at
29  * http://www.rtems.org/license/LICENSE.
30  */
31 
32 #ifndef _RTEMS_FTPFS_H
33 #define _RTEMS_FTPFS_H
34 
35 #include <sys/time.h>
36 #include <sys/ioctl.h>
37 
38 #include <rtems/libio.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
81 #define RTEMS_FTPFS_CTRL_PORT 21
82 
86 #define RTEMS_FTPFS_MOUNT_POINT_DEFAULT "/FTP"
87 
91 typedef enum {
92  RTEMS_FTPFS_IOCTL_GET_VERBOSE = _IOR( 'd', 1, bool *),
93  RTEMS_FTPFS_IOCTL_SET_VERBOSE = _IOW( 'd', 1, bool *),
94  RTEMS_FTPFS_IOCTL_GET_TIMEOUT = _IOR( 'd', 2, struct timeval *),
95  RTEMS_FTPFS_IOCTL_SET_TIMEOUT = _IOW( 'd', 2, struct timeval *)
97 
105 rtems_status_code rtems_ftpfs_get_verbose( const char *mount_point, bool *verbose);
106 
117 rtems_status_code rtems_ftpfs_set_verbose( const char *mount_point, bool verbose);
118 
127  const char *mount_point,
128  struct timeval *timeout
129 );
130 
143  const char *mount_point,
144  const struct timeval *timeout
145 );
146 
154  const void *data
155 );
156 
157 #ifdef __cplusplus
158 }
159 #endif
160 
161 #endif
Basic IO API.
rtems_ftpfs_ioctl_numbers
FTP file system IO control requests.
Definition: ftpfs.h:91
rtems_status_code rtems_ftpfs_set_timeout(const char *mount_point, const struct timeval *timeout)
Sets the timeout value to timeout for the file system at mount_point.
rtems_status_code rtems_ftpfs_set_verbose(const char *mount_point, bool verbose)
Enables or disables the verbose mode if verbose is true or false respectively for the file system at ...
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_status_code rtems_ftpfs_get_verbose(const char *mount_point, bool *verbose)
Returns in verbose if the verbose mode is enabled or disabled for the file system at mount_point.
Mount table entry.
Definition: libio.h:1604
int rtems_ftpfs_initialize(rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
Do not call directly, use mount().
rtems_status_code rtems_ftpfs_get_timeout(const char *mount_point, struct timeval *timeout)
Returns the current timeout value in timeout for the file system at mount_point.