Home
last modified time | relevance | path

Searched refs:tmp_path (Results 1 - 25 of 29) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/nftw/
H A Dlib64.c32 static char *tmp_path = "./tmp"; variable
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
72 if ((name_length = pathconf(tmp_path, _PC_NAME_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
140 strcpy(buffer, tmp_path); in test_long_file_name()
162 strcpy(buffer, tmp_path); in test_long_component_name()
183 if ((pcPathMax = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in test_ENAMETOOLONG_path()
191 tmp_path, pcPathMax); in test_ENAMETOOLONG_path()
200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path()
209 tmpPtr += sprintf(tmpPtr, "/%s", tmp_path); in test_ENAMETOOLONG_path()
[all...]
H A Dlib.c32 static char *tmp_path = "./tmp"; variable
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
72 if ((name_length = pathconf(tmp_path, _PC_NAME_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
140 strcpy(buffer, tmp_path); in test_long_file_name()
162 strcpy(buffer, tmp_path); in test_long_component_name()
183 if ((pcPathMax = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in test_ENAMETOOLONG_path()
191 tmp_path, pcPathMax); in test_ENAMETOOLONG_path()
200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path()
209 tmpPtr += sprintf(tmpPtr, "/%s", tmp_path); in test_ENAMETOOLONG_path()
[all...]
/third_party/node/deps/v8/gni/
H A Dprotoc.py29 tmp_path = os.path.join(tempfile.gettempdir(), str(uuid.uuid4()))
32 tmp_path
37 with open(tmp_path, 'rb') as tmp_rd:
40 if os.path.exists(tmp_path):
41 os.unlink(tmp_path)
/third_party/node/deps/uv/src/unix/
H A Dlinux-inotify.c95 char* tmp_path; in uv__inotify_fork() local
120 tmp_path = uv__strdup(handle->path); in uv__inotify_fork()
121 assert(tmp_path != NULL); in uv__inotify_fork()
127 handle->path = tmp_path; in uv__inotify_fork()
138 tmp_path = handle->path; in uv__inotify_fork()
140 err = uv_fs_event_start(handle, handle->cb, tmp_path, 0); in uv__inotify_fork()
141 uv__free(tmp_path); in uv__inotify_fork()
/third_party/icu/vendor/double-conversion/
H A Dpull-from-upstream.sh35 tmp_path="$patch_root_tmp/$2.patch";
36 diff -u "$old_vendor_path" "$icu4c_path" > "$tmp_path";
38 patch --merge "$icu4c_path" < "$tmp_path";
/third_party/selinux/libselinux/src/
H A Dmatchpathcon.c387 char *tmp_path, *p; in realpath_not_final() local
391 tmp_path = strdup(name); in realpath_not_final()
392 if (!tmp_path) { in realpath_not_final()
399 last_component = strrchr(tmp_path, '/'); in realpath_not_final()
401 if (last_component == tmp_path) { in realpath_not_final()
407 p = realpath(tmp_path, resolved_path); in realpath_not_final()
409 last_component = tmp_path; in realpath_not_final()
434 free(tmp_path); in realpath_not_final()
/third_party/python/Lib/test/test_peg_generator/
H A Dtest_c_parser.py98 self.tmp_path = tempfile.mkdtemp(dir=self.tmp_base)
99 self.enterContext(os_helper.change_cwd(self.tmp_path))
103 shutil.rmtree(self.tmp_path)
119 TEST_TEMPLATE.format(extension_path=self.tmp_path, test_source=test_source),
/third_party/node/tools/gyp/pylib/gyp/
H A Dcommon.py360 tmp_fd, self.tmp_path = tempfile.mkstemp(
369 os.unlink(self.tmp_path)
383 same = filecmp.cmp(self.tmp_path, filename, False)
391 os.unlink(self.tmp_path)
407 os.chmod(self.tmp_path, 0o666 & ~umask)
413 os.rename(self.tmp_path, filename)
416 os.unlink(self.tmp_path)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dcommon.py353 tmp_fd, self.tmp_path = tempfile.mkstemp(
362 os.unlink(self.tmp_path)
376 same = filecmp.cmp(self.tmp_path, filename, False)
384 os.unlink(self.tmp_path)
400 os.chmod(self.tmp_path, 0o666 & ~umask)
406 os.rename(self.tmp_path, filename)
409 os.unlink(self.tmp_path)
/third_party/ltp/lib/
H A Dtst_device.c526 char tmp_path[PATH_MAX]; in tst_find_backing_dev() local
535 strncpy(tmp_path, path, PATH_MAX-1); in tst_find_backing_dev()
536 tmp_path[PATH_MAX-1] = '\0'; in tst_find_backing_dev()
538 dirname(tmp_path); in tst_find_backing_dev()
547 fd = SAFE_OPEN(NULL, tmp_path, O_DIRECTORY); in tst_find_backing_dev()
565 tst_brkm(TBROK | TERRNO, NULL, "BTRFS ioctl on %s failed.", tmp_path); in tst_find_backing_dev()
/third_party/elfutils/debuginfod/
H A Ddebuginfod-client.c1925 char *tmp_path = NULL; in debuginfod_find_section() local
1927 fd = debuginfod_find_debuginfo (client, build_id, build_id_len, &tmp_path); in debuginfod_find_section()
1935 free (tmp_path); in debuginfod_find_section()
1941 rc = extract_section (fd, section, tmp_path, path); in debuginfod_find_section()
1949 build_id_len, &tmp_path); in debuginfod_find_section()
1952 rc = extract_section (fd, section, tmp_path, path); in debuginfod_find_section()
1957 free (tmp_path); in debuginfod_find_section()
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dfile_merge.c739 char *tmp_path = kstrdup(path_value, GFP_KERNEL); in create_dir_recursive() local
740 char *p = tmp_path; in create_dir_recursive()
742 if (!tmp_path) in create_dir_recursive()
751 err = create_dir(tmp_path, mode); in create_dir_recursive()
759 kfree(tmp_path); in create_dir_recursive()
H A Dhmdfs_server.c2092 char *tmp_path = NULL; in hmdfs_server_get_drop_push() local
2104 tmp_path = kzalloc(PATH_MAX, GFP_KERNEL); in hmdfs_server_get_drop_push()
2105 if (!tmp_path) in hmdfs_server_get_drop_push()
2107 snprintf(tmp_path, PATH_MAX, "/" DEVICE_VIEW_ROOT "/%s%s", in hmdfs_server_get_drop_push()
2110 err = vfs_path_lookup(root_path.dentry, root_path.mnt, tmp_path, 0, in hmdfs_server_get_drop_push()
2120 kfree(tmp_path); in hmdfs_server_get_drop_push()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dfile_merge.c744 char *tmp_path = kstrdup(path_value, GFP_KERNEL); in create_dir_recursive() local
745 char *p = tmp_path; in create_dir_recursive()
747 if (!tmp_path) in create_dir_recursive()
756 err = create_dir(tmp_path, mode); in create_dir_recursive()
764 kfree(tmp_path); in create_dir_recursive()
H A Dhmdfs_server.c2092 char *tmp_path = NULL; in hmdfs_server_get_drop_push() local
2104 tmp_path = kzalloc(PATH_MAX, GFP_KERNEL); in hmdfs_server_get_drop_push()
2105 if (!tmp_path) in hmdfs_server_get_drop_push()
2107 snprintf(tmp_path, PATH_MAX, "/" DEVICE_VIEW_ROOT "/%s%s", in hmdfs_server_get_drop_push()
2110 err = vfs_path_lookup(root_path.dentry, root_path.mnt, tmp_path, 0, in hmdfs_server_get_drop_push()
2120 kfree(tmp_path); in hmdfs_server_get_drop_push()
/third_party/libinput/tools/
H A Dtest_tool_option_parsing.py325 def recording(tmp_path):
326 return str((tmp_path / "record.out").resolve())
/kernel/linux/linux-5.10/security/apparmor/
H A Dmount.c528 struct path tmp_path, *dev_path = NULL; in aa_new_mount() local
547 error = kern_path(dev_name, LOOKUP_FOLLOW, &tmp_path); in aa_new_mount()
550 dev_path = &tmp_path; in aa_new_mount()
/kernel/linux/linux-6.6/security/apparmor/
H A Dmount.c544 struct path tmp_path, *dev_path = NULL; in aa_new_mount() local
563 error = kern_path(dev_name, LOOKUP_FOLLOW, &tmp_path); in aa_new_mount()
566 dev_path = &tmp_path; in aa_new_mount()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dwpa_debug.c151 char *tmp2, *tmp_path, *fstype; in wpa_debug_open_linux_tracing() local
154 tmp_path = strtok_r(NULL, " ", &tmp2); in wpa_debug_open_linux_tracing()
157 path = tmp_path; in wpa_debug_open_linux_tracing()
/third_party/libuv/src/unix/
H A Dlinux.c2387 char* tmp_path; in uv__inotify_fork() local
2414 tmp_path = uv__strdup(handle->path); in uv__inotify_fork()
2415 assert(tmp_path != NULL); in uv__inotify_fork()
2421 handle->path = tmp_path; in uv__inotify_fork()
2432 tmp_path = handle->path; in uv__inotify_fork()
2434 err = uv_fs_event_start(handle, handle->cb, tmp_path, 0); in uv__inotify_fork()
2435 uv__free(tmp_path); in uv__inotify_fork()
/third_party/libdrm/
H A Dxf86drm.c4079 char *value, *tmp_path, *slash; in drm_usb_dev_path() local
4099 tmp_path = realpath(path, NULL); in drm_usb_dev_path()
4100 if (!tmp_path) in drm_usb_dev_path()
4103 slash = strrchr(tmp_path, '/'); in drm_usb_dev_path()
4105 free(tmp_path); in drm_usb_dev_path()
4111 if (snprintf(path, len, "%s", tmp_path) >= (int)len) { in drm_usb_dev_path()
4112 free(tmp_path); in drm_usb_dev_path()
4116 free(tmp_path); in drm_usb_dev_path()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dwpa_debug.c158 char *tmp2, *tmp_path, *fstype; in wpa_debug_open_linux_tracing() local
161 tmp_path = strtok_r(NULL, " ", &tmp2); in wpa_debug_open_linux_tracing()
164 path = tmp_path; in wpa_debug_open_linux_tracing()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dsend.c892 struct btrfs_path *tmp_path; in iterate_inode_ref() local
911 tmp_path = alloc_path_for_send(); in iterate_inode_ref()
912 if (!tmp_path) { in iterate_inode_ref()
948 start = btrfs_ref_to_path(root, tmp_path, name_len, in iterate_inode_ref()
961 start = btrfs_ref_to_path(root, tmp_path, in iterate_inode_ref()
987 btrfs_free_path(tmp_path); in iterate_inode_ref()
1316 struct btrfs_path *tmp_path; in find_extent_clone() local
1321 tmp_path = alloc_path_for_send(); in find_extent_clone()
1322 if (!tmp_path) in find_extent_clone()
1326 tmp_path in find_extent_clone()
[all...]
/third_party/python/Lib/test/
H A Dtest_runpy.py766 def tmp_path(*args, **kwargs): member in TestExit
772 with self.tmp_path() as tmp:
/third_party/python/Lib/
H A Dmailbox.py363 tmp_path = os.path.join(self._path, temp_subpath)
366 os.utime(tmp_path,
367 (os.path.getatime(tmp_path), message.get_date()))
371 os.rename(tmp_path, new_path)

Completed in 38 milliseconds

12