Searched refs:dev_null_fd (Results 1 – 9 of 9) sorted by relevance
/aosp_15_r20/frameworks/base/core/jni/ |
H A D | fd_utils.cpp | 465 const int dev_null_fd = open("/dev/null", O_RDWR | O_CLOEXEC); in DetachSocket() local 466 if (dev_null_fd < 0) { in DetachSocket() 470 if (dup3(dev_null_fd, fd, O_CLOEXEC) == -1) { in DetachSocket() 476 if (close(dev_null_fd) == -1) { in DetachSocket() 477 fail_fn(android::base::StringPrintf("Failed close(%d): %s", dev_null_fd, strerror(errno))); in DetachSocket()
|
/aosp_15_r20/external/AFLplusplus/src/ |
H A D | afl-forkserver.c | 230 fsrv->dev_null_fd = -1; in afl_fsrv_init() 261 fsrv_to->dev_null_fd = from->dev_null_fd; in afl_fsrv_init_dup() 409 close(fsrv->dev_null_fd); in afl_fauxsrv_execv() 902 dup2(fsrv->dev_null_fd, 1); in afl_fsrv_start() 903 dup2(fsrv->dev_null_fd, 2); in afl_fsrv_start() 909 dup2(fsrv->dev_null_fd, 0); in afl_fsrv_start() 929 close(fsrv->dev_null_fd); in afl_fsrv_start()
|
H A D | afl-analyze.c | 633 fsrv.dev_null_fd = open("/dev/null", O_RDWR); in set_up_environment() 634 if (fsrv.dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in set_up_environment()
|
H A D | afl-tmin.c | 649 fsrv->dev_null_fd = open("/dev/null", O_RDWR); in set_up_environment() 650 if (fsrv->dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in set_up_environment()
|
H A D | afl-showmap.c | 1426 fsrv->dev_null_fd = open("/dev/null", O_RDWR); in main() 1427 if (fsrv->dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in main()
|
H A D | afl-fuzz-state.c | 139 afl->fsrv.dev_null_fd = -1; in afl_state_init()
|
H A D | afl-fuzz-init.c | 2199 afl->fsrv.dev_null_fd = open("/dev/null", O_RDWR); 2200 if (afl->fsrv.dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); }
|
/aosp_15_r20/external/AFLplusplus/utils/afl_network_proxy/ |
H A D | afl-network-server.c | 161 fsrv->dev_null_fd = open("/dev/null", O_RDWR); in set_up_environment() 162 if (fsrv->dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in set_up_environment()
|
/aosp_15_r20/external/AFLplusplus/include/ |
H A D | forkserver.h | 113 dev_null_fd, /* Persistent fd for /dev/null */ member
|