Searched defs:null_fd (Results 1 - 4 of 4) sorted by relevance

/systemd/src/import/
H A Dimport-common.c89 int null_fd; local
114 null_fd = open("/dev/null", O_WRONLY|O_NOCTTY);
115 if (null_fd < 0) {
120 if (dup2(null_fd, STDOUT_FILENO) != STDOUT_FILENO) {
125 if (null_fd != STDOUT_FILENO)
126 null_fd = safe_close(null_fd);
169 int null_fd; local
188 null_fd = open("/dev/null", O_RDONLY|O_NOCTTY);
189 if (null_fd <
[all...]
H A Dpull-common.c462 int null_fd; local
480 null_fd = open("/dev/null", O_WRONLY|O_NOCTTY);
481 if (null_fd < 0) {
486 if (dup2(null_fd, STDOUT_FILENO) != STDOUT_FILENO) {
491 if (null_fd != STDOUT_FILENO)
492 null_fd = safe_close(null_fd);
H A Dimportd.c434 int null_fd; local
436 null_fd = open("/dev/null", O_RDONLY|O_NOCTTY);
437 if (null_fd < 0) {
442 if (dup2(null_fd, STDIN_FILENO) != STDIN_FILENO) {
447 if (null_fd != STDIN_FILENO)
448 safe_close(null_fd);
/systemd/src/basic/
H A Dterminal-util.c840 int null_fd; local
842 null_fd = open("/dev/null", O_RDWR|O_NOCTTY);
843 if (null_fd < 0)
846 return make_stdio(null_fd);

Completed in 50 milliseconds