Lines Matching refs:numFds
28 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) {
36 handle->numFds = numFds;
41 native_handle_t* native_handle_create(int numFds, int numInts) {
42 if (numFds < 0 || numInts < 0 || numFds > kMaxNativeFds || numInts > kMaxNativeInts) {
47 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts));
51 h->numFds = numFds;
58 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts);
61 for (int i = 0; i < handle->numFds; i++) {
64 clone->numFds = i;
71 memcpy(&clone->data[handle->numFds], &handle->data[handle->numFds],
89 const int numFds = h->numFds;
90 for (int i = 0; i < numFds; ++i) {