Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bprm_opts.c34 int child_pid, child_status, ret, null_fd; in run_set_secureexec() local
38 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()
39 if (null_fd == -1) in run_set_secureexec()
41 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec()
42 dup2(null_fd, STDERR_FILENO); in run_set_secureexec()
43 close(null_fd); in run_set_secureexec()
H A Dtest_local_storage.c29 int null_fd; in run_self_unlink() local
33 null_fd = open("/dev/null", O_WRONLY); in run_self_unlink()
34 dup2(null_fd, STDOUT_FILENO); in run_self_unlink()
35 dup2(null_fd, STDERR_FILENO); in run_self_unlink()
36 close(null_fd); in run_self_unlink()