| /OK3568_Linux_fs/buildroot/package/smstools3/ |
| H A D | 0002-fix-build-with-gcc-10.x.patch | 30 -char tmpdir[PATH_MAX]; // 3.1.16beta. 33 +extern char tmpdir[PATH_MAX]; // 3.1.16beta. 41 -char configfile[PATH_MAX]; // Path to config file 42 -char d_spool[PATH_MAX]; // Spool directory 43 -char d_failed[PATH_MAX]; // Failed spool directory 44 -char d_failed_copy[PATH_MAX]; // 3.1.17. 45 -char d_incoming[PATH_MAX]; // Incoming spool directory 46 -char d_incoming_copy[PATH_MAX]; // 3.1.16beta2. 47 -char d_report[PATH_MAX]; // Incoming report spool directory 48 -char d_report_copy[PATH_MAX]; // 3.1.17. [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/tests/ |
| H A D | pe-file-parsing.c | 25 char filename[PATH_MAX]; in run_dir() 26 char debugfile[PATH_MAX]; in run_dir() 28 char debuglink[PATH_MAX]; in run_dir() 33 char expect_debuglink[PATH_MAX] = "pe-file.exe.debug"; in run_dir() 38 scnprintf(filename, PATH_MAX, "%s/pe-file.exe", d); in run_dir() 45 ret = filename__read_debuglink(filename, debuglink, PATH_MAX); in run_dir() 50 scnprintf(debugfile, PATH_MAX, "%s/%s", d, debuglink); in run_dir() 75 char path_dir[PATH_MAX]; in test__pe_file_parsing() 82 snprintf(path_dir, PATH_MAX, "%s/tests", get_argv_exec_path()); in test__pe_file_parsing()
|
| H A D | pmu.c | 90 static char dir[PATH_MAX]; in test_format_dir_get() 93 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get() 98 static char name[PATH_MAX]; in test_format_dir_get() 102 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get() 120 char buf[PATH_MAX]; in test_format_dir_put() 121 snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); in test_format_dir_put() 125 snprintf(buf, PATH_MAX, "rmdir %s\n", dir); in test_format_dir_put()
|
| H A D | attr.c | 71 char path[PATH_MAX]; in store_event() 76 snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, in store_event() 169 char cmd[3*PATH_MAX]; in run_dir() 174 scnprintf(cmd, 3*PATH_MAX, PYTHON " %s/attr.py -d %s/attr/ -p %s %.*s", in run_dir() 183 char path_perf[PATH_MAX]; in test__attr() 184 char path_dir[PATH_MAX]; in test__attr() 191 snprintf(path_dir, PATH_MAX, "%s/tests", get_argv_exec_path()); in test__attr() 192 snprintf(path_perf, PATH_MAX, "%s/perf", BINDIR); in test__attr()
|
| H A D | api-io.c | 36 static int make_test_file(char path[PATH_MAX], const char *contents) in make_test_file() argument 57 static int setup_test(char path[PATH_MAX], const char *contents, in setup_test() argument 80 static void cleanup_test(char path[PATH_MAX], struct io *io) in cleanup_test() argument 89 char path[PATH_MAX]; in do_test_get_char() 136 char path[PATH_MAX]; in do_test_get_hex() 217 char path[PATH_MAX]; in do_test_get_dec()
|
| /OK3568_Linux_fs/kernel/tools/lib/api/fs/ |
| H A D | cgroup.c | 14 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint() 15 char path_v1[PATH_MAX + 1], path_v2[PATH_MAX + 2], *path; in cgroupfs_find_mountpoint() 30 while (fscanf(fp, "%*s %"__stringify(PATH_MAX)"s %"__stringify(PATH_MAX)"s %" in cgroupfs_find_mountpoint() 31 __stringify(PATH_MAX)"s %*d %*d\n", in cgroupfs_find_mountpoint()
|
| H A D | tracing_path.c | 16 static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug"; 17 static char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing"; 18 static char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; 120 char filename[PATH_MAX]; in tracing_path__strerror_open_tp() 122 snprintf(filename, PATH_MAX, "%s/%s", sys, name ?: "*"); in tracing_path__strerror_open_tp()
|
| H A D | fs.c | 91 char path[PATH_MAX]; 160 fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in fs__read_mounts() 443 char path[PATH_MAX]; in procfs__read_str() 457 char path[PATH_MAX]; in sysfs__read_ull_base() 480 char path[PATH_MAX]; in sysfs__read_int() 493 char path[PATH_MAX]; in sysfs__read_str() 535 char path[PATH_MAX]; in sysctl__read_int() 548 char path[PATH_MAX]; in sysfs__write_int() 554 if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) in sysfs__write_int()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-connectivity/smstools3/smstools3/ |
| H A D | 0001-Make-extern-declarations-to-avoid-duplicate-var-defi.patch | 201 -char tmpdir[PATH_MAX]; // 3.1.16beta. 204 +EXTERN char tmpdir[PATH_MAX]; // 3.1.16beta. 212 -char configfile[PATH_MAX]; // Path to config file 213 -char d_spool[PATH_MAX]; // Spool directory 214 -char d_failed[PATH_MAX]; // Failed spool directory 215 -char d_failed_copy[PATH_MAX]; // 3.1.17. 216 -char d_incoming[PATH_MAX]; // Incoming spool directory 217 -char d_incoming_copy[PATH_MAX]; // 3.1.16beta2. 218 -char d_report[PATH_MAX]; // Incoming report spool directory 219 -char d_report_copy[PATH_MAX]; // 3.1.17. [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | cpumap.c | 100 char path[PATH_MAX]; in cpu__get_topology_int() 102 snprintf(path, PATH_MAX, in cpu__get_topology_int() 307 char path[PATH_MAX]; in set_max_cpu_num() 319 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num() 320 if (ret >= PATH_MAX) { in set_max_cpu_num() 321 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num() 330 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); in set_max_cpu_num() 331 if (ret >= PATH_MAX) { in set_max_cpu_num() 332 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num() 347 char path[PATH_MAX]; in set_max_node_num() [all …]
|
| H A D | namespaces.c | 65 char oldns[PATH_MAX]; in nsinfo__init() 66 char spath[PATH_MAX]; in nsinfo__init() 75 if (snprintf(oldns, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__init() 99 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX) in nsinfo__init() 204 char curpath[PATH_MAX]; in nsinfo__mountns_enter() 218 if (snprintf(curpath, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__mountns_enter()
|
| H A D | pmu.c | 58 char path[PATH_MAX]; in perf_pmu__format_parse() 65 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse() 88 char path[PATH_MAX]; in pmu_format() 94 snprintf(path, PATH_MAX, in pmu_format() 149 char path[PATH_MAX]; in perf_pmu__parse_scale() 151 scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale() 177 char path[PATH_MAX]; in perf_pmu__parse_unit() 181 scnprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit() 208 char path[PATH_MAX]; in perf_pmu__parse_per_pkg() 211 scnprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg() [all …]
|
| H A D | path.c | 31 static char pathname_array[4][PATH_MAX]; in get_pathname() 55 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath() 57 if (len >= PATH_MAX) in mkpath() 86 char path[PATH_MAX]; in is_directory()
|
| /OK3568_Linux_fs/external/xserver/xkb/ |
| H A D | ddxLoad.c | 97 char *buf = NULL, keymap[PATH_MAX], xkm_output_dir[PATH_MAX]; in RunXkbComp() 107 char tmpname[PATH_MAX]; in RunXkbComp() 294 char buf[PATH_MAX], xkm_output_dir[PATH_MAX]; in XkbDDXOpenConfigFile() 305 if (snprintf(buf, PATH_MAX, "%s/%s%s.xkm", XkbBaseDirectory, in XkbDDXOpenConfigFile() 306 xkm_output_dir, mapName) >= PATH_MAX) in XkbDDXOpenConfigFile() 310 if (snprintf(buf, PATH_MAX, "%s%s.xkm", xkm_output_dir, mapName) in XkbDDXOpenConfigFile() 311 >= PATH_MAX) in XkbDDXOpenConfigFile() 331 char fileName[PATH_MAX]; in LoadXKM() 334 file = XkbDDXOpenConfigFile(keymap, fileName, PATH_MAX); in LoadXKM() 392 char buf[PATH_MAX]; in XkbDDXNamesFromRules() [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/subcmd/ |
| H A D | exec-cmd.c | 15 #define PATH_MAX 4096 macro 38 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() 41 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd() 49 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd() 57 static char buf[PATH_MAX + 1]; in make_nonrelative_path() 60 if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX) in make_nonrelative_path() 66 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
|
| /OK3568_Linux_fs/kernel/usr/ |
| H A D | gen_init_cpio.c | 136 char name[PATH_MAX + 1]; in cpio_mkslink_line() 137 char target[PATH_MAX + 1]; in cpio_mkslink_line() 143 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line() 208 char name[PATH_MAX + 1]; in cpio_mkgeneric_line() 214 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line() 276 char name[PATH_MAX + 1]; in cpio_mknod_line() 285 if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u", in cpio_mknod_line() 385 char expanded[PATH_MAX + 1]; in cpio_replace_env() 402 char name[PATH_MAX + 1]; in cpio_mkfile_line() 404 char location[PATH_MAX + 1]; in cpio_mkfile_line() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A D | cgroup_helpers.c | 46 char path[PATH_MAX + 1]; in enable_all_controllers() 47 char buf[PATH_MAX]; in enable_all_controllers() 101 char cgroup_workdir[PATH_MAX - 24]; in setup_cgroup_environment() 145 char cgroup_procs_path[PATH_MAX + 1]; in join_cgroup_from_top() 180 char cgroup_path[PATH_MAX + 1]; in join_cgroup() 201 char cgroup_workdir[PATH_MAX + 1]; in cleanup_cgroup_environment() 220 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() 253 char cgroup_workdir[PATH_MAX + 1]; in get_cgroup_id()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/expect/expect/ |
| H A D | 0001-exp_main_sub.c-Use-PATH_MAX-for-path.patch | 4 Subject: [PATCH] exp_main_sub.c: Use PATH_MAX for path 11 Use PATH_MAX to fix the problem. 28 +#ifndef PATH_MAX 29 +#define PATH_MAX 4096 40 + char file[PATH_MAX]; 49 + char file[PATH_MAX];
|
| /OK3568_Linux_fs/kernel/tools/perf/jvmti/ |
| H A D | jvmti_agent.c | 45 static char jit_path[PATH_MAX]; 149 ret = snprintf(jit_path, PATH_MAX, "%s/.debug/", base); in create_jit_cache_dir() 150 if (ret >= PATH_MAX) { in create_jit_cache_dir() 164 ret = snprintf(jit_path, PATH_MAX, "%s/.debug/jit", base); in create_jit_cache_dir() 165 if (ret >= PATH_MAX) { in create_jit_cache_dir() 179 ret = snprintf(jit_path, PATH_MAX, "%s/.debug/jit/%s.XXXXXXXX", base, str); in create_jit_cache_dir() 180 if (ret >= PATH_MAX) { in create_jit_cache_dir() 248 char dump_path[PATH_MAX]; in jvmti_open() 276 ret = snprintf(dump_path, PATH_MAX, "%s/jit-%i.dump", jit_path, getpid()); in jvmti_open() 277 if (ret >= PATH_MAX) { in jvmti_open()
|
| /OK3568_Linux_fs/buildroot/support/kconfig/patches/ |
| H A D | 14-support-out-of-tree-config.patch | 43 char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; 55 char path[PATH_MAX+1]; 102 + char dir[PATH_MAX+1], buf[PATH_MAX+1]; 176 + char buf[PATH_MAX+1], buf2[PATH_MAX+1], dir[PATH_MAX+1];
|
| /OK3568_Linux_fs/kernel/fs/xfs/ |
| H A D | xfs_stats.c | 61 len += scnprintf(buf + len, PATH_MAX - len, "%s", in xfs_stats_format() 65 len += scnprintf(buf + len, PATH_MAX - len, " %u", in xfs_stats_format() 67 len += scnprintf(buf + len, PATH_MAX - len, "\n"); in xfs_stats_format() 77 len += scnprintf(buf + len, PATH_MAX-len, "xpc %Lu %Lu %Lu\n", in xfs_stats_format() 79 len += scnprintf(buf + len, PATH_MAX-len, "defer_relog %llu\n", in xfs_stats_format() 81 len += scnprintf(buf + len, PATH_MAX-len, "debug %u\n", in xfs_stats_format()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-kernel/powertop/powertop/ |
| H A D | 0001-wakeup_xxx.h-include-limits.h.patch | 6 limits.h must be included to define PATH_MAX otherwise build will fail 10 wakeup/wakeup_ethernet.h:35:16: error: 'PATH_MAX' was not declared in this scope 11 char eth_path[PATH_MAX]; 14 wakeup/wakeup_usb.h:35:16: error: 'PATH_MAX' was not declared in this scope 15 char usb_path[PATH_MAX];
|
| /OK3568_Linux_fs/u-boot/scripts/ |
| H A D | docproc.c | 113 char real_filename[PATH_MAX + 1]; in exec_kernel_doc() 122 strncat(real_filename, kernsrctree, PATH_MAX); in exec_kernel_doc() 124 PATH_MAX - strlen(real_filename)); in exec_kernel_doc() 201 char real_filename[PATH_MAX + 1]; in find_export_symbols() 203 strncat(real_filename, srctree, PATH_MAX); in find_export_symbols() 204 strncat(real_filename, "/", PATH_MAX - strlen(real_filename)); in find_export_symbols() 206 PATH_MAX - strlen(real_filename)); in find_export_symbols() 360 char real_filename[PATH_MAX + 1]; in find_all_symbols() 383 strncat(real_filename, kernsrctree, PATH_MAX); in find_all_symbols() 385 PATH_MAX - strlen(real_filename)); in find_all_symbols()
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | zglobal.h | 231 #if !defined(PATH_MAX) && defined(_PC_PATH_MAX) 232 # define PATH_MAX 255 macro 236 #if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN) 240 #if !defined(PATH_MAX) && defined(MAXPATHLEN) 241 # define PATH_MAX MAXPATHLEN macro 248 #ifndef PATH_MAX 249 # define PATH_MAX _POSIX_PATH_MAX macro
|
| /OK3568_Linux_fs/external/xserver/hw/xwin/ |
| H A D | winprefs.h | 49 #define NAME_MAX PATH_MAX 52 #define PARAM_MAX (4*PATH_MAX) /* Maximum length of a parameter to a MENU */ 103 char iconFile[PATH_MAX + NAME_MAX + 2]; /* Icon location, WIN32 path */ 130 char iconDirectory[PATH_MAX + 1]; /* Where do the .icos lie? (Win32 path) */
|