Lines Matching defs:nfd
127 int nfd;
133 nfd = fcntl(fds[i], F_DUPFD, i + 3);
134 if (nfd < 0)
138 fds[i] = nfd;
142 if (nfd != i+3 && restart_from < 0)
229 static int open_null_as(int flags, int nfd) {
232 assert(nfd >= 0);
238 if (fd != nfd) {
239 r = dup2(fd, nfd) < 0 ? -errno : nfd;
242 r = nfd;
291 static int connect_logger_as(const ExecContext *context, ExecOutput output, const char *ident, const char *unit_id, int nfd, uid_t uid, gid_t gid) {
297 assert(nfd >= 0);
330 if (fd != nfd) {
331 r = dup2(fd, nfd) < 0 ? -errno : nfd;
334 r = nfd;
338 static int open_terminal_as(const char *path, mode_t mode, int nfd) {
342 assert(nfd >= 0);
348 if (fd != nfd) {
349 r = dup2(fd, nfd) < 0 ? -errno : nfd;
352 r = nfd;