Lines Matching refs:fd_count
1318 const size_t fd_count = val.getFdCount(); in write() local
1320 if ((len > INT32_MAX) || (fd_count >= gMaxFds)) { in write()
1329 err = this->writeInt32(fd_count); in write()
1338 if (fd_count) { in write()
1339 fds = new (std::nothrow) int[fd_count]; in write()
1341 ALOGE("write: failed to allocate requested %zu fds", fd_count); in write()
1346 err = val.flatten(buf, len, fds, fd_count); in write()
1347 for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { in write()
1351 if (fd_count) { in write()
2350 const size_t fd_count = this->readInt32(); in read() local
2352 if ((len > INT32_MAX) || (fd_count >= gMaxFds)) { in read()
2364 if (fd_count) { in read()
2365 fds = new (std::nothrow) int[fd_count]; in read()
2367 ALOGE("read: failed to allocate requested %zu fds", fd_count); in read()
2373 for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { in read()
2378 i, fds[i], fd_count, strerror(fd < 0 ? -fd : errno)); in read()
2387 err = val.unflatten(buf, len, fds, fd_count); in read()
2390 if (fd_count) { in read()