Home
last modified time | relevance | path

Searched refs:SAFE_FOPEN (Results 1 - 21 of 21) sorted by relevance

/third_party/ltp/lib/
H A Dtst_virt.c37 cpuinfo = SAFE_FOPEN(NULL, "/proc/cpuinfo", "r"); in is_kvm()
76 sysinfo = SAFE_FOPEN(NULL, "/proc/sysinfo", "r"); in is_ibmz()
H A Dtst_lockdown.c76 file = SAFE_FOPEN(PATH_LOCKDOWN, "r"); in tst_lockdown_enabled()
H A Dtst_kernel.c127 f = SAFE_FOPEN(NULL, path, "r"); in tst_search_driver_()
H A Dtst_device.c430 file = SAFE_FOPEN(NULL, "/proc/mounts", "r"); in tst_is_mounted()
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
H A Dcopy_file_range01.c43 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 Dtest14.c18 SAFE_FOPEN("foo", "r"); in cleanup()
/third_party/ltp/include/
H A Dtst_safe_stdio.h12 #define SAFE_FOPEN(path, mode) \ macro
/third_party/ltp/include/old/
H A Dold_safe_stdio.h25 #define SAFE_FOPEN(cleanup_fn, path, mode) \ macro
/third_party/ltp/testcases/cve/
H A Dstack_clash.c104 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 Dcve-2016-10044.c39 f = SAFE_FOPEN("/proc/self/maps", "r"); in run()
/third_party/ltp/testcases/kernel/syscalls/mlock/
H A Dmlock03.c43 fp = SAFE_FOPEN("/proc/self/maps", "r"); in verify_mlock()
/third_party/ltp/testcases/kernel/device-drivers/acpi/
H A Dltp_acpi.c49 FILE *f = SAFE_FOPEN(cleanup, name, "r"); in read_sysfs_file()
/third_party/ltp/testcases/kernel/mem/swapping/
H A Dswapping01.c73 file = SAFE_FOPEN("/proc/swaps", "r"); in test_swapping()
/third_party/ltp/testcases/kernel/syscalls/process_madvise/
H A Dprocess_madvise.h48 f = SAFE_FOPEN(smaps, "r"); in read_address_mapping()
/third_party/ltp/testcases/kernel/security/integrity/ima/src/
H A Dima_boot_aggregate.c70 fp = SAFE_FOPEN(file, "r"); in do_test()
/third_party/ltp/testcases/kernel/security/umip/
H A Dumip_basic_test.c164 fp = SAFE_FOPEN(CPUINFO_FILE, "r"); in setup()
/third_party/ltp/testcases/kernel/firmware/fw_load_user/
H A Dfw_load.c200 FILE *f = SAFE_FOPEN(cleanup, fi->file, "w"); in create_firmware()
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx01.c66 file = SAFE_FOPEN("/proc/self/mountinfo", "r"); in test_mnt_id()
/third_party/ltp/testcases/kernel/device-drivers/zram/
H A Dzram03.c190 file = SAFE_FOPEN("/proc/modules", "r"); in setup()
/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise11.c273 FILE *file = SAFE_FOPEN(path, "r"); in find_in_file()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify10.c494 f = SAFE_FOPEN(procfdinfo, "r"); in show_fanotify_ignore_marks()

Completed in 11 milliseconds