Home
last modified time | relevance | path

Searched refs:SAFE_FILE_SCANF (Results 1 - 25 of 86) sorted by relevance

1234

/third_party/ltp/lib/
H A Dtst_pid.c46 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); in tst_get_unused_pid_()
88 SAFE_FILE_SCANF(cleanup_fn, path, "%s", max_pid_value); in read_session_pids_limit()
90 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in read_session_pids_limit()
142 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in tst_get_free_pids_()
143 SAFE_FILE_SCANF(cleanup_fn, THREADS_MAX_PATH, "%d", &max_threads); in tst_get_free_pids_()
H A Dtst_fips.c19 SAFE_FILE_SCANF(PATH_FIPS, "%d", &fips); in tst_fips_enabled()
H A Dtst_thread_state.c23 SAFE_FILE_SCANF(proc_path, "%*i %*s %c", &cur_state); in tst_thread_state_wait()
/third_party/ltp/testcases/kernel/containers/userns/
H A Duserns03.c67 SAFE_FILE_SCANF("/proc/self/uid_map", "%d %d %d", &idinsidens, &idoutsidens, &length); in child_fn2()
82 SAFE_FILE_SCANF(cpid1uidpath, "%d %d %d", &idinsidens, &idoutsidens, &length); in child_fn2()
96 SAFE_FILE_SCANF("/proc/self/gid_map", "%d %d %d", &idinsidens, &idoutsidens, &length); in child_fn2()
105 SAFE_FILE_SCANF(cpid1gidpath, "%d %d %d", &idinsidens, &idoutsidens, &length); in child_fn2()
H A Duserns01.c50 SAFE_FILE_SCANF("/proc/sys/kernel/cap_last_cap", "%d", &last_cap); in child_fn1()
70 SAFE_FILE_SCANF(OVERFLOWUIDPATH, "%ld", &overflowuid); in setup()
71 SAFE_FILE_SCANF(OVERFLOWGIDPATH, "%ld", &overflowgid); in setup()
H A Duserns06_capcheck.c35 SAFE_FILE_SCANF("/proc/sys/kernel/cap_last_cap", "%d", &last_cap); in main()
/third_party/ltp/testcases/kernel/syscalls/clone/
H A Dclone09.c37 SAFE_FILE_SCANF(sysctl_path, "%d", &sysctl_net_new); in newnet()
61 SAFE_FILE_SCANF(sysctl_path, "%d", &sysctl_net); in do_test()
72 SAFE_FILE_SCANF(sysctl_path_def, "%d", &def_val); in do_test()
/third_party/ltp/testcases/kernel/device-drivers/zram/
H A Dzram03.c107 SAFE_FILE_SCANF(filename, "%s", value); in print()
117 SAFE_FILE_SCANF(zram_stat_path, "%s %*s %*s %*s %s", nread_val, nwrite_val); in print_stat()
129 SAFE_FILE_SCANF(zram_mm_stat_path, "%s %s %s %*s %*s %s", in print_mm_stat()
183 SAFE_FILE_SCANF(HOT_ADD_PATH, "%d", &dev_num); in setup()
218 SAFE_FILE_SCANF(zramctl_log_path, "/dev/zram%d", &dev_num); in setup()
/third_party/ltp/testcases/kernel/device-drivers/acpi/
H A Dltp_acpi.c63 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in tc_acpi_str()
120 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in test_run()
141 SAFE_FILE_SCANF(cleanup, dev_acpi_disabled, "%d", &acpi_disabled); in main()
/third_party/ltp/testcases/kernel/lib/
H A Dksm_helper.c18 SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); in wait_ksmd_full_scan()
33 SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); in wait_ksmd_full_scan()
/third_party/ltp/testcases/kernel/syscalls/splice/
H A Dsplice.h30 SAFE_FILE_SCANF("/proc/sys/fs/pipe-max-size", "%d", &pipe_max_unpriv); in get_max_limit()
35 SAFE_FILE_SCANF("/proc/sys/fs/pipe-max-pages", "%d", &pipe_max_unpriv); in get_max_limit()
/third_party/ltp/lib/newlib_tests/
H A Dtest_zero_hugepage.c18 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
26 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
H A Dtest20.c22 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
31 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
H A Dtest14.c16 SAFE_FILE_SCANF("foo", "%i", &i); in cleanup()
/third_party/ltp/testcases/kernel/device-drivers/cpufreq/
H A Dcpufreq_boost.c114 SAFE_FILE_SCANF(NULL, cdrv[i].file, "%d", &boost_value); in setup()
124 SAFE_FILE_SCANF(NULL, governor, "%s", governor_name); in setup()
173 SAFE_FILE_SCANF(cleanup, maxspeed, "%d", &max_freq_khz); in test_run()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap05.c205 SAFE_FILE_SCANF(PATH_SHMMAX, "%llu", &shmmax); in setup()
215 SAFE_FILE_SCANF(path, "%lu", &hpages); in setup()
224 SAFE_FILE_SCANF(pathover, "%ld", &nr_overcommit_hugepages); in setup()
263 SAFE_FILE_SCANF(path, "%ld", &act_val); in checksys()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify17.c226 SAFE_FILE_SCANF(MAX_USERNS, "%d", &orig_max_userns); in setup()
237 SAFE_FILE_SCANF(GLOBAL_MAX_GROUPS, "%d", &max_groups); in setup()
238 SAFE_FILE_SCANF(GLOBAL_MAX_MARKS, "%d", &max_marks); in setup()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
H A Dmove_pages12.c287 SAFE_FILE_SCANF(path_hugepages_node1, in setup()
297 SAFE_FILE_SCANF(path_hugepages_node2, in setup()
309 SAFE_FILE_SCANF(PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup()
/third_party/ltp/testcases/kernel/mem/lib/
H A Dmem.c234 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &ksm_run_orig); in testoom()
249 SAFE_FILE_SCANF(fullpath, "%ld", &actual_val); in check()
276 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &ksm_run_orig); in final_group_check()
561 SAFE_FILE_SCANF(path1, "%ld", &online); in gather_node_cpus()
665 SAFE_FILE_SCANF(path, "%ld", &tune); in get_sys_tune()
674 SAFE_FILE_SCANF(PATH_SHMMAX, "%zu", &shmmax); in update_shm_size()
/third_party/ltp/testcases/network/sctp/
H A Dsctp_big_chunk.c57 SAFE_FILE_SCANF(hmac_algo_path, "%s", hmac_algo); in setup_server()
174 SAFE_FILE_SCANF(mtu_path, "%d", &mtu); in setup()
/third_party/ltp/testcases/kernel/syscalls/getppid/
H A Dgetppid01.c19 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getppid()
/third_party/ltp/testcases/kernel/syscalls/getpid/
H A Dgetpid01.c20 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getpid()
/third_party/ltp/testcases/kernel/sched/autogroup/
H A Dautogroup01.c67 SAFE_FILE_SCANF(PATH_AUTOGROUP, "%d", &orig_autogroup); in setup()
/third_party/ltp/testcases/kernel/syscalls/setpgid/
H A Dsetpgid02.c47 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &inval_pgid); in setup()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl30.c39 SAFE_FILE_SCANF("/proc/sys/fs/pipe-max-size", "%d", &max_size_unpriv); in setup()

Completed in 9 milliseconds

1234