Searched defs:nfd (Results 1 - 5 of 5) sorted by relevance
/systemd/src/core/ |
H A D | dbus.c | 619 _cleanup_close_ int nfd = -1; local 627 nfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC); 628 if (nfd < 0) { 650 r = sd_bus_set_fd(bus, nfd, nfd); 656 nfd = -1;
|
H A D | execute.c | 127 int nfd; local 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) { argument 232 assert(nfd >= 0); 238 if (fd != nfd) { 239 r = dup2(fd, nfd) < 0 ? -errno : nfd; 291 connect_logger_as(const ExecContext *context, ExecOutput output, const char *ident, const char *unit_id, int nfd, uid_t uid, gid_t gid) argument 338 open_terminal_as(const char *path, mode_t mode, int nfd) argument [all...] |
/systemd/src/socket-proxy/ |
H A D | socket-proxyd.c | 494 int nfd = -1, r; local 501 nfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC); 502 if (nfd < 0) { 506 getpeername_pretty(nfd, true, &peer); 509 r = add_connection_socket(context, nfd);
|
/systemd/src/basic/ |
H A D | fileio.c | 925 int nfd; local 930 nfd = openat(fd, name, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|flags, 0); 931 if (nfd < 0) 934 d = fdopendir(nfd); 936 safe_close(nfd);
|
/systemd/src/shared/ |
H A D | install.c | 384 int nfd, q; local 386 nfd = openat(fd, de->d_name, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW); 387 if (nfd < 0) { 398 safe_close(nfd); 402 /* This will close nfd, regardless whether it succeeds or not */ 403 q = remove_marked_symlinks_fd(remove_symlinks_to, nfd, p, config_path, restart, changes, n_changes); 530 int nfd, q; local 532 nfd = openat(fd, de->d_name, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW); 533 if (nfd < 0) { 544 safe_close(nfd); [all...] |
Completed in 27 milliseconds