Lines Matching refs:n_fds
110 static int shift_fds(int fds[], unsigned n_fds) {
113 if (n_fds <= 0)
126 for (i = start; i < (int) n_fds; i++) {
155 static int flags_fds(const int fds[], unsigned n_fds, bool nonblock) {
159 if (n_fds <= 0)
166 for (i = 0; i < n_fds; i++) {
820 int fds[], unsigned n_fds) {
909 close_many(fds, n_fds);
1249 unsigned n_fds,
1266 if (n_fds > 0) {
1273 if (asprintf(&x, "LISTEN_FDS=%u", n_fds) < 0)
1405 int *fds, unsigned n_fds) {
1408 int dont_close[n_fds + 7];
1421 if (n_fds > 0) {
1422 memcpy(dont_close + n_dont_close, fds, sizeof(int) * n_fds);
1423 n_dont_close += n_fds;
1447 int *fds, unsigned n_fds,
1493 r = close_remaining_fds(params, runtime, socket_fd, fds, n_fds);
1748 r = setup_pam(context->pam_name, username, uid, context->tty_path, &pam_env, fds, n_fds);
1855 r = close_all_fds(fds, n_fds);
1857 r = shift_fds(fds, n_fds);
1859 r = flags_fds(fds, n_fds, context->non_blocking);
2006 r = build_environment(context, params, n_fds, home, username, shell, &our_env);
2067 int *fds = NULL; unsigned n_fds = 0;
2078 assert(params->fds || params->n_fds <= 0);
2084 if (params->n_fds != 1) {
2093 n_fds = params->n_fds;
2124 fds, n_fds,