Changeset 937ab62c in rtems
- Timestamp:
- 06/15/99 22:16:30 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- cf1806b4
- Parents:
- aea6ce0b
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libcsupport/include/rtems/libio.h
raea6ce0b r937ab62c 563 563 rtems_filesystem_mount_table_entry_t **mt_entry, 564 564 rtems_filesystem_operations_table *fs_ops, 565 char *fsoptions,565 rtems_filesystem_options_t fsoptions, 566 566 char *device, 567 567 char *mount_point -
c/src/exec/libcsupport/src/base_fs.c
raea6ce0b r937ab62c 56 56 &first_entry, 57 57 &IMFS_ops, 58 "RW",58 RTEMS_FILESYSTEM_READ_WRITE, 59 59 NULL, 60 60 NULL ); -
c/src/exec/libcsupport/src/mount.c
raea6ce0b r937ab62c 61 61 ); 62 62 63 64 rtems_filesystem_options_t get_file_system_options(65 char *fsoptions66 );67 68 63 int init_fs_mount_table( void ); 69 64 … … 94 89 rtems_filesystem_mount_table_entry_t **mt_entry, 95 90 rtems_filesystem_operations_table *fs_ops, 96 char *fsoptions,91 rtems_filesystem_options_t fsoptions, 97 92 char *device, 98 93 char *mount_point … … 118 113 */ 119 114 120 if ( fsoptions == NULL ) { 121 errno = EINVAL; 122 return -1; 123 } 124 125 options = get_file_system_options( fsoptions ); 126 if ( options == RTEMS_FILESYSTEM_BAD_OPTIONS ) { 115 if ( fsoptions != RTEMS_FILESYSTEM_READ_ONLY && 116 fsoptions != RTEMS_FILESYSTEM_READ_WRITE ) { 127 117 errno = EINVAL; 128 118 return -1; … … 257 247 return 0; 258 248 } 259 260 /*261 * get_file_system_options262 *263 * This routine will determine is the text string that represents the options264 * that are to be used to mount the file system are actually valid. If the265 * options are valid the appropriate file system options type will be returned266 * to the calling routine.267 */268 269 rtems_filesystem_options_t get_file_system_options(270 char *fsoptions271 )272 {273 if ( strcasecmp( "RO", fsoptions ) == 0 )274 return RTEMS_FILESYSTEM_READ_ONLY;275 if ( strcasecmp( "RW", fsoptions ) == 0 )276 return RTEMS_FILESYSTEM_READ_WRITE;277 else278 return RTEMS_FILESYSTEM_BAD_OPTIONS;279 }280 281 249 282 250 -
c/src/exec/libnetworking/lib/tftpDriver.c
raea6ce0b r937ab62c 235 235 &entry, 236 236 &rtems_tftp_ops, 237 "RO",237 RTEMS_FILESYSTEM_READ_ONLY, 238 238 NULL, 239 239 TFTP_PATHNAME_PREFIX -
c/src/lib/include/rtems/libio.h
raea6ce0b r937ab62c 563 563 rtems_filesystem_mount_table_entry_t **mt_entry, 564 564 rtems_filesystem_operations_table *fs_ops, 565 char *fsoptions,565 rtems_filesystem_options_t fsoptions, 566 566 char *device, 567 567 char *mount_point -
c/src/lib/libc/base_fs.c
raea6ce0b r937ab62c 56 56 &first_entry, 57 57 &IMFS_ops, 58 "RW",58 RTEMS_FILESYSTEM_READ_WRITE, 59 59 NULL, 60 60 NULL ); -
c/src/lib/libc/libio.h
raea6ce0b r937ab62c 563 563 rtems_filesystem_mount_table_entry_t **mt_entry, 564 564 rtems_filesystem_operations_table *fs_ops, 565 char *fsoptions,565 rtems_filesystem_options_t fsoptions, 566 566 char *device, 567 567 char *mount_point -
c/src/lib/libc/mount.c
raea6ce0b r937ab62c 61 61 ); 62 62 63 64 rtems_filesystem_options_t get_file_system_options(65 char *fsoptions66 );67 68 63 int init_fs_mount_table( void ); 69 64 … … 94 89 rtems_filesystem_mount_table_entry_t **mt_entry, 95 90 rtems_filesystem_operations_table *fs_ops, 96 char *fsoptions,91 rtems_filesystem_options_t fsoptions, 97 92 char *device, 98 93 char *mount_point … … 118 113 */ 119 114 120 if ( fsoptions == NULL ) { 121 errno = EINVAL; 122 return -1; 123 } 124 125 options = get_file_system_options( fsoptions ); 126 if ( options == RTEMS_FILESYSTEM_BAD_OPTIONS ) { 115 if ( fsoptions != RTEMS_FILESYSTEM_READ_ONLY && 116 fsoptions != RTEMS_FILESYSTEM_READ_WRITE ) { 127 117 errno = EINVAL; 128 118 return -1; … … 257 247 return 0; 258 248 } 259 260 /*261 * get_file_system_options262 *263 * This routine will determine is the text string that represents the options264 * that are to be used to mount the file system are actually valid. If the265 * options are valid the appropriate file system options type will be returned266 * to the calling routine.267 */268 269 rtems_filesystem_options_t get_file_system_options(270 char *fsoptions271 )272 {273 if ( strcasecmp( "RO", fsoptions ) == 0 )274 return RTEMS_FILESYSTEM_READ_ONLY;275 if ( strcasecmp( "RW", fsoptions ) == 0 )276 return RTEMS_FILESYSTEM_READ_WRITE;277 else278 return RTEMS_FILESYSTEM_BAD_OPTIONS;279 }280 281 249 282 250 -
c/src/lib/libnetworking/lib/tftpDriver.c
raea6ce0b r937ab62c 235 235 &entry, 236 236 &rtems_tftp_ops, 237 "RO",237 RTEMS_FILESYSTEM_READ_ONLY, 238 238 NULL, 239 239 TFTP_PATHNAME_PREFIX -
c/src/libnetworking/lib/tftpDriver.c
raea6ce0b r937ab62c 235 235 &entry, 236 236 &rtems_tftp_ops, 237 "RO",237 RTEMS_FILESYSTEM_READ_ONLY, 238 238 NULL, 239 239 TFTP_PATHNAME_PREFIX -
cpukit/libcsupport/include/rtems/libio.h
raea6ce0b r937ab62c 563 563 rtems_filesystem_mount_table_entry_t **mt_entry, 564 564 rtems_filesystem_operations_table *fs_ops, 565 char *fsoptions,565 rtems_filesystem_options_t fsoptions, 566 566 char *device, 567 567 char *mount_point -
cpukit/libcsupport/src/base_fs.c
raea6ce0b r937ab62c 56 56 &first_entry, 57 57 &IMFS_ops, 58 "RW",58 RTEMS_FILESYSTEM_READ_WRITE, 59 59 NULL, 60 60 NULL ); -
cpukit/libcsupport/src/mount.c
raea6ce0b r937ab62c 61 61 ); 62 62 63 64 rtems_filesystem_options_t get_file_system_options(65 char *fsoptions66 );67 68 63 int init_fs_mount_table( void ); 69 64 … … 94 89 rtems_filesystem_mount_table_entry_t **mt_entry, 95 90 rtems_filesystem_operations_table *fs_ops, 96 char *fsoptions,91 rtems_filesystem_options_t fsoptions, 97 92 char *device, 98 93 char *mount_point … … 118 113 */ 119 114 120 if ( fsoptions == NULL ) { 121 errno = EINVAL; 122 return -1; 123 } 124 125 options = get_file_system_options( fsoptions ); 126 if ( options == RTEMS_FILESYSTEM_BAD_OPTIONS ) { 115 if ( fsoptions != RTEMS_FILESYSTEM_READ_ONLY && 116 fsoptions != RTEMS_FILESYSTEM_READ_WRITE ) { 127 117 errno = EINVAL; 128 118 return -1; … … 257 247 return 0; 258 248 } 259 260 /*261 * get_file_system_options262 *263 * This routine will determine is the text string that represents the options264 * that are to be used to mount the file system are actually valid. If the265 * options are valid the appropriate file system options type will be returned266 * to the calling routine.267 */268 269 rtems_filesystem_options_t get_file_system_options(270 char *fsoptions271 )272 {273 if ( strcasecmp( "RO", fsoptions ) == 0 )274 return RTEMS_FILESYSTEM_READ_ONLY;275 if ( strcasecmp( "RW", fsoptions ) == 0 )276 return RTEMS_FILESYSTEM_READ_WRITE;277 else278 return RTEMS_FILESYSTEM_BAD_OPTIONS;279 }280 281 249 282 250 -
cpukit/libnetworking/lib/tftpDriver.c
raea6ce0b r937ab62c 235 235 &entry, 236 236 &rtems_tftp_ops, 237 "RO",237 RTEMS_FILESYSTEM_READ_ONLY, 238 238 NULL, 239 239 TFTP_PATHNAME_PREFIX
Note: See TracChangeset
for help on using the changeset viewer.