/third_party/ltp/lib/ |
H A D | tst_virt.c | 37 cpuinfo = SAFE_FOPEN(NULL, "/proc/cpuinfo", "r"); in is_kvm() 76 sysinfo = SAFE_FOPEN(NULL, "/proc/sysinfo", "r"); in is_ibmz()
|
H A D | tst_lockdown.c | 76 file = SAFE_FOPEN(PATH_LOCKDOWN, "r"); in tst_lockdown_enabled()
|
H A D | tst_kernel.c | 127 f = SAFE_FOPEN(NULL, path, "r"); in tst_search_driver_()
|
H A D | tst_device.c | 430 file = SAFE_FOPEN(NULL, "/proc/mounts", "r"); in tst_is_mounted()
|
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/ |
H A D | copy_file_range01.c | 43 fp1 = SAFE_FOPEN(fname1, "r"); in check_file_content() 47 fp2 = SAFE_FOPEN(fname2, "r"); in check_file_content()
|
/third_party/ltp/lib/newlib_tests/ |
H A D | test14.c | 18 SAFE_FOPEN("foo", "r"); in cleanup()
|
/third_party/ltp/include/ |
H A D | tst_safe_stdio.h | 12 #define SAFE_FOPEN(path, mode) \ macro
|
/third_party/ltp/include/old/ |
H A D | old_safe_stdio.h | 25 #define SAFE_FOPEN(cleanup_fn, path, mode) \ macro
|
/third_party/ltp/testcases/cve/ |
H A D | stack_clash.c | 104 fh = SAFE_FOPEN("/proc/self/maps", "r"); in force_bottom_up() 144 fh = SAFE_FOPEN("/proc/self/maps", "r"); in read_stack_addr_from_proc()
|
H A D | cve-2016-10044.c | 39 f = SAFE_FOPEN("/proc/self/maps", "r"); in run()
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
H A D | mlock03.c | 43 fp = SAFE_FOPEN("/proc/self/maps", "r"); in verify_mlock()
|
/third_party/ltp/testcases/kernel/device-drivers/acpi/ |
H A D | ltp_acpi.c | 49 FILE *f = SAFE_FOPEN(cleanup, name, "r"); in read_sysfs_file()
|
/third_party/ltp/testcases/kernel/mem/swapping/ |
H A D | swapping01.c | 73 file = SAFE_FOPEN("/proc/swaps", "r"); in test_swapping()
|
/third_party/ltp/testcases/kernel/syscalls/process_madvise/ |
H A D | process_madvise.h | 48 f = SAFE_FOPEN(smaps, "r"); in read_address_mapping()
|
/third_party/ltp/testcases/kernel/security/integrity/ima/src/ |
H A D | ima_boot_aggregate.c | 70 fp = SAFE_FOPEN(file, "r"); in do_test()
|
/third_party/ltp/testcases/kernel/security/umip/ |
H A D | umip_basic_test.c | 164 fp = SAFE_FOPEN(CPUINFO_FILE, "r"); in setup()
|
/third_party/ltp/testcases/kernel/firmware/fw_load_user/ |
H A D | fw_load.c | 200 FILE *f = SAFE_FOPEN(cleanup, fi->file, "w"); in create_firmware()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
H A D | statx01.c | 66 file = SAFE_FOPEN("/proc/self/mountinfo", "r"); in test_mnt_id()
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
H A D | zram03.c | 190 file = SAFE_FOPEN("/proc/modules", "r"); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
H A D | madvise11.c | 273 FILE *file = SAFE_FOPEN(path, "r"); in find_in_file()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify10.c | 494 f = SAFE_FOPEN(procfdinfo, "r"); in show_fanotify_ignore_marks()
|