| /components/dfs/dfs_v2/src/ |
| A D | dfs_fs.c | 147 char *fullpath = RT_NULL; in dfs_remount() local 156 if (!fullpath) in dfs_remount() 238 if (!fullpath) in dfs_mount() 251 if (fullpath) in dfs_mount() 267 … || (mnt_parent && strcmp(fullpath, "/") == 0 && strcmp(mnt_parent->fullpath, fullpath) != 0)) in dfs_mount() 416 rt_free(fullpath); in dfs_mount() 453 if (fullpath) in dfs_umount() 459 if (strcmp(mnt->fullpath, fullpath) == 0) in dfs_umount() 489 rt_free(fullpath); in dfs_umount() 631 char *fullpath; in dfs_statfs() local [all …]
|
| A D | dfs_mnt.c | 59 mnt->fullpath = rt_strdup(path); in dfs_mnt_create() 265 int mnt_len = rt_strlen(mnt->fullpath); in dfs_mnt_lookup() 268 if ((strncmp(mnt->fullpath, fullpath, mnt_len) == 0) && in dfs_mnt_lookup() 269 (mnt_len == 1 || (fullpath[mnt_len] == '\0') || (fullpath[mnt_len] == '/'))) in dfs_mnt_lookup() 276 if ((strncmp(iter->fullpath, fullpath, mnt_len) == 0) && in dfs_mnt_lookup() 277 ((fullpath[mnt_len] == '\0') || (fullpath[mnt_len] == '/'))) in dfs_mnt_lookup() 359 rt_free(mnt->fullpath); in dfs_mnt_unref() 360 mnt->fullpath = RT_NULL; in dfs_mnt_unref() 537 if (mnt) path = mnt->fullpath; in dfs_mnt_get_mounted_path() 596 if (strncmp(mnt->fullpath, fullpath, rt_strlen(fullpath)) == 0) in _mnt_cmp_path() [all …]
|
| A D | dfs_file.c | 401 if (*mnt && fullpath) in dfs_file_realpath() 580 if (fullpath) in dfs_file_open() 819 if (fullpath != NULL) in dfs_file_open() 821 rt_free(fullpath); in dfs_file_open() 1257 if (fullpath) in dfs_file_stat() 1326 if (fullpath) in dfs_file_lstat() 1435 if (fullpath) in dfs_file_setattr() 1690 if (fullpath) in dfs_file_unlink() 1703 if (strcmp(mnt->fullpath, fullpath) != 0) in dfs_file_unlink() 2042 if (fullpath) in dfs_file_readlink() [all …]
|
| A D | dfs_dentry.c | 77 int mntpoint_len = strlen(mnt->fullpath); in _dentry_create() 110 return _dentry_create(mnt, fullpath, RT_FALSE); in dfs_dentry_create() 285 int mntpoint_len = strlen(mnt->fullpath); in dfs_dentry_lookup() 287 if (rt_strncmp(mnt->fullpath, path, mntpoint_len) == 0) in dfs_dentry_lookup() 371 int mnt_len = strlen(dentry->mnt->fullpath); in dfs_dentry_full_path() 432 pathname = rt_strdup(dentry->mnt->fullpath); in dfs_dentry_pathname() 450 char *fullpath = dfs_dentry_full_path(dentry); in dfs_dentry_full_path_crc32() local 451 if (fullpath) in dfs_dentry_full_path_crc32() 455 while(fullpath[i] != '\0') in dfs_dentry_full_path_crc32() 459 crc32 ^= (fullpath[i] & b) ? 1 : 0; in dfs_dentry_full_path_crc32() [all …]
|
| A D | dfs_posix.c | 113 char *fullpath; in openat() local 122 fullpath = (char*)path; in openat() 136 if (!fullpath) in openat() 146 if (fullpath != path) in openat() 148 rt_free(fullpath); in openat() 159 char *fullpath; in utimensat() local 192 if (!fullpath) in utimensat() 1185 char *fullpath; in chdir() local 1208 if (fullpath == NULL) in chdir() 1231 lwp_setcwd(fullpath); in chdir() [all …]
|
| A D | dfs.c | 949 char *fullpath; in dfs_normalize_path() local 984 if (fullpath == NULL) in dfs_normalize_path() 997 if (fullpath == NULL) in dfs_normalize_path() 1002 src = fullpath; in dfs_normalize_path() 1003 dst = fullpath; in dfs_normalize_path() 1073 rt_free(fullpath); in dfs_normalize_path() 1090 if ('\0' == fullpath[0]) in dfs_normalize_path() 1092 fullpath[0] = '/'; in dfs_normalize_path() 1093 fullpath[1] = '\0'; in dfs_normalize_path() 1096 return fullpath; in dfs_normalize_path() [all …]
|
| A D | dfs_file_mmap.c | 148 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_page_fault() 208 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_close() 455 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_split() 498 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in on_varea_merge() 673 LOG_I("file: %s%s", file->dentry->mnt->fullpath, file->dentry->pathname); in dfs_file_mmap() 678 …LOG_E("File mapping is not supported, file: %s%s", file->dentry->mnt->fullpath, file->dentry->path… in dfs_file_mmap() 687 …LOG_E("File mapping support is not enabled, file: %s%s", file->dentry->mnt->fullpath, file->dentry… in dfs_file_mmap()
|
| A D | dfs_pcache.c | 699 aspace->fullpath = rt_strdup(dentry->mnt->fullpath); in _dfs_aspace_create() 804 if (aspace->fullpath) in dfs_aspace_release() 806 rt_free(aspace->fullpath); in dfs_aspace_release() 925 … rt_kprintf("file: %s%s pages: %d\n", aspace->fullpath, aspace->pathname, aspace->pages_count); in dfs_pcache_dump()
|
| /components/libc/posix/libdl/ |
| A D | dlopen.c | 35 char *fullpath; in dlopen() local 43 fullpath = rt_malloc(strlen(def_path) + strlen(filename) + 2); in dlopen() 46 rt_snprintf(fullpath, strlen(def_path) + strlen(filename) + 2, in dlopen() 51 fullpath = (char*)filename; /* absolute path, use it directly */ in dlopen() 57 module = dlmodule_find(fullpath); in dlopen() 67 module = dlmodule_load(fullpath); in dlopen() 70 if(fullpath != filename) in dlopen() 72 rt_free(fullpath); in dlopen()
|
| /components/dfs/dfs_v1/src/ |
| A D | dfs_file.c | 157 char *fullpath = NULL; in dfs_file_is_open() local 171 rt_free(fullpath); in dfs_file_is_open() 188 char *fullpath; in dfs_file_open() local 199 if (fullpath == NULL) in dfs_file_open() 257 vnode->fullpath = fullpath; in dfs_file_open() 487 char *fullpath; in dfs_file_unlink() local 492 if (fullpath == NULL) in dfs_file_unlink() 526 rt_free(fullpath); in dfs_file_unlink() 610 char *fullpath; in dfs_file_stat() local 646 rt_free(fullpath); in dfs_file_stat() [all …]
|
| A D | dfs.c | 493 char *fullpath; in fd_is_open() local 501 if (fullpath != NULL) in fd_is_open() 537 rt_free(fullpath); in fd_is_open() 752 char *fullpath; in dfs_normalize_path() local 780 if (fullpath == NULL) in dfs_normalize_path() 795 src = fullpath; in dfs_normalize_path() 796 dst = fullpath; in dfs_normalize_path() 876 if ('\0' == fullpath[0]) in dfs_normalize_path() 878 fullpath[0] = '/'; in dfs_normalize_path() 879 fullpath[1] = '\0'; in dfs_normalize_path() [all …]
|
| A D | dfs_posix.c | 97 char *fullpath; in openat() local 106 fullpath = (char*)path; in openat() 119 fullpath = dfs_normalize_path(d->vnode->fullpath, path); in openat() 120 if (!fullpath) in openat() 130 if (fullpath != path) in openat() 132 rt_free(fullpath); in openat() 924 char *fullpath; in chdir() local 946 if (fullpath == NULL) in chdir() 954 d = opendir(fullpath); in chdir() 968 lwp_setcwd(fullpath); in chdir() [all …]
|
| A D | dfs_fs.c | 223 char *fullpath = NULL; in dfs_mount() local 264 fullpath = dfs_normalize_path(NULL, path); in dfs_mount() 265 if (fullpath == NULL) /* not an abstract path */ in dfs_mount() 272 if ((strcmp(fullpath, "/") != 0) && (strcmp(fullpath, "/dev") != 0)) in dfs_mount() 279 rt_free(fullpath); in dfs_mount() 313 fs->path = fullpath; in dfs_mount() 355 rt_free(fullpath); in dfs_mount() 369 char *fullpath; in dfs_unmount() local 374 if (fullpath == NULL) in dfs_unmount() 413 rt_free(fullpath); in dfs_unmount() [all …]
|
| /components/dfs/dfs_v2/include/ |
| A D | dfs_mnt.h | 33 char *fullpath; /* the fullpath of this mounted file system */ member 68 rt_bool_t dfs_mnt_has_child_mnt(struct dfs_mnt *mnt, const char* fullpath);
|
| A D | dfs_dentry.h | 43 struct dfs_dentry *dfs_dentry_create(struct dfs_mnt *mnt, char *fullpath);
|
| A D | dfs_pcache.h | 71 char *fullpath, *pathname; /* Full path and relative path strings */ member
|
| A D | dfs_file.h | 198 char *dfs_file_realpath(struct dfs_mnt **mnt, const char *fullpath, int mode);
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | proc_mounts.c | 41 dfs_seq_printf(seq, "%s %s %s %s 0 0\n", mnt->dev_id->parent.name, mnt->fullpath, in mnt_show() 46 dfs_seq_printf(seq, "%s %s %s %s 0 0\n", mnt->fs_ops->name, mnt->fullpath, in mnt_show()
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devfs.c | 53 …rt_snprintf(device_name, DFS_PATH_MAX, "%s%s", de->mnt->fullpath + sizeof("/dev") - 1, de->pathnam… in dfs_devfs_open() 462 static void dfs_devfs_mkdir(const char *fullpath, mode_t mode) in dfs_devfs_mkdir() argument 464 int len = rt_strlen(fullpath); in dfs_devfs_mkdir() 471 rt_strcpy(path, fullpath); in dfs_devfs_mkdir()
|
| /components/dfs/dfs_v1/include/ |
| A D | dfs_file.h | 45 char *fullpath; /* Full path is hash key */ member
|
| /components/dfs/dfs_v2/filesystems/ptyfs/ |
| A D | ptyfs.c | 237 return sb->mount->fullpath + 5; in ptyfs_get_rootpath() 333 if (strncmp(mnt->fullpath, DEVFS_PREFIX, DEVFS_PREFIX_LEN) != 0) in ptyfs_ops_mount() 346 rc = lwp_ptmx_init(ptmx_device, mnt->fullpath + DEVFS_PREFIX_LEN); in ptyfs_ops_mount()
|