Home
last modified time | relevance | path

Searched refs:fullpath (Results 1 - 25 of 35) sorted by relevance

12

/kernel/liteos_a/fs/vfs/operation/
H A 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 in vfs_not_absolute_path()
215 char *fullpath = NULL; vfs_normalize_fullpath() local
246 char *fullpath = NULL; vfs_normalize_path() local
309 char *fullpath = NULL; vfs_normalize_pathat() local
[all...]
H A 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, strle in ls_get_fullpath()
580 char *fullpath = NULL; LsDir() local
[all...]
H A 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/
H A 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 in VfsNotAbsolutePath()
203 CHAR *fullpath = NULL; VfsNormalizeFullpath() local
234 CHAR *fullpath = NULL; VfsNormalizePath() local
[all...]
H A 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, pathLe in OsLsGetFullpath()
161 CHAR *fullpath = NULL; OsLs() local
220 CHAR *fullpath = NULL; OsShellCmdLs() local
263 CHAR *fullpath = NULL; OsShellCmdCat() local
308 CHAR *fullpath = NULL; OsShellCmdMkdir() local
355 CHAR *fullpath = NULL; OsShellCmdTouch() local
526 CHAR *fullpath = NULL; OsShellCmdDoRmdir() local
630 OsRmFileOnly(const CHAR *fullpath) OsRmFileOnly() argument
649 OsWildcardDeleteFileOrDir(const CHAR *fullpath, wildcard_type mark) OsWildcardDeleteFileOrDir() argument
676 OsWildcardSplitPath(CHAR *fullpath, CHAR **handle, CHAR **wait) OsWildcardSplitPath() argument
706 OsWildcardExtractDirectory(CHAR *fullpath, VOID *dst, wildcard_type mark) OsWildcardExtractDirectory() argument
904 CHAR *fullpath = NULL; OsShellCmdRm() local
947 CHAR *fullpath = NULL; OsShellCmdRmdir() local
[all...]
/kernel/liteos_a/fs/vfs/vfs_cmd/
H A 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; osShellCmdDoCatShow() local
223 char *fullpath = NULL; osShellCmdCat() local
302 char *fullpath = NULL; osShellCmdMount() local
408 char *fullpath = NULL; osShellCmdUmount() local
451 char *fullpath = NULL; osShellCmdMkdir() local
517 char *fullpath = NULL; osShellCmdStatfs() local
556 char *fullpath = NULL; osShellCmdTouch() local
741 char *fullpath = NULL; os_shell_cmd_do_rmdir() local
848 os_wildcard_delete_file_or_dir(const char *fullpath, wildcard_type mark) os_wildcard_delete_file_or_dir() argument
877 os_wildcard_split_path(char *fullpath, char **handle, char **wait) os_wildcard_split_path() argument
907 os_wildcard_extract_directory(char *fullpath, void *dst, wildcard_type mark) os_wildcard_extract_directory() argument
1102 char *fullpath = NULL; osShellCmdRm() local
1144 char *fullpath = NULL; osShellCmdRmdir() local
1240 char *fullpath = NULL; osShellCmdChmod() local
1284 char *fullpath = NULL; osShellCmdChown() local
1335 char *fullpath = NULL; osShellCmdChgrp() local
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dcifs_dfs_ref.c125 * @fullpath: full path in UNC format
136 const char *fullpath, in cifs_compose_mount_options()
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()
260 * Always pass down @fullpath to smb3_do_mount() so we can use the root server
265 * @fullpath: full path in UNC format
269 const char *fullpath) in cifs_dfs_do_mount()
275 devname = kstrndup(fullpath, strlen(fullpath), GFP_KERNE in cifs_dfs_do_mount()
135 cifs_compose_mount_options(const char *sb_mountdata, const char *fullpath, const struct dfs_info3_param *ref, char **devname) cifs_compose_mount_options() argument
267 cifs_dfs_do_mount(struct dentry *mntpt, struct cifs_sb_info *cifs_sb, const char *fullpath) cifs_dfs_do_mount() argument
[all...]
H A Ddfs_cache.c50 char *fullpath; member
587 kfree(vi->fullpath); in __vol_release()
1207 * @fullpath: origin full path.
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_KERNE in dfs_cache_add_vol()
1253 find_vol(const char *fullpath) find_vol() argument
1273 dfs_cache_update_vol(const char *fullpath, struct TCP_Server_Info *server) dfs_cache_update_vol() argument
1307 dfs_cache_del_vol(const char *fullpath) dfs_cache_del_vol() argument
[all...]
H A 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/syscall/
H A 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()
H A 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...]
H A Dsyscall_pub.h45 extern int GetFullpath(int fd, const char *path, char **fullpath);
/kernel/liteos_a/shell/full/src/cmds/
H A 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()
H A 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/linux/linux-5.10/scripts/dtc/
H A Ddtc.c36 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths()
45 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
H A 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...]
H A 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()
H A Ddtc.h190 char *fullpath; member
/kernel/linux/linux-6.6/scripts/dtc/
H A Ddtc.c36 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths()
45 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
H A 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()
435 ((prop) ? "' in " : ""), (node)->fullpath
560 phandle, other->fullpath); in check_explicit_phandles()
658 path = refnode->fullpath; in fixup_path_references()
811 ranges, c_addr_cells, node->parent->fullpath, in check_ranges_format()
816 ranges, c_size_cells, node->parent->fullpath, in check_ranges_format()
1285 FAIL(c, dti, childb, "duplicate unit-address (also used in node %s)", childa->fullpath); in check_unique_unit_address_common()
1449 provider_node->fullpath, in check_property_phandle_args()
[all...]
H A Dlivetree.c876 data_copy_escape_string(node->fullpath, in generate_label_tree_internal()
877 strlen(node->fullpath)), in generate_label_tree_internal()
929 if (strchr(node->fullpath, ':') || strchr(prop->name, ':')) in add_fixup_entry()
933 node->fullpath, prop->name, m->offset); in add_fixup_entry()
/kernel/liteos_a/fs/vfs/include/
H A Dvnode.h172 int VnodeLookupFullpath(const char *fullpath, struct Vnode **vnode, uint32_t flags);
/kernel/liteos_a/fs/vfs/
H A 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()
613 When we have devfs, we can get a fullpath. */ in VnodeCreate()
/kernel/liteos_a/kernel/common/
H A 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/
H A 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)

Completed in 29 milliseconds

12