Lines Matching defs:fds
1418 log_unit_warning_errno(UNIT(s), r, "Failed to watch listening fds: %m");
2128 static int socket_serialize(Unit *u, FILE *f, FDSet *fds) {
2135 assert(fds);
2153 copy = fdset_put_dup(fds, p->fd);
2184 static int socket_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) {
2236 if (sscanf(value, "%i %n", &fd, &skip) < 1 || fd < 0 || !fdset_contains(fds, fd))
2247 p->fd = fdset_remove(fds, fd);
2255 if (sscanf(value, "%i %n", &fd, &skip) < 1 || fd < 0 || !fdset_contains(fds, fd))
2266 p->fd = fdset_remove(fds, fd);
2274 if (sscanf(value, "%i %n", &fd, &skip) < 1 || fd < 0 || !fdset_contains(fds, fd))
2285 p->fd = fdset_remove(fds, fd);
2293 if (sscanf(value, "%i %i %n", &fd, &type, &skip) < 2 || fd < 0 || type < 0 || !fdset_contains(fds, fd))
2303 p->fd = fdset_remove(fds, fd);
2311 if (sscanf(value, "%i %n", &fd, &skip) < 1 || fd < 0 || !fdset_contains(fds, fd))
2321 p->fd = fdset_remove(fds, fd);
2329 if (sscanf(value, "%i %n", &fd, &skip) < 1 || fd < 0 || !fdset_contains(fds, fd))
2340 p->fd = fdset_remove(fds, fd);
2350 static void socket_distribute_fds(Unit *u, FDSet *fds) {
2366 FDSET_FOREACH(fd, fds, i) {
2368 p->fd = fdset_remove(fds, fd);
2653 int socket_collect_fds(Socket *s, int **fds) {
2658 assert(fds);
2660 /* Called from the service code for requesting our fds */
2669 *fds = NULL;
2688 *fds = rfds;