Searched defs:n_fds (Results 1 - 13 of 13) sorted by relevance

/systemd/src/libsystemd/sd-bus/
H A Dbus-container.c249 unsigned n_fds; local
254 n_fds = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int);
256 if (n_fds != 1) {
257 close_many(fds, n_fds);
H A Dbus-message.h120 uint32_t n_fds; member in struct:sd_bus_message
206 unsigned n_fds,
216 unsigned n_fds,
H A Dbus-internal.h268 unsigned n_fds; member in struct:sd_bus
H A Dbus-kernel.c135 static void append_fds(struct kdbus_item **d, const int fds[], unsigned n_fds) { argument
138 assert(n_fds > 0);
141 (*d)->size = offsetof(struct kdbus_item, fds) + sizeof(int) * n_fds;
143 memcpy((*d)->fds, fds, sizeof(int) * n_fds);
324 if (m->n_fds > 0)
325 sz += ALIGN8(offsetof(struct kdbus_item, fds) + sizeof(int)*m->n_fds);
400 if (m->n_fds > 0)
401 append_fds(&d, m->fds, m->n_fds);
443 unsigned n_fds = 0; local
490 f = realloc(fds, sizeof(int) * (n_fds
[all...]
H A Dbus-message.c141 close_many(m->fds, m->n_fds);
434 unsigned n_fds,
446 assert(fds || n_fds <= 0);
525 m->n_fds = n_fds;
546 unsigned n_fds,
559 fds, n_fds,
1454 f = realloc(m->fds, sizeof(int) * (m->n_fds + 1));
1462 m->fds[m->n_fds] = copy;
1536 u32 = m->n_fds;
426 bus_message_from_header( sd_bus *bus, void *header, size_t header_accessible, void *footer, size_t footer_accessible, size_t message_size, int *fds, unsigned n_fds, const char *label, size_t extra, sd_bus_message **ret) argument
541 bus_message_from_malloc( sd_bus *bus, void *buffer, size_t length, int *fds, unsigned n_fds, const char *label, sd_bus_message **ret) argument
[all...]
/systemd/src/basic/
H A Dfdset.c43 int fdset_new_array(FDSet **ret, const int *fds, unsigned n_fds) { argument
54 for (i = 0; i < n_fds; i++) {
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c110 int n_names = 0, n_fds; local
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) { argument
427 if (n_fds > 0 && !fds) {
467 if (n_fds >
[all...]
/systemd/src/activate/
H A Dactivate.c131 static int exec_process(const char* name, char **argv, char **env, int start_fd, int n_fds) { argument
141 if (arg_inetd && n_fds != 1) {
198 assert(n_fds == 1);
211 assert(n_fds == 1);
221 if (asprintf((char**)(envp + n_env++), "LISTEN_FDS=%i", n_fds) < 0)
234 for (i = 1; i < (unsigned) n_fds; i++) {
/systemd/src/core/
H A Dexecute.h218 unsigned n_fds; member in struct:ExecParameters
H A Dexecute.c110 static int shift_fds(int fds[], unsigned n_fds) { argument
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) { argument
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 >
814 setup_pam( const char *name, const char *user, uid_t uid, const char *tty, char ***pam_env, int fds[], unsigned n_fds) argument
1246 build_environment( const ExecContext *c, const ExecParameters *p, unsigned n_fds, const char *home, const char *username, const char *shell, char ***ret) argument
1401 close_remaining_fds( const ExecParameters *params, ExecRuntime *runtime, int socket_fd, int *fds, unsigned n_fds) argument
1439 exec_child( Unit *unit, ExecCommand *command, const ExecContext *context, const ExecParameters *params, ExecRuntime *runtime, char **argv, int socket_fd, int *fds, unsigned n_fds, char **files_env, int *exit_status) argument
2067 int *fds = NULL; unsigned n_fds = 0; local
[all...]
H A Dmanager.c1542 unsigned n_fds = 0; local
1565 n_fds = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int);
1575 if (n_fds > 0) {
1578 r = fdset_new_array(&fds, fd_array, n_fds);
1580 close_many(fd_array, n_fds);
H A Dservice.c1162 unsigned n_fds = 0, n_env = 0; local
1201 n_fds = r;
1285 exec_params.n_fds = n_fds;
/systemd/src/journal/
H A Djournald-server.c1162 unsigned n_fds = 0; local
1240 n_fds = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int);
1248 if (n > 0 && n_fds == 0)
1250 else if (n_fds > 0)
1254 if (n > 0 && n_fds == 0)
1256 else if (n == 0 && n_fds == 1)
1258 else if (n_fds > 0)
1264 if (n > 0 && n_fds == 0)
1266 else if (n_fds > 0)
1270 close_many(fds, n_fds);
[all...]

Completed in 1741 milliseconds