Lines Matching defs:n_fds
110 int n_names = 0, n_fds;
129 n_fds = sd_listen_fds(unset_environment);
130 if (n_fds <= 0)
131 return n_fds;
134 if (n_names != n_fds)
137 r = strv_extend_n(&l, "unknown", n_fds);
145 return n_fds;
404 _public_ int sd_pid_notify_with_fds(pid_t pid, int unset_environment, const char *state, const int *fds, unsigned n_fds) {
427 if (n_fds > 0 && !fds) {
467 if (n_fds > 0 || have_pid) {
470 (n_fds > 0 ? CMSG_SPACE(sizeof(int) * n_fds) : 0) +
476 if (n_fds > 0) {
479 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * n_fds);
481 memcpy(CMSG_DATA(cmsg), fds, sizeof(int) * n_fds);