Home
last modified time | relevance | path

Searched refs:dev_null_fd (Results 1 – 9 of 9) sorted by relevance

/aosp_15_r20/frameworks/base/core/jni/
H A Dfd_utils.cpp465 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 Dafl-forkserver.c230 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 Dafl-analyze.c633 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 Dafl-tmin.c649 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 Dafl-showmap.c1426 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 Dafl-fuzz-state.c139 afl->fsrv.dev_null_fd = -1; in afl_state_init()
H A Dafl-fuzz-init.c2199 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 Dafl-network-server.c161 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 Dforkserver.h113 dev_null_fd, /* Persistent fd for /dev/null */ member