Home
last modified time | relevance | path

Searched refs:fdset (Results 1 - 15 of 15) sorted by relevance

/kernel/liteos_a/fs/vfs/epoll/
H A Dfs_epoll.c71 fd_set *fdset = &g_epollFdSet; in EpollAllocSysFd() local
74 if (fdset && !(FD_ISSET(i, fdset))) { in EpollAllocSysFd()
75 FD_SET(i, fdset); in EpollAllocSysFd()
102 fd_set *fdset = &g_epollFdSet; in EpollFreeSysFd() local
103 if (fdset && FD_ISSET(efd, fdset)) { in EpollFreeSysFd()
104 FD_CLR(efd, fdset); in EpollFreeSysFd()
/third_party/curl/lib/
H A Dwarnless.h82 int curlx_FD_ISSET(int fd, fd_set *fdset);
84 void curlx_FD_SET(int fd, fd_set *fdset);
86 void curlx_FD_ZERO(fd_set *fdset);
/third_party/rust/crates/nix/src/sys/
H A Dselect.rs30 let mut fdset = mem::MaybeUninit::uninit(); in new() variables
32 libc::FD_ZERO(fdset.as_mut_ptr()); in new()
33 FdSet(fdset.assume_init()) in new()
/third_party/skia/third_party/externals/tint/tools/src/cmd/remote-compile/
H A Dsocket.cc291 fd_set fdset; in Connect()
292 FD_ZERO(&fdset); in Connect()
293 FD_SET(socket, &fdset); in Connect()
298 res = select(static_cast<int>(socket + 1), nullptr, &fdset, nullptr, &tv); in Connect()
/third_party/node/deps/openssl/openssl/util/perl/TLSProxy/
H A DProxy.pm358 my $fdset = IO::Select->new($self->{proxy_sock});
359 if (!$fdset->can_read(60)) {
376 $fdset = IO::Select->new($server_sock, $client_sock);
381 while($fdset->count && $ctr < 10) {
388 if (!(@ready = $fdset->can_read(1))) {
400 $fdset->remove($server_sock);
410 $fdset->remove($client_sock);
/third_party/openssl/util/perl/TLSProxy/
H A DProxy.pm358 my $fdset = IO::Select->new($self->{proxy_sock});
359 if (!$fdset->can_read(60)) {
376 $fdset = IO::Select->new($server_sock, $client_sock);
381 while($fdset->count && $ctr < 10) {
388 if (!(@ready = $fdset->can_read(1))) {
400 $fdset->remove($server_sock);
410 $fdset->remove($client_sock);
/third_party/curl/tests/libtest/
H A Dlib582.c192 static void updateFdSet(struct Sockets *sockets, fd_set* fdset, in updateFdSet() argument
197 FD_SET(sockets->sockets[i], fdset); in updateFdSet()
218 static void checkFdSet(CURLM *curl, struct Sockets *sockets, fd_set *fdset, in checkFdSet() argument
223 if(FD_ISSET(sockets->sockets[i], fdset)) { in checkFdSet()
H A Dlib530.c218 static void updateFdSet(struct Sockets *sockets, fd_set* fdset, in updateFdSet() argument
223 FD_SET(sockets->sockets[i], fdset); in updateFdSet()
246 struct Sockets *sockets, fd_set *fdset, in checkFdSet()
252 if(FD_ISSET(sockets->sockets[i], fdset)) { in checkFdSet()
245 checkFdSet(CURLM *curl, struct Sockets *sockets, fd_set *fdset, int evBitmask, const char *name) checkFdSet() argument
/kernel/linux/linux-5.10/fs/
H A Dselect.c389 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() argument
393 return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0; in get_fd_set()
395 memset(fdset, 0, nr); in get_fd_set()
400 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() argument
403 return __copy_to_user(ufdset, fdset, FDS_BYTES(nr)); in set_fd_set()
408 void zero_fd_set(unsigned long nr, unsigned long *fdset) in zero_fd_set() argument
410 memset(fdset, 0, FDS_BYTES(nr)); in zero_fd_set()
649 * since we used fdset we need to allocate memory in units of in core_sys_select()
1160 unsigned long *fdset) in compat_get_fd_set()
1163 return compat_get_bitmap(fdset, ufdse in compat_get_fd_set()
1159 compat_get_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_get_fd_set() argument
1171 compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_set_fd_set() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A Dselect.c390 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() argument
394 return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0; in get_fd_set()
396 memset(fdset, 0, nr); in get_fd_set()
401 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() argument
404 return __copy_to_user(ufdset, fdset, FDS_BYTES(nr)); in set_fd_set()
409 void zero_fd_set(unsigned long nr, unsigned long *fdset) in zero_fd_set() argument
411 memset(fdset, 0, FDS_BYTES(nr)); in zero_fd_set()
650 * since we used fdset we need to allocate memory in units of in core_sys_select()
1161 unsigned long *fdset) in compat_get_fd_set()
1164 return compat_get_bitmap(fdset, ufdse in compat_get_fd_set()
1160 compat_get_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_get_fd_set() argument
1172 compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset, unsigned long *fdset) compat_set_fd_set() argument
[all...]
/kernel/liteos_a/compat/posix/src/
H A Dmqueue.c329 * @param fdset: Mqueue sysFd bit map.
336 fd_set *fdset = &IPC_QUEUE_FD_SET; in MqAllocSysFd() local
339 if (fdset && !(FD_ISSET(i + MQUEUE_FD_OFFSET, fdset))) { in MqAllocSysFd()
340 FD_SET(i + MQUEUE_FD_OFFSET, fdset); in MqAllocSysFd()
353 fd_set *fdset = &IPC_QUEUE_FD_SET; in MqFreeSysFd() local
354 if (fdset && FD_ISSET(sysFd, fdset)) { in MqFreeSysFd()
355 FD_CLR(sysFd, fdset); in MqFreeSysFd()
/third_party/backends/backend/pixma/
H A Dpixma_bjnp.c672 fd_set fdset; in udp_command() local
698 FD_ZERO (&fdset); in udp_command()
699 FD_SET (sockfd, &fdset); in udp_command()
705 select (sockfd + 1, &fdset, NULL, NULL, &timeout)) <= 0) in udp_command()
2027 fd_set fdset; in sanei_bjnp_find_devices() local
2103 FD_ZERO (&fdset); in sanei_bjnp_find_devices()
2129 FD_SET (socket_fd[no_sockets], &fdset); in sanei_bjnp_find_devices()
2157 FD_SET (socket_fd[no_sockets], &fdset); in sanei_bjnp_find_devices()
2174 FD_SET (socket_fd[no_sockets], &fdset); in sanei_bjnp_find_devices()
2209 active_fdset = fdset; in sanei_bjnp_find_devices()
[all...]
/third_party/backends/backend/
H A Dmagicolor.c2081 fd_set fdset; in mc_network_discovery() local
2087 FD_ZERO (&fdset); in mc_network_discovery()
2088 snmp_select_info (&fds, &fdset, &timeout, &block); in mc_network_discovery()
2089 fds = select (fds, &fdset, NULL, NULL, /*block?NULL:*/&timeout); in mc_network_discovery()
2090 if (fds) snmp_read(&fdset); in mc_network_discovery()
/third_party/mksh/
H A Dfuncs.c1736 fd_set fdset; in c_read() local
1738 FD_ZERO(&fdset); in c_read()
1739 FD_SET((unsigned int)fd, &fdset); in c_read()
1748 switch (select(fd + 1, &fdset, NULL, NULL, &tv)) { in c_read()
/third_party/lwip/src/api/
H A Dsockets.c1977 lwip_select_inc_sockets_used_set(int maxfdp, fd_set *fdset, fd_set *used_sockets) in lwip_select_inc_sockets_used_set() argument
1980 if (fdset) { in lwip_select_inc_sockets_used_set()
1984 if (FD_ISSET(i, fdset) && !FD_ISSET(i, used_sockets)) { in lwip_select_inc_sockets_used_set()

Completed in 23 milliseconds