Lines Matching defs:n_fds
261 * @param n_fds on input space in fds array, on output how many fds actually got read
269 int *n_fds) {
276 *n_fds = 0;
286 _dbus_assert (*n_fds >= 0);
308 m.msg_controllen = CMSG_SPACE(*n_fds * sizeof(int));
356 _dbus_assert(cm->cmsg_len <= CMSG_LEN(*n_fds * sizeof(int)));
357 *n_fds = (cm->cmsg_len - CMSG_LEN(0)) / sizeof(int);
359 memcpy(fds, CMSG_DATA(cm), *n_fds * sizeof(int));
365 for (i = 0; i < *n_fds; i++)
372 *n_fds = 0;
393 int n_fds) {
397 if (n_fds > 0) {
404 return _dbus_write_socket_with_unix_fds_two(fd, buffer, start, len, NULL, 0, 0, fds, n_fds);
417 int n_fds) {
421 if (n_fds > 0) {
438 _dbus_assert (n_fds >= 0);
454 if (n_fds > 0)
456 m.msg_controllen = CMSG_SPACE(n_fds * sizeof(int));
463 cm->cmsg_len = CMSG_LEN(n_fds * sizeof(int));
464 memcpy(CMSG_DATA(cm), fds, n_fds * sizeof(int));
2503 * @param n_fds number of descriptors in the array
2509 int n_fds,
2532 n_fds,
2555 for (i = 0; i < n_fds; i++)
2578 for (i = 0; i < n_fds; i++)