diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 8 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio_.h | 19 |
2 files changed, 22 insertions, 5 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index 5f840647db..44e8b59267 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -128,6 +128,7 @@ typedef int (*rtems_filesystem_fcntl_t)( ); typedef int (*rtems_filesystem_rmnod_t)( + rtems_filesystem_location_info_t *parent_loc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ); @@ -174,6 +175,7 @@ typedef int (*rtems_filesystem_mknod_t)( typedef int (*rtems_filesystem_evalpath_t)( const char *pathname, /* IN */ + int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ); @@ -191,7 +193,8 @@ typedef int (*rtems_filesystem_link_t)( ); typedef int (*rtems_filesystem_unlink_t)( - rtems_filesystem_location_info_t *pathloc /* IN */ + rtems_filesystem_location_info_t *parent_pathloc, /* IN */ + rtems_filesystem_location_info_t *pathloc /* IN */ ); typedef int (*rtems_filesystem_chown_t)( @@ -326,7 +329,8 @@ struct rtems_filesystem_mount_table_entry_tt { * When someone adds a mounted filesystem on a real device, * this will need to be used. * - * The best option long term for this is probably an open file descriptor. + * The lower layers can manage how this is managed. Leave as a + * string. */ char *dev; }; diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h index f64fefb2e8..dfde83145d 100644 --- a/cpukit/libcsupport/include/rtems/libio_.h +++ b/cpukit/libcsupport/include/rtems/libio_.h @@ -234,16 +234,29 @@ int rtems_libio_is_file_open( * File System Routine Prototypes */ -int rtems_filesystem_evaluate_path( +int rtems_filesystem_evaluate_relative_path( const char *pathname, + int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ); -int rtems_filesystem_evaluate_parent( +int rtems_filesystem_evaluate_path( + const char *pathname, + int pathnamelen, int flags, - rtems_filesystem_location_info_t *pathloc + rtems_filesystem_location_info_t *pathloc, + int follow_link +); + +int rtems_filesystem_dirname( + const char *pathname +); + +int rtems_filesystem_prefix_separators( + const char *pathname, + int pathnamelen ); void rtems_filesystem_initialize(void); |