4.10
Last change
on this file since 00bf6744 was
00bf6744,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/01/10 at 14:10:54
|
2010-06-07 Sebastian Huber <sebastian.huber@…>
- libcsupport/include/rtems/libio_.h: Declare
rtems_filesystem_mount_table_control.
- libcsupport/include/rtems/libio.h: Removed
rtems_filesystem_table_first(), rtems_filesystem_table_next() and
rtems_filesystem_table_node_t declarations. Declare
rtems_per_filesystem_routine, rtems_filesystem_iterate() and
rtems_filesystem_get_mount_handler().
- libcsupport/src/mount.c: Added rtems_filesystem_mounts_first() and
rtems_filesystem_mounts_next(). Simplify mount(). Removed
rtems_filesystem_mount_table_control_init. Use
rtems_filesystem_get_mount_handler().
- libcsupport/src/mount-mgr.c: Removed rtems_filesystem_mounts_first() and
rtems_filesystem_mounts_next(). Added rtems_filesystem_iterate() and
rtems_filesystem_get_mount_handler(). Use rtems_libio_lock() and
rtems_libio_unlock();
- sapi/include/confdefs.h, libmisc/shell/main_mount.c: Update for
mount API changes.
2010-06-07 Bharath Suri <bharath.s.jois@…>
- libcsupport/include/rtems/libio_.h: Removed macros
rtems_filesystem_is_separator
rtems_filesystem_get_start_loc
rtems_filesystem_get_sym_start_loc
and added them as files under libcsupport/src/
- libcsupport/src/: Added new files
libcsupport/src/sup_fs_get_start_loc.c
libcsupport/src/sup_fs_get_sym_start_loc.c
libcsupport/src/sup_fs_is_separator.c
- libcsupport/Makefile.am: Changes to accommodate new
files under libcsupport/src/
|
-
Property mode set to
100644
|
File size:
990 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file src/sup_fs_get_start_loc.c |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-1999. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | /* |
---|
18 | * rtems_filesystem_get_start_loc |
---|
19 | * |
---|
20 | * Function to determine if path is absolute or relative |
---|
21 | * |
---|
22 | * Parameters: |
---|
23 | * |
---|
24 | * path : IN - path to be checked |
---|
25 | * index: OUT - 0, if relative, 1 if absolute |
---|
26 | * loc : OUT - location info of root fs if absolute |
---|
27 | * location info of current fs if relative |
---|
28 | * |
---|
29 | * Returns: void |
---|
30 | */ |
---|
31 | |
---|
32 | /* Includes */ |
---|
33 | |
---|
34 | #include "rtems/libio_.h" |
---|
35 | |
---|
36 | void rtems_filesystem_get_start_loc(const char *path, |
---|
37 | int *index, |
---|
38 | rtems_filesystem_location_info_t *loc) |
---|
39 | { |
---|
40 | if (rtems_filesystem_is_separator(path[0])) { |
---|
41 | *loc = rtems_filesystem_root; |
---|
42 | *index = 1; |
---|
43 | } |
---|
44 | else { |
---|
45 | *loc = rtems_filesystem_current; |
---|
46 | *index = 0; |
---|
47 | } |
---|
48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.