Home
last modified time | relevance | path

Searched refs:path (Results 1 – 19 of 19) sorted by relevance

/lib/fs/
A Dshell.c24 if (!path) { in set_cwd()
45 path[0] = '\0'; in prepend_cwd()
49 if (arg && path[strlen(path) - 1] != '/') in prepend_cwd()
56 return path; in prepend_cwd()
109 free(path); in cmd_ls()
124 set_cwd(path); in cmd_cd()
126 free(path); in cmd_cd()
153 free(path); in cmd_mkdir()
177 free(path); in cmd_mkfile()
235 free(path); in cmd_stat()
[all …]
A Dfs.c25 char *path; member
80 if (path[0] != '/') { in find_mount()
83 size_t pathlen = strlen(path); in find_mount()
93 LTRACEF("comparing %s with %s\n", path, mount->path); in find_mount()
95 if (memcmp(path, mount->path, mount->pathlen) == 0) { in find_mount()
99 if (path[mount->pathlen] != '/' && path[mount->pathlen] != 0) { in find_mount()
134 free(mount->path); in put_mount()
182 mount->path = strdup(temppath); in mount()
183 if (!mount->path) { in mount()
544 c = path[pos]; in fs_normalize_path()
[all …]
A Ddebug.c24 extern int fs_mount_type(const char *path, const char *device, const char *name);
/lib/fs/include/lib/
A Dfs.h49 status_t fs_mount(const char *path, const char *fs, const char *device) __NONNULL((1)) __NONNULL((2…
50 status_t fs_unmount(const char *path) __NONNULL();
54 status_t fs_create_file(const char *path, filehandle **handle, uint64_t len) __NONNULL();
55 status_t fs_open_file(const char *path, filehandle **handle) __NONNULL();
56 status_t fs_remove_file(const char *path) __NONNULL();
64 status_t fs_make_dir(const char *path) __NONNULL();
65 status_t fs_open_dir(const char *path, dirhandle **handle) __NONNULL();
72 ssize_t fs_load_file(const char *path, void *ptr, size_t maxlen) __NONNULL();
75 void fs_normalize_path(char *path) __NONNULL();
/lib/fs/ext2/
A Ddir.c73 static int ext2_walk(ext2_t *ext2, char *path, struct ext2_inode *start_inode, inodenum_t *inum, in… in ext2_walk() argument
80 LTRACEF("path '%s', start_inode %p, inum %p, recurse %d\n", path, start_inode, inum, recurse); in ext2_walk()
86 ptr = &path[0]; in ext2_walk()
175 char path[512]; in ext2_lookup() local
176 strlcpy(path, _path, sizeof(path)); in ext2_lookup()
178 return ext2_walk(ext2, path, &ext2->root_inode, inum, 1); in ext2_lookup()
A Dext2_priv.h44 int ext2_lookup(ext2_t *ext2, const char *path, inodenum_t *inum); // path to inode
58 status_t ext2_open_file(fscookie *cookie, const char *path, filecookie **fcookie);
A Dfile.c19 int ext2_open_file(fscookie *cookie, const char *path, filecookie **fcookie) { in ext2_open_file() argument
25 err = ext2_lookup(ext2, path, &inum); in ext2_open_file()
/lib/fs/9p/
A Dv9fs_priv.h80 status_t v9fs_open_file(fscookie *cookie, const char *path,
82 status_t v9fs_create_file(fscookie *cookie, const char *path,
90 status_t v9fs_open_dir(fscookie *cookie, const char *path, dircookie **dcookie);
91 status_t v9fs_mkdir(fscookie *cookie, const char *path);
95 status_t path_to_wname(char *path, uint16_t *nwname, const char *wname[P9_MAXWELEM]) __NONNULL((1))…
A Dv9fs.c39 status_t path_to_wname(char *path, uint16_t *nwname, in path_to_wname() argument
45 if (path[0] == '\0') in path_to_wname()
48 cptr = path[0] == '/' ? path + 1 : path; in path_to_wname()
A Ddir.c37 status_t v9fs_open_dir(fscookie *cookie, const char *path, dircookie **dcookie) in v9fs_open_dir() argument
44 LTRACEF("v9fs (%p) path (%s) dcookie (%p)\n", v9fs, path, dcookie); in v9fs_open_dir()
46 strlcpy(temppath, path, sizeof(temppath)); in v9fs_open_dir()
137 status_t v9fs_mkdir(fscookie *cookie, const char *path) in v9fs_mkdir() argument
145 LTRACEF("v9fs (%p) path (%s)\n", v9fs, path); in v9fs_mkdir()
147 strlcpy(temppath, path, sizeof(temppath)); in v9fs_mkdir()
A Dfile.c37 status_t v9fs_open_file(fscookie *cookie, const char *path, in v9fs_open_file() argument
45 LTRACEF("v9fs (%p) path (%s) fcookie (%p)\n", v9fs, path, fcookie); in v9fs_open_file()
47 strlcpy(temppath, path, sizeof(temppath)); in v9fs_open_file()
116 LTRACEF("open file (%s) failed: %d\n", path, ret); in v9fs_open_file()
121 status_t v9fs_create_file(fscookie *cookie, const char *path, in v9fs_create_file() argument
130 LTRACEF("v9fs (%p) path (%s) fcookie (%p) len (%llu)\n", v9fs, path, in v9fs_create_file()
133 strlcpy(temppath, path, sizeof(temppath)); in v9fs_create_file()
217 LTRACEF("create file (%s) failed: %d\n", path, ret); in v9fs_create_file()
/lib/fs/test/
A Dtest.c19 char path[1024]; in test_normalize() local
21 strlcpy(path, in, sizeof(path)); in test_normalize()
22 fs_normalize_path(path); in test_normalize()
23 return !strcmp(path, out); in test_normalize()
/lib/fs/fat/
A Ddir.cpp248 status_t fat_walk(fat_fs *fat, const char *path, dir_entry *out_entry, dir_entry_location *loc) { in fat_walk() argument
249 LTRACEF("path %s\n", path); in fat_walk()
257 auto path_increment = [&path, &path_element_size]() { in fat_walk()
258 path += path_element_size; in fat_walk()
262 if (*path == 0) { in fat_walk()
267 while (*path == '/' && path != 0) { in fat_walk()
268 path++; in fat_walk()
272 const char *ptr = path; in fat_walk()
281 LTRACEF("first path '%s' path_element_size %zu\n", path, path_element_size); in fat_walk()
298 strlcpy(name_element, path, MIN(sizeof(name_element), path_element_size + 1)); in fat_walk()
A Dfat_priv.h50 status_t fat_walk(fat_fs *fat, const char *path, dir_entry *out_entry, dir_entry_location *loc);
A Dfile.h25 static status_t open_file(fscookie *cookie, const char *path, filecookie **fcookie);
A Dfile.cpp81 status_t fat_file::open_file(fscookie *cookie, const char *path, filecookie **fcookie) { in open_file() argument
84 LTRACEF("fscookie %p path '%s' fcookie %p\n", cookie, path, fcookie); in open_file()
91 status_t err = fat_walk(fs, path, &entry, &loc); in open_file()
/lib/fs/fat/test/
A Dtest.cpp98 bool test_file_read(const char *path, const unsigned char *test_file_buffer, size_t test_file_size)… in test_file_read() argument
103 ASSERT_EQ(NO_ERROR, fs_open_file(path, &handle)); in test_file_read()
/lib/uefi/include/uefi/
A Dboot_service.h116 EfiDevicePathProtocol** path,
120 EfiDevicePathProtocol* path, void* src,
/lib/uefi/
A Dboot_service_provider.cpp130 EfiDevicePathProtocol *path, void *src, size_t src_size, in load_image() argument
137 EfiDevicePathProtocol **path, EfiHandle *device) { in locate_device_path() argument

Completed in 41 milliseconds