Searched refs:dev_null (Results 1 – 1 of 1) sorted by relevance
142 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio() local143 if (dev_null == -1) { in __nullify_closed_stdio()145 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()147 if (dev_null == -1) { in __nullify_closed_stdio()155 if (i == dev_null) { in __nullify_closed_stdio()171 status = TEMP_FAILURE_RETRY(dup2(dev_null, i)); in __nullify_closed_stdio()181 if (dev_null > 2) { in __nullify_closed_stdio()182 if (close(dev_null) == -1) { in __nullify_closed_stdio()