Home
last modified time | relevance | path

Searched refs:null_fd (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dtest_bprm_opts.c42 int child_pid, child_status, ret, null_fd; in run_set_secureexec() local
46 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()
47 if (null_fd == -1) in run_set_secureexec()
49 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec()
50 dup2(null_fd, STDERR_FILENO); in run_set_secureexec()
51 close(null_fd); in run_set_secureexec()
Dtest_local_storage.c43 int null_fd; in run_self_unlink() local
47 null_fd = open("/dev/null", O_WRONLY); in run_self_unlink()
48 dup2(null_fd, STDOUT_FILENO); in run_self_unlink()
49 dup2(null_fd, STDERR_FILENO); in run_self_unlink()
50 close(null_fd); in run_self_unlink()