Home
last modified time | relevance | path

Searched refs:NUM_FDS (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc/test/core/iomgr/
Dev_epollsig_linux_test.cc128 #define NUM_FDS 8 macro
133 test_fd tfds[NUM_FDS]; in test_add_fd_to_pollset()
134 int fds[NUM_FDS]; in test_add_fd_to_pollset()
139 test_fd_init(tfds, fds, NUM_FDS); in test_add_fd_to_pollset()
201 for (i = 1; i < NUM_FDS; i++) { in test_add_fd_to_pollset()
212 test_fd_cleanup(tfds, NUM_FDS); in test_add_fd_to_pollset()
216 #undef NUM_FDS
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_vios.rs123 const NUM_FDS: usize = 5; in try_new() constant
124 fds.resize(NUM_FDS, 0); in try_new()
172 let rx_shm_file = pop::<File>(&mut safe_fds, NUM_FDS, fd_count)?; in try_new()
173 let tx_shm_file = pop::<File>(&mut safe_fds, NUM_FDS, fd_count)?; in try_new()
174 let rx_socket = pop::<UnixSeqpacket>(&mut safe_fds, NUM_FDS, fd_count)?; in try_new()
175 let tx_socket = pop::<UnixSeqpacket>(&mut safe_fds, NUM_FDS, fd_count)?; in try_new()
176 let event_socket = pop::<UnixSeqpacket>(&mut safe_fds, NUM_FDS, fd_count)?; in try_new()
180 ProtocolErrorKind::UnexpectedNumberOfFileDescriptors(NUM_FDS, fd_count), in try_new()
/external/python/cpython3/Lib/test/
Dtest_selectors.py456 NUM_FDS = min(hard, 2**16)
458 NUM_FDS = soft
461 NUM_FDS -= 32
466 for i in range(NUM_FDS // 2):
492 self.assertEqual(NUM_FDS // 2, len(fds))