Home
last modified time | relevance | path

Searched refs:PATH_MAX (Results 1 – 25 of 73) sorted by relevance

123

/linux-3.4.99/tools/perf/util/
Dabspath.c5 static char cwd[PATH_MAX + 1]; in get_pwd_cwd()
8 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd()
16 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd()
24 static char buf[PATH_MAX + 1]; in make_nonrelative_path()
27 if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX) in make_nonrelative_path()
33 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
Dcgroup.c14 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint()
27 while (fscanf(fp, "%*s %"STR(PATH_MAX)"s %"STR(PATH_MAX)"s %" in cgroupfs_find_mountpoint()
28 STR(PATH_MAX)"s %*d %*d\n", in cgroupfs_find_mountpoint()
59 char path[PATH_MAX + 1]; in open_cgroup()
60 char mnt[PATH_MAX + 1]; in open_cgroup()
64 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1)) in open_cgroup()
67 snprintf(path, PATH_MAX, "%s/%s", mnt, name); in open_cgroup()
Dpmu.c33 char path[PATH_MAX]; in pmu_format_parse()
40 snprintf(path, PATH_MAX, "%s/%s", dir, name); in pmu_format_parse()
64 char path[PATH_MAX]; in pmu_format()
71 snprintf(path, PATH_MAX, in pmu_format()
91 char path[PATH_MAX]; in pmu_type()
100 snprintf(path, PATH_MAX, in pmu_type()
380 static char dir[PATH_MAX]; in test_format_dir_get()
383 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get()
388 static char name[PATH_MAX]; in test_format_dir_get()
392 snprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
[all …]
Dpath.c41 static char pathname_array[4][PATH_MAX]; in get_pathname()
80 char path[PATH_MAX]; in perf_pathdup()
95 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath()
97 if (len >= PATH_MAX) in mkpath()
110 if (len > PATH_MAX-100) in perf_path()
116 len += vsnprintf(pathname + len, PATH_MAX - len, fmt, args); in perf_path()
118 if (len >= PATH_MAX) in perf_path()
Ddebugfs.c9 char debugfs_mountpoint[PATH_MAX + 1] = "/sys/kernel/debug";
10 char tracing_events_path[PATH_MAX + 1] = "/sys/kernel/debug/tracing/events";
45 while (fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in debugfs_find_mountpoint()
Dsysfs.c11 char sysfs_mountpoint[PATH_MAX];
50 fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in sysfs_find_mountpoint()
Dsymbol.c721 char dso_name[PATH_MAX]; in dso__split_kallsyms()
1298 char dso_name[PATH_MAX]; in dso__load_sym()
1584 int size = PATH_MAX; in dso__load()
1746 char filename[PATH_MAX]; in dso__kernel_module_get_build_id()
1777 char path[PATH_MAX]; in map_groups__set_modules_path_dir()
1795 dso_name[PATH_MAX]; in map_groups__set_modules_path_dir()
1828 char version[PATH_MAX]; in get_kernel_version()
1856 char modules_path[PATH_MAX]; in machine__set_modules_path()
1916 char path[PATH_MAX]; in machine__create_modules()
1933 char name[PATH_MAX]; in machine__create_modules()
[all …]
Dutil.h90 #ifndef PATH_MAX
91 #define PATH_MAX 4096 macro
Devent.c48 char filename[PATH_MAX]; in perf_event__get_comm_tgid()
98 char filename[PATH_MAX]; in perf_event__synthesize_comm()
168 char filename[PATH_MAX]; in perf_event__synthesize_mmap_events()
438 char path[PATH_MAX]; in perf_event__synthesize_kernel_mmap()
439 char name_buff[PATH_MAX]; in perf_event__synthesize_kernel_mmap()
546 char kmmap_prefix[PATH_MAX]; in perf_event__process_kernel_mmap()
/linux-3.4.99/usr/
Dgen_init_cpio.c135 char name[PATH_MAX + 1]; in cpio_mkslink_line()
136 char target[PATH_MAX + 1]; in cpio_mkslink_line()
142 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line()
207 char name[PATH_MAX + 1]; in cpio_mkgeneric_line()
213 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line()
275 char name[PATH_MAX + 1]; in cpio_mknod_line()
284 if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u", in cpio_mknod_line()
384 char expanded[PATH_MAX + 1]; in cpio_replace_env()
385 char env_var[PATH_MAX + 1]; in cpio_replace_env()
396 PATH_MAX - strlen(expanded)); in cpio_replace_env()
[all …]
/linux-3.4.99/scripts/
Ddocproc.c112 char real_filename[PATH_MAX + 1]; in exec_kernel_doc()
121 strncat(real_filename, kernsrctree, PATH_MAX); in exec_kernel_doc()
123 PATH_MAX - strlen(real_filename)); in exec_kernel_doc()
200 char real_filename[PATH_MAX + 1]; in find_export_symbols()
202 strncat(real_filename, srctree, PATH_MAX); in find_export_symbols()
203 strncat(real_filename, "/", PATH_MAX - strlen(real_filename)); in find_export_symbols()
205 PATH_MAX - strlen(real_filename)); in find_export_symbols()
356 char real_filename[PATH_MAX + 1]; in find_all_symbols()
379 strncat(real_filename, kernsrctree, PATH_MAX); in find_all_symbols()
381 PATH_MAX - strlen(real_filename)); in find_all_symbols()
/linux-3.4.99/Documentation/cgroups/
Dcgroup_event_listener.c25 char event_control_path[PATH_MAX]; in main()
41 ret = snprintf(event_control_path, PATH_MAX, "%s/cgroup.event_control", in main()
43 if (ret >= PATH_MAX) { in main()
/linux-3.4.99/fs/cifs/
Dcifssmb.c855 PATH_MAX, nls_codepage, remap); in CIFSPOSIXDelFile()
859 name_len = strnlen(fileName, PATH_MAX); in CIFSPOSIXDelFile()
927 PATH_MAX, nls_codepage, remap); in CIFSSMBDelFile()
931 name_len = strnlen(fileName, PATH_MAX); in CIFSSMBDelFile()
972 PATH_MAX, nls_codepage, remap); in CIFSSMBRmDir()
976 name_len = strnlen(dirName, PATH_MAX); in CIFSSMBRmDir()
1015 PATH_MAX, nls_codepage, remap); in CIFSSMBMkDir()
1019 name_len = strnlen(name, PATH_MAX); in CIFSSMBMkDir()
1064 PATH_MAX, nls_codepage, remap); in CIFSPOSIXCreate()
1068 name_len = strnlen(name, PATH_MAX); in CIFSPOSIXCreate()
[all …]
/linux-3.4.99/init/
Dinitramfs.c27 char name[N_ALIGN(PATH_MAX)];
232 if (name_len <= 0 || name_len > PATH_MAX) in do_header()
235 if (body_len > PATH_MAX) in do_header()
422 symlink_buf = kmalloc(PATH_MAX + N_ALIGN(PATH_MAX) + 1, GFP_KERNEL); in unpack_to_rootfs()
423 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
/linux-3.4.99/drivers/staging/usbip/userspace/src/
Dusbip_attach.c50 char path[PATH_MAX+1]; in record_connection()
58 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in record_connection()
/linux-3.4.99/include/linux/
Dlimits.h12 #define PATH_MAX 4096 /* # chars in a path name including nul */ macro
Dnfs3.h9 #define NFS3_MAXPATHLEN PATH_MAX
/linux-3.4.99/arch/um/os-Linux/
Dhelper.c72 data.buf = __cant_sleep() ? uml_kmalloc(PATH_MAX, UM_GFP_ATOMIC) : in run_helper()
73 uml_kmalloc(PATH_MAX, UM_GFP_KERNEL); in run_helper()
Dexecvp.c135 char buf[PATH_MAX]; in main()
/linux-3.4.99/fs/sysfs/
Ddir.c469 strlcat(path, "/", PATH_MAX); in sysfs_pathname()
471 strlcat(path, sd->s_name, PATH_MAX); in sysfs_pathname()
501 char *path = kzalloc(PATH_MAX, GFP_KERNEL); in sysfs_add_one()
506 strlcat(path, "/", PATH_MAX), in sysfs_add_one()
507 strlcat(path, sd->s_name, PATH_MAX), in sysfs_add_one()
/linux-3.4.99/scripts/kconfig/
Dconfdata.c107 static char fullname[PATH_MAX+1]; in conf_get_default_confname()
680 char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; in conf_write()
776 char path[PATH_MAX+1]; in conf_split_config()
/linux-3.4.99/tools/perf/
Dbuiltin-buildid-cache.c79 char debugdir[PATH_MAX]; in __cmd_buildid_cache()
Dperf.c190 strbuf_init(&buf, PATH_MAX); in handle_alias()
192 sq_quote_argv(&buf, (*argv) + 1, PATH_MAX); in handle_alias()
/linux-3.4.99/kernel/sched/
Ddebug.c94 static char group_path[PATH_MAX];
98 if (autogroup_path(tg, group_path, PATH_MAX)) in task_group_path()
108 cgroup_path(tg->css.cgroup, group_path, PATH_MAX); in task_group_path()
/linux-3.4.99/drivers/gpu/drm/
Ddrm_edid_load.c29 static char edid_firmware[PATH_MAX];

123