Lines Matching defs:fileno
445 int fileno,
459 if (fileno == STDOUT_FILENO && params->stdout_fd >= 0) {
467 if (fileno == STDERR_FILENO && params->stderr_fd >= 0) {
477 if (fileno == STDERR_FILENO) {
490 return fileno;
494 return dup2(STDOUT_FILENO, fileno) < 0 ? -errno : fileno;
501 return open_terminal_as(exec_context_tty_path(context), O_WRONLY, fileno);
505 return dup2(STDIN_FILENO, fileno) < 0 ? -errno : fileno;
509 return fileno;
512 return open_null_as(O_WRONLY, fileno);
518 return open_null_as(O_WRONLY, fileno);
522 return dup2(STDIN_FILENO, fileno) < 0 ? -errno : fileno;
525 return open_terminal_as(exec_context_tty_path(context), O_WRONLY, fileno);
533 r = connect_logger_as(context, o, ident, unit->id, fileno, uid, gid);
535 log_unit_error_errno(unit, r, "Failed to connect %s to the journal socket, ignoring: %m", fileno == STDOUT_FILENO ? "stdout" : "stderr");
536 r = open_null_as(O_WRONLY, fileno);
542 return dup2(socket_fd, fileno) < 0 ? -errno : fileno;