Lines Matching refs:fds
550 // officially know we have fds.
1284 int* fds = NULL;
1286 fds = new (std::nothrow) int[fd_count];
1287 if (fds == nullptr) {
1288 ALOGE("write: failed to allocate requested %zu fds", fd_count);
1293 err = val.flatten(buf, len, fds, fd_count);
1295 err = this->writeDupFileDescriptor( fds[i] );
1299 delete [] fds;
2306 int* fds = NULL;
2308 fds = new (std::nothrow) int[fd_count];
2309 if (fds == nullptr) {
2310 ALOGE("read: failed to allocate requested %zu fds", fd_count);
2318 if (fd < 0 || ((fds[i] = fcntl(fd, F_DUPFD_CLOEXEC, 0)) < 0)) {
2320 ALOGE("fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is %zu, fds[i] is %d, fd_count is %zu, error: %s",
2321 i, fds[i], fd_count, strerror(fd < 0 ? -fd : errno));
2324 close(fds[j]);
2330 err = val.unflatten(buf, len, fds, fd_count);
2334 delete [] fds;