Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dlibc_init_common.cpp139 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio() local
140 if (dev_null == -1) { in __nullify_closed_stdio()
142 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
144 if (dev_null == -1) { in __nullify_closed_stdio()
152 if (i == dev_null) { in __nullify_closed_stdio()
168 status = TEMP_FAILURE_RETRY(dup2(dev_null, i)); in __nullify_closed_stdio()
178 if (dev_null > 2) { in __nullify_closed_stdio()
179 if (close(dev_null) == -1) { in __nullify_closed_stdio()