/kernel/liteos_a/fs/vfs/operation/ |
D | fullpath.c | 82 static void str_remove_path_end_slash(char *dest, const char *fullpath) in str_remove_path_end_slash() argument 88 if ((dest != fullpath) && (*dest == '/')) { in str_remove_path_end_slash() 93 static char *str_normalize_path(char *fullpath) in str_normalize_path() argument 95 char *dest = fullpath; in str_normalize_path() 96 char *src = fullpath; in str_normalize_path() 123 if ((dest - 1) != fullpath) { in str_normalize_path() 127 while ((dest > fullpath) && (*(dest - 1) != '/')) { in str_normalize_path() 142 str_remove_path_end_slash(dest, fullpath); in str_normalize_path() 184 char *fullpath = NULL; in vfs_not_absolute_path() local 192 fullpath = (char *)malloc(strlen(directory) + namelen + 2); in vfs_not_absolute_path() [all …]
|
D | vfs_other.c | 154 char *fullpath = NULL; in chdir() local 173 ret = vfs_normalize_path((const char *)NULL, path, &fullpath); in chdir() 178 fullpath_bak = fullpath; in chdir() 179 ret = stat(fullpath, &statBuff); in chdir() 198 ret = SetWorkDir(fullpath, strlen(fullpath)); in chdir() 444 char *fullpath = NULL; in ls_get_fullpath() local 449 fullpath = (char *)malloc(strlen(path) + strlen(pdirent->d_name) + 2); in ls_get_fullpath() 450 if (fullpath == NULL) { in ls_get_fullpath() 455 ret = snprintf_s(fullpath, strlen(path) + strlen(pdirent->d_name) + 2, in ls_get_fullpath() 458 free(fullpath); in ls_get_fullpath() [all …]
|
D | vfs_utime.c | 53 char *fullpath = NULL; in utime() local 70 ret = vfs_normalize_path((const char *)NULL, path, &fullpath); in utime() 77 ret = VnodeLookup(fullpath, &vnode, 0); in utime() 113 free(fullpath); in utime() 120 free(fullpath); in utime()
|
/kernel/liteos_m/components/shell/src/cmds/ |
D | fullpath.c | 72 STATIC VOID StrRemovePathEndSlash(CHAR *dest, const CHAR *fullpath) in StrRemovePathEndSlash() argument 78 if ((dest != fullpath) && (*dest == '/')) { in StrRemovePathEndSlash() 83 STATIC CHAR *StrNormalizePath(CHAR *fullpath) in StrNormalizePath() argument 85 CHAR *dest = fullpath; in StrNormalizePath() 86 CHAR *src = fullpath; in StrNormalizePath() 112 if ((dest - 1) != fullpath) { in StrNormalizePath() 116 while ((dest > fullpath) && (*(dest - 1) != '/')) { in StrNormalizePath() 131 StrRemovePathEndSlash(dest, fullpath); in StrNormalizePath() 173 CHAR *fullpath = NULL; in VfsNotAbsolutePath() local 181 fullpath = (CHAR *)malloc(strlen(directory) + namelen + 2); /* 2, size of "./" */ in VfsNotAbsolutePath() [all …]
|
D | vfs_shellcmd.c | 72 CHAR *fullpath = NULL; in OsShellCmdDoChdir() local 90 ret = VfsNormalizePath(shellWorkingDirectory, path, &fullpath); in OsShellCmdDoChdir() 93 fullpathBak = fullpath; in OsShellCmdDoChdir() 94 dirent = opendir(fullpath); in OsShellCmdDoChdir() 107 ret = strncpy_s(shellWorkingDirectory, PATH_MAX, fullpath, strlen(fullpath)); in OsShellCmdDoChdir() 122 CHAR *fullpath = NULL; in OsLsGetFullpath() local 128 fullpath = (CHAR *)malloc(pathLen); in OsLsGetFullpath() 129 if (fullpath == NULL) { in OsLsGetFullpath() 133 ret = snprintf_s(fullpath, pathLen, pathLen - 1, "%s/%s", path, pdirent->d_name); in OsLsGetFullpath() 135 free(fullpath); in OsLsGetFullpath() [all …]
|
/kernel/liteos_a/fs/vfs/vfs_cmd/ |
D | vfs_shellcmd.c | 80 char *fullpath = NULL; in osShellCmdDoChdir() local 98 ret = vfs_normalize_path(shell_working_directory, path, &fullpath); in osShellCmdDoChdir() 101 fullpath_bak = fullpath; in osShellCmdDoChdir() 102 ret = chdir(fullpath); in osShellCmdDoChdir() 112 ret = strncpy_s(shell_working_directory, PATH_MAX, fullpath, strlen(fullpath)); in osShellCmdDoChdir() 128 char *fullpath = NULL; in osShellCmdLs() local 144 ret = vfs_normalize_path(shell_working_directory, filename, &fullpath); in osShellCmdLs() 147 ls(fullpath); in osShellCmdLs() 148 free(fullpath); in osShellCmdLs() 176 char *fullpath = (char *)arg; in osShellCmdDoCatShow() local [all …]
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifs_dfs_ref.c | 136 const char *fullpath, in cifs_compose_mount_options() argument 157 if (strlen(fullpath) - ref->path_consumed) { in cifs_compose_mount_options() 158 prepath = fullpath + ref->path_consumed; in cifs_compose_mount_options() 171 name = cifs_build_devname((char *)fullpath, NULL); in cifs_compose_mount_options() 269 const char *fullpath) in cifs_dfs_do_mount() argument 275 devname = kstrndup(fullpath, strlen(fullpath), GFP_KERNEL); in cifs_dfs_do_mount() 283 fullpath + 1, NULL, NULL); in cifs_dfs_do_mount()
|
D | dfs_cache.c | 50 char *fullpath; member 587 kfree(vi->fullpath); in __vol_release() 1211 int dfs_cache_add_vol(char *mntdata, struct smb_vol *vol, const char *fullpath) in dfs_cache_add_vol() argument 1216 if (!vol || !fullpath || !mntdata) in dfs_cache_add_vol() 1219 cifs_dbg(FYI, "%s: fullpath: %s\n", __func__, fullpath); in dfs_cache_add_vol() 1225 vi->fullpath = kstrndup(fullpath, strlen(fullpath), GFP_KERNEL); in dfs_cache_add_vol() 1226 if (!vi->fullpath) { in dfs_cache_add_vol() 1246 kfree(vi->fullpath); in dfs_cache_add_vol() 1253 static struct vol_info *find_vol(const char *fullpath) in find_vol() argument 1258 cifs_dbg(FYI, "%s: vi->fullpath: %s\n", __func__, vi->fullpath); in find_vol() [all …]
|
D | dfs_cache.h | 48 const char *fullpath); 49 extern int dfs_cache_update_vol(const char *fullpath, 51 extern void dfs_cache_del_vol(const char *fullpath);
|
/kernel/liteos_a/shell/full/src/cmds/ |
D | date_shellcmd.c | 232 CHAR *fullpath = NULL; in OsViewFileTime() local 237 ret = vfs_normalize_path(shellWorkingDirectory, filename, &fullpath); in OsViewFileTime() 244 if (stat(fullpath, &statBuf) != 0) { in OsViewFileTime() 246 free(fullpath); in OsViewFileTime() 250 free(fullpath); in OsViewFileTime()
|
D | dmesg.c | 654 INT32 OsDmesgWrite2File(const CHAR *fullpath, const CHAR *buf, UINT32 logSize) in OsDmesgWrite2File() argument 658 INT32 fd = open(fullpath, O_CREAT | O_RDWR | O_APPEND, 0644); /* 0644:file right */ in OsDmesgWrite2File() 670 CHAR *fullpath = NULL; in LOS_DmesgToFile() local 689 ret = vfs_normalize_path(shellWorkingDirectory, filename, &fullpath); in LOS_DmesgToFile() 715 ret = OsDmesgWrite2File(fullpath, buf, logSize); in LOS_DmesgToFile() 719 free(fullpath); in LOS_DmesgToFile()
|
/kernel/liteos_a/syscall/ |
D | syscall_pub.c | 63 int GetFullpath(int fd, const char *path, char **fullpath) in GetFullpath() argument 78 *fullpath = pathRet; in GetFullpath() 100 ret = vfs_normalize_pathat(fd, pathRet, fullpath); in GetFullpath()
|
D | fs_syscall.c | 2374 char *fullpath = NULL; in SysFchmodat() local 2392 ret = vfs_normalize_pathat(fd, pathRet, &fullpath); in SysFchmodat() 2397 ret = chattr(fullpath, &attr); in SysFchmodat() 2404 PointerFree(fullpath); in SysFchmodat() 2440 char *fullpath = NULL; in SysFchownat() local 2445 ret = GetFullpath(fd, path, &fullpath); in SysFchownat() 2459 ret = chattr(fullpath, &attr); in SysFchownat() 2465 PointerFree(fullpath); in SysFchownat() 2533 char *fullpath = NULL; in SysFstatat64() local 2547 ret = vfs_normalize_pathat(dirfd, pathRet, &fullpath); in SysFstatat64() [all …]
|
D | syscall_pub.h | 45 extern int GetFullpath(int fd, const char *path, char **fullpath);
|
D | los_syscall.h | 215 extern int fp_open(char *fullpath, int oflags, mode_t mode);
|
/kernel/linux/linux-5.10/scripts/dtc/ |
D | dtc.c | 36 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths() 45 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
|
D | checks.c | 94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg() 96 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg() 138 TRACE(c, "%s", node->fullpath); in check_nodes_props() 412 ((prop) ? "' in " : ""), (node)->fullpath 537 phandle, other->fullpath); in check_explicit_phandles() 635 path = refnode->fullpath; in fixup_path_references() 790 ranges, c_addr_cells, node->parent->fullpath, in check_ranges_format() 795 ranges, c_size_cells, node->parent->fullpath, in check_ranges_format() 1264 FAIL(c, dti, childb, "duplicate unit-address (also used in node %s)", childa->fullpath); in check_unique_unit_address_common() 1427 provider_node->fullpath, in check_property_phandle_args() [all …]
|
D | livetree.c | 849 data_copy_escape_string(node->fullpath, in generate_label_tree_internal() 850 strlen(node->fullpath)), in generate_label_tree_internal() 896 if (strchr(node->fullpath, ':') || strchr(prop->name, ':')) in add_fixup_entry() 900 node->fullpath, prop->name, m->offset); in add_fixup_entry()
|
D | dtc.h | 190 char *fullpath; member
|
/kernel/liteos_m/components/shell/ |
D | BUILD.gn | 41 "src/cmds/fullpath.c",
|
/kernel/liteos_a/fs/vfs/ |
D | BUILD.gn | 39 "operation/fullpath.c",
|
D | vnode.c | 478 int VnodeLookupFullpath(const char *fullpath, struct Vnode **vnode, uint32_t flags) in VnodeLookupFullpath() argument 480 return VnodeLookupAt(fullpath, vnode, flags, GetCurrRootVnode()); in VnodeLookupFullpath()
|
/kernel/liteos_a/fs/vfs/include/ |
D | vnode.h | 172 int VnodeLookupFullpath(const char *fullpath, struct Vnode **vnode, uint32_t flags);
|
/kernel/liteos_a/kernel/common/ |
D | console.c | 263 STATIC INT32 OsConsoleFullpathToID(const CHAR *fullpath) in OsConsoleFullpathToID() argument 270 if (fullpath == NULL) { in OsConsoleFullpathToID() 274 len = strlen(fullpath); in OsConsoleFullpathToID() 276 (!strncmp(fullpath, CONSOLE_SERIAL_1, strlen(CONSOLE_SERIAL_1)))) { in OsConsoleFullpathToID() 281 (!strncmp(fullpath, CONSOLE_TELNET_2, strlen(CONSOLE_TELNET_2)))) { in OsConsoleFullpathToID()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_offload.py | 341 fullpath = os.path.join("/sys/bus/netdevsim/", path) 343 with open(fullpath, "w") as f: 346 log("WRITE %s: %r" % (fullpath, val), -e.errno) 348 log("WRITE %s: %r" % (fullpath, val), 0)
|