Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/lldb/source/Utility/
H A DSelectHelper.cpp131 const unsigned nfds = static_cast<unsigned>(*max_fd) + 1; in Select() local
142 read_fdset.resize((nfds / FD_SETSIZE) + 1); in Select()
146 write_fdset.resize((nfds / FD_SETSIZE) + 1); in Select()
150 error_fdset.resize((nfds / FD_SETSIZE) + 1); in Select()
214 const int num_set_fds = ::select(nfds, read_fdset_ptr, write_fdset_ptr, in Select()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DMainLoop.cpp49 int ppoll(struct pollfd *fds, size_t nfds, const struct timespec *timeout_ts, in ppoll() argument
55 return POLL(fds, nfds, timeout); in ppoll()
174 int nfds = 0; in Poll() local
177 nfds = std::max(nfds, fd.first + 1); in Poll()
191 if (syscall(__NR_pselect6, nfds, &read_fd_set, nullptr, nullptr, nullptr, in Poll()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp1440 int __dfsw_poll(struct pollfd *fds, nfds_t nfds, int timeout, in __dfsw_poll() argument
1443 int ret = poll(fds, nfds, timeout); in __dfsw_poll()
1445 for (; nfds > 0; --nfds) { in __dfsw_poll()
1446 dfsan_set_label(0, &fds[nfds - 1].revents, sizeof(fds[nfds - 1].revents)); in __dfsw_poll()
1454 int __dfso_poll(struct pollfd *fds, nfds_t nfds, int timeout, in __dfso_poll() argument
1459 return __dfsw_poll(fds, nfds, timeout, dfs_label, nfds_label, timeout_label, in __dfso_poll()
1464 int __dfsw_select(int nfds, fd_set *readfds, fd_set *writefds, in __dfsw_select() argument
1469 int ret = select(nfds, readfds, writefds, exceptfds, timeout); in __dfsw_select()
1487 int __dfso_select(int nfds, fd_set *readfds, fd_set *writefds, in __dfso_select() argument
1495 return __dfsw_select(nfds, readfds, writefds, exceptfds, timeout, nfds_label, in __dfso_select()
/llvm-project-15.0.7/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h1121 #define __sanitizer_syscall_pre_poll(fds, nfds, timeout) \ argument
1122 __sanitizer_syscall_pre_impl_poll((long long)(fds), (long long)(nfds), \
1124 #define __sanitizer_syscall_post_poll(res, fds, nfds, timeout) \ argument
1125 __sanitizer_syscall_post_impl_poll(res, (long long)(fds), (long long)(nfds), \
2028 #define __sanitizer_syscall_pre_compat_50_pollts(fds, nfds, ts, mask) \ argument
2030 (long long)(fds), (long long)(nfds), (long long)(ts), (long long)(mask))
2031 #define __sanitizer_syscall_post_compat_50_pollts(res, fds, nfds, ts, mask) \ argument
3695 void __sanitizer_syscall_pre_impl_poll(long long fds, long long nfds,
3698 long long nfds, long long timeout);
4675 void __sanitizer_syscall_pre_impl___pollts50(long long fds, long long nfds,
[all …]
H A Dlinux_syscall_hooks.h1182 #define __sanitizer_syscall_pre_poll(ufds, nfds, timeout) \ argument
1183 __sanitizer_syscall_pre_impl_poll((long)(ufds), (long)(nfds), (long)(timeout))
1184 #define __sanitizer_syscall_post_poll(res, ufds, nfds, timeout) \ argument
1185 __sanitizer_syscall_post_impl_poll(res, (long)(ufds), (long)(nfds), \
2682 void __sanitizer_syscall_pre_impl_poll(long ufds, long nfds, long timeout);
2683 void __sanitizer_syscall_post_impl_poll(long res, long ufds, long nfds,
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4158 __sanitizer_nfds_t nfds) {
4159 for (unsigned i = 0; i < nfds; ++i) {
4166 __sanitizer_nfds_t nfds) {
4167 for (unsigned i = 0; i < nfds; ++i)
4175 COMMON_INTERCEPTOR_ENTER(ctx, poll, fds, nfds, timeout);
4176 if (fds && nfds) read_pollfd(ctx, fds, nfds);
4177 int res = COMMON_INTERCEPTOR_BLOCK_REAL(poll)(fds, nfds, timeout);
4178 if (fds && nfds) write_pollfd(ctx, fds, nfds);
4190 COMMON_INTERCEPTOR_ENTER(ctx, ppoll, fds, nfds, timeout_ts, sigmask);
4191 if (fds && nfds) read_pollfd(ctx, fds, nfds);
[all …]
H A Dsanitizer_common_syscalls.inc2052 PRE_SYSCALL(poll)(void *ufds, long nfds, long timeout) {}
2055 (long res, __sanitizer_pollfd *ufds, long nfds, long timeout) {
2058 POST_WRITE(ufds, nfds * sizeof(*ufds));
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachProcess.mm2471 int nfds = std::max<int>(stdout_fd, stderr_fd) + 1;
2473 int num_set_fds = select(nfds, &read_fds, NULL, NULL, NULL);
2475 "select (nfds, &read_fds, NULL, NULL, NULL) => %d",
2483 "select (nfds, &read_fds, NULL, NULL, NULL) => %d", num_set_fds);