Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dlibc_init_common.cpp122 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio() local
123 if (dev_null == -1) { in __nullify_closed_stdio()
125 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
127 if (dev_null == -1) { in __nullify_closed_stdio()
135 if (i == dev_null) { in __nullify_closed_stdio()
151 status = TEMP_FAILURE_RETRY(dup2(dev_null, i)); in __nullify_closed_stdio()
161 if (dev_null > 2) { in __nullify_closed_stdio()
162 if (close(dev_null) == -1) { in __nullify_closed_stdio()