Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 1656) sorted by relevance

12345678910>>...67

/f-stack/freebsd/netpfil/pf/
H A Dpf_ruleset.c84 int c = strcmp(a->path, b->path); in pf_kanchor_compare()
127 strlcpy(key->path, path, sizeof(key->path)); in pf_find_kanchor()
153 path++; in pf_find_kruleset()
154 if (!*path) in pf_find_kruleset()
173 path++; in pf_find_or_create_kruleset()
214 strlcpy(anchor->path, parent->path, in pf_find_or_create_kruleset()
216 strlcat(anchor->path, "/", sizeof(anchor->path)); in pf_find_or_create_kruleset()
218 strlcat(anchor->path, anchor->name, sizeof(anchor->path)); in pf_find_or_create_kruleset()
223 anchor->path, anchor->name, dup->path, dup->name); in pf_find_or_create_kruleset()
306 strlcpy(path, s->anchor->path, MAXPATHLEN); in pf_kanchor_setup()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zcommon/
H A Dzfs_namecheck.c70 get_dataset_depth(const char *path) in get_dataset_depth() argument
72 const char *loc = path; in get_dataset_depth()
108 if (path[0] == '\0') { in zfs_component_namecheck()
114 for (loc = path; *loc; loc++) { in zfs_component_namecheck()
143 if (path[0] != '@') { in permset_namecheck()
146 *what = path[0]; in permset_namecheck()
198 if (path[0] == '/') { in entity_namecheck()
204 if (path[0] == '\0') { in entity_namecheck()
210 const char *start = path; in entity_namecheck()
373 if (path == NULL || *path != '/') { in mountpoint_namecheck()
[all …]
/f-stack/freebsd/sys/
H A Dkernel.h322 (path), \
329 #define TUNABLE_INT_FETCH(path, var) getenv_int((path), (var)) argument
341 (path), \
348 #define TUNABLE_LONG_FETCH(path, var) getenv_long((path), (var)) argument
360 (path), \
379 (path), \
398 (path), \
417 (path), \
424 #define TUNABLE_QUAD_FETCH(path, var) getenv_quad((path), (var)) argument
436 (path), \
[all …]
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_lcore.c29 char path[PATH_MAX]; in eal_cpu_detected() local
30 int len = snprintf(path, sizeof(path), SYS_CPU_DIR in eal_cpu_detected()
32 if (len <= 0 || (unsigned)len >= sizeof(path)) in eal_cpu_detected()
34 if (access(path, F_OK) != 0) in eal_cpu_detected()
53 char path[PATH_MAX]; in eal_cpu_socket_id() local
55 snprintf(path, sizeof(path), "%s/node%u/cpu%u", NUMA_NODE_PATH, in eal_cpu_socket_id()
57 if (access(path, F_OK) == 0) in eal_cpu_socket_id()
67 char path[PATH_MAX]; in eal_cpu_core_id() local
70 int len = snprintf(path, sizeof(path), SYS_CPU_DIR "/%s", lcore_id, CORE_ID_FILE); in eal_cpu_core_id()
71 if (len <= 0 || (unsigned)len >= sizeof(path)) in eal_cpu_core_id()
[all …]
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_dav_module.c30 ngx_str_t path; member
52 ngx_str_t *path);
235 path.len--; in ngx_http_dav_put_handler()
710 if (copy.path.data[copy.path.len - 1] == '/') { in ngx_http_dav_copy_move_handler()
713 copy.path.data[copy.path.len] = '\0'; in ngx_http_dav_copy_move_handler()
871 len = copy->path.len + path->len; in ngx_http_dav_copy_dir()
878 p = ngx_cpymem(dir, copy->path.data, copy->path.len); in ngx_http_dav_copy_dir()
907 len = copy->path.len + path->len; in ngx_http_dav_copy_dir_time()
914 p = ngx_cpymem(dir, copy->path.data, copy->path.len); in ngx_http_dav_copy_dir_time()
972 len = copy->path.len + path->len; in ngx_http_dav_copy_tree_file()
[all …]
H A Dngx_http_random_index_module.c80 ngx_str_t path, uri, *name; in ngx_http_random_index_handler() local
106 last = ngx_http_map_uri_to_path(r, &path, &root, len); in ngx_http_random_index_handler()
111 allocated = path.len; in ngx_http_random_index_handler()
113 path.len = last - path.data - 1; in ngx_http_random_index_handler()
114 path.data[path.len] = '\0'; in ngx_http_random_index_handler()
119 if (ngx_open_dir(&path, &dir) == NGX_ERROR) { in ngx_http_random_index_handler()
148 filename = path.data; in ngx_http_random_index_handler()
149 filename[path.len] = '/'; in ngx_http_random_index_handler()
179 if (path.len + 1 + len + 1 > allocated) { in ngx_http_random_index_handler()
180 allocated = path.len + 1 + len + 1 in ngx_http_random_index_handler()
[all …]
H A Dngx_http_try_files_module.c106 path.data = NULL; in ngx_http_try_files_handler()
162 path.len = (name + tf->name.len - 1) - path.data; in ngx_http_try_files_handler()
174 path.len = e.pos - path.data; in ngx_http_try_files_handler()
182 path.len -= alias; in ngx_http_try_files_handler()
200 path.len -= root; in ngx_http_try_files_handler()
201 path.data += root; in ngx_http_try_files_handler()
252 path.len -= root; in ngx_http_try_files_handler()
253 path.data += root; in ngx_http_try_files_handler()
256 r->uri = path; in ngx_http_try_files_handler()
260 r->uri = path; in ngx_http_try_files_handler()
[all …]
/f-stack/dpdk/drivers/baseband/turbo_sw/
H A Dmeson.build4 path = get_option('flexran_sdk') variable
7 lib4g = cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: false)
10 ext_deps += cc.find_library('libcrc', dirs: [path + '/lib_crc'], required: true)
18 includes += include_directories(path + '/lib_turbo')
19 includes += include_directories(path + '/lib_crc')
20 includes += include_directories(path + '/lib_rate_matching')
21 includes += include_directories(path + '/lib_common')
32 includes += include_directories(path + '/lib_ldpc_encoder_5gnr')
33 includes += include_directories(path + '/lib_ldpc_decoder_5gnr')
34 includes += include_directories(path + '/lib_LDPC_ratematch_5gnr')
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/zpool/os/linux/
H A Dzpool_vdev_os.c244 if ((fd = open(path, O_RDONLY|O_DIRECT)) < 0) in check_sector_size_database()
275 value = blkid_get_tag_value(cache, "TYPE", path); in check_slice()
285 err = check_file(path, force, isspare); in check_slice()
292 "type '%s'\n"), path, value); in check_slice()
324 return (check_slice(path, cache, force, isspare)); in check_disk()
330 if ((fd = open(path, flags)) < 0) { in check_disk()
345 return (check_slice(path, cache, force, isspare)); in check_disk()
362 "EFI label.\n"), path); in check_disk()
375 "%s%s%d", path, "-part", i+1); in check_disk()
378 "%s%s%d", path, isdigit(path[strlen(path)-1]) ? in check_disk()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_all_001_pos.ksh57 typeset path
63 path=$path/${ctr[i]}
66 "${ctr[i]}" "$path" \
75 "$path/${vol[j]}" \
85 "$path/${fs[j]}"
99 typeset path
139 typeset path
150 path=$TESTPOOL
152 path=$path/${ctr[i]}
164 $logfunc mounted "$path/${fs[j]}"
[all …]
/f-stack/freebsd/contrib/libsodium/packaging/dotnet-core/
H A Dprepare.py3 import os.path
64 self.tempdir = os.path.join(version.tempdir, rid)
65 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
77 os.path.relpath(self.cachefile, self.tempdir),
88 self.tempdir = os.path.join(version.tempdir, rid)
89 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
101 os.path.relpath(self.cachefile, self.tempdir),
102 os.path.dirname(self.itemfile)
118 while not os.path.exists(os.path.join('recipes', recipe)):
149 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c65 if ((fd = open(path, O_RDWR|O_DIRECT)) < 0) { in zpool_relabel_disk()
100 char *path; in read_efi_label() local
109 strrchr(path, '/')); in read_efi_label()
157 zpool_label_disk_check(char *path) in zpool_label_disk_check() argument
162 if ((fd = open(path, O_RDONLY|O_DIRECT)) < 0) in zpool_label_disk_check()
214 char path[MAXPATHLEN]; in zpool_label_disk() local
242 (void) snprintf(path, sizeof (path), "%s/%s", DISK_ROOT, name); in zpool_label_disk()
320 (void) snprintf(path, sizeof (path), "%s/%s", DISK_ROOT, name); in zpool_label_disk()
332 (void) snprintf(path, sizeof (path), "%s/%s", DISK_ROOT, name); in zpool_label_disk()
333 rval = zpool_label_disk_check(path); in zpool_label_disk()
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c49 int len = strlen(path); in zfs_append_partition()
62 if (isdigit(path[len-1])) { in zfs_append_partition()
66 (void) strcat(path, "1"); in zfs_append_partition()
86 char *tmp = strdup(path); in zfs_strip_partition()
152 zfs_strip_path(char *path) in zfs_strip_path() argument
176 char *path = NULL; in dm_get_underlying_path() local
223 return (path); in dm_get_underlying_path()
356 char *path = NULL; in zfs_get_enclosure_sysfs_path() local
421 path = NULL; in zfs_get_enclosure_sysfs_path()
425 if (path == NULL) in zfs_get_enclosure_sysfs_path()
[all …]
/f-stack/dpdk/lib/librte_vhost/
H A Dsocket.c35 char *path; member
369 const char *path = vsocket->path; in vhost_user_start_server() local
525 const char *path = vsocket->path; in vhost_user_start_client() local
567 if (path == NULL) in find_vhost_user_socket()
573 if (!strcmp(vsocket->path, path)) in find_vhost_user_socket()
826 free(vsocket->path); in vhost_user_socket_mem_free()
847 if (!path) in rte_vhost_driver_register()
862 vsocket->path = strdup(path); in rte_vhost_driver_register()
1015 if (path == NULL) in rte_vhost_driver_unregister()
1024 if (!strcmp(vsocket->path, path)) { in rte_vhost_driver_unregister()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_all_001_pos.ksh58 typeset path
64 path=$path/${ctr[i]}
67 "${ctr[i]}" "$path" \
76 "$path/${vol[j]}" \
85 "$path/${fs[j]}"
133 typeset path
137 path=$TESTPOOL
139 path=$path/${ctr[i]}
144 log_must unmounted "$path/${vol[j]}"
151 log_must unmounted "$path/${fs[j]}"
[all …]
/f-stack/tools/libxo/tests/gettext/
H A Dgt_01.c30 static char path[MAXPATHLEN]; in main() local
44 strlcpy(path, argv[++argc], sizeof(path)); in main()
50 if (path[0] == 0) { in main()
51 getcwd(path, sizeof(path)); in main()
52 strlcat(path, "/po", sizeof(path)); in main()
56 bindtextdomain(domainname, path); in main()
57 bindtextdomain("ldns", path); in main()
58 bindtextdomain("strerror", path); in main()
/f-stack/dpdk/drivers/common/mlx5/linux/
H A Dmlx5_common_os.c45 file = fopen(path, "rb"); in mlx5_dev_to_pci_addr()
173 dir = opendir(path); in mlx5_get_ifname_sysfs()
194 file = fopen(path, "rb"); in mlx5_get_ifname_sysfs()
256 size_t len = strlen(path); in mlx5_glue_path()
284 char const *path[] = { in mlx5_glue_dlopen() local
308 if (!path[i]) { in mlx5_glue_dlopen()
312 end = strpbrk(path[i], ":;"); in mlx5_glue_dlopen()
314 end = path[i] + strlen(path[i]); in mlx5_glue_dlopen()
315 len = end - path[i]; in mlx5_glue_dlopen()
321 (int)len, path[i], in mlx5_glue_dlopen()
[all …]
/f-stack/freebsd/contrib/zlib/
H A Dgzlib.c95 const void *path; in gz_open()
110 if (path == NULL)
204 if (state->path == NULL) {
211 wcstombs(state->path, path, len + 1);
217 (void)snprintf(state->path, len + 1, "%s", (const char *)path);
219 strcpy(state->path, path);
250 free(state->path);
274 const char *path; in gzopen()
282 const char *path; in gzopen64()
304 free(path);
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_device_path_os.c49 zfs_append_partition(char *path, size_t max_len) in zfs_append_partition() argument
51 return (strnlen(path, max_len)); in zfs_append_partition()
60 zfs_strip_path(char *path) in zfs_strip_path() argument
62 if (strncmp(path, _PATH_DEV, sizeof (_PATH_DEV) - 1) == 0) in zfs_strip_path()
63 return (path + sizeof (_PATH_DEV) - 1); in zfs_strip_path()
65 return (path); in zfs_strip_path()
100 zpool_label_disk_wait(const char *path, int timeout_ms) in zpool_label_disk_wait() argument
112 if ((stat64(path, &statbuf) == 0) && (errno == 0)) { in zpool_label_disk_wait()
129 is_mpath_whole_disk(const char *path) in is_mpath_whole_disk() argument
/f-stack/freebsd/contrib/openzfs/cmd/zpool/os/freebsd/
H A Dzpool_vdev_os.c89 char path[MAXPATHLEN]; in check_device() local
92 snprintf(path, sizeof (path), "%s%s", _PATH_DEV, name); in check_device()
94 strlcpy(path, name, sizeof (path)); in check_device()
96 return (check_file(path, force, isspare)); in check_device()
100 check_sector_size_database(char *path, int *sector_size) in check_sector_size_database() argument
/f-stack/dpdk/usertools/
H A Ddpdk-hugepages.py46 def get_hugepages(path): argument
53 def set_hugepages(path, pages): argument
55 filename = path + '/nr_hugepages'
62 filename = os.path.basename(path)
72 path = numa_path + '/hugepages'
73 for hdir in os.listdir(path):
85 path = '/sys/kernel/mm/hugepages'
86 for hdir in os.listdir(path):
110 for path in dirs:
111 set_hugepages(path, 0)
[all …]
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dloadlib.c69 void *lib = dlopen(path, RTLD_NOW); in ll_load()
128 HINSTANCE lib = LoadLibraryA(path); in ll_load()
295 void **reg = ll_register(L, path); in ll_loadfunc()
342 while (*path == *LUA_PATHSEP) path++; /* skip separators */ in pushnexttemplate()
345 if (l == NULL) l = path + strlen(path); in pushnexttemplate()
346 lua_pushlstring(L, path, l - path); /* template */ in pushnexttemplate()
353 const char *path; in findfile() local
356 path = lua_tostring(L, -1); in findfile()
357 if (path == NULL) in findfile()
360 while ((path = pushnexttemplate(L, path)) != NULL) { in findfile()
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_file.c159 name = path->name; in ngx_create_temp_file()
248 file[path->name.len + path->len] = '/'; in ngx_create_hashed_filename()
272 pos = path->name.len; in ngx_create_path()
377 if (path == NULL) { in ngx_conf_set_path_slot()
385 if (path->name.data[path->name.len - 1] == '/') { in ngx_conf_set_path_slot()
410 *slot = path; in ngx_conf_set_path_slot()
426 if (*path) { in ngx_conf_merge_path_value()
431 *path = prev; in ngx_conf_merge_path_value()
436 if (*path == NULL) { in ngx_conf_merge_path_value()
531 path = *slot; in ngx_add_path()
[all …]
/f-stack/dpdk/drivers/raw/ioat/
H A Ddpdk_idxd_cfg.py12 import os.path
17 def __init__(self, path): argument
18 self.path = path
22 with open(os.path.join(self.path, filename)) as f:
28 with open(os.path.join(self.path, filename), "w") as f:
53 wq_dir = SysfsDir(os.path.join(dsa_dir.path, f"wq{dsa_id}.{q}"))
/f-stack/freebsd/contrib/zstd/zlibWrapper/
H A Dgzlib.c95 const void *path; in gz_open()
110 if (path == NULL)
211 wcstombs(state.state->path, path, len + 1);
217 (void)snprintf(state.state->path, len + 1, "%s", (const char *)path);
219 strcpy(state.state->path, (const char*)path);
250 free(state.state->path);
273 gzFile ZEXPORT gzopen(path, mode) in gzopen() argument
274 const char *path; in gzopen()
282 const char *path; in gzopen64()
304 free(path);
[all …]

12345678910>>...67