Home
last modified time | relevance | path

Searched refs:fullpath (Results 1 – 25 of 29) sorted by relevance

12

/kernel/liteos_a/fs/vfs/operation/
Dfullpath.c82 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 …]
Dvfs_other.c154 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 …]
Dvfs_utime.c53 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/
Dfullpath.c72 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 …]
Dvfs_shellcmd.c72 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/
Dvfs_shellcmd.c80 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/
Dcifs_dfs_ref.c136 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()
Ddfs_cache.c50 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 …]
Ddfs_cache.h48 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/
Ddate_shellcmd.c232 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()
Ddmesg.c654 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/
Dsyscall_pub.c63 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()
Dfs_syscall.c2374 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 …]
Dsyscall_pub.h45 extern int GetFullpath(int fd, const char *path, char **fullpath);
Dlos_syscall.h215 extern int fp_open(char *fullpath, int oflags, mode_t mode);
/kernel/linux/linux-5.10/scripts/dtc/
Ddtc.c36 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths()
45 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
Dchecks.c94 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 …]
Dlivetree.c849 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()
Ddtc.h190 char *fullpath; member
/kernel/liteos_m/components/shell/
DBUILD.gn41 "src/cmds/fullpath.c",
/kernel/liteos_a/fs/vfs/
DBUILD.gn39 "operation/fullpath.c",
Dvnode.c478 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/
Dvnode.h172 int VnodeLookupFullpath(const char *fullpath, struct Vnode **vnode, uint32_t flags);
/kernel/liteos_a/kernel/common/
Dconsole.c263 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/
Dtest_offload.py341 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)

12