• Home
  • Raw
  • Download

Lines Matching refs:fds

38 #define __bos_fd_count_trivially_safe(bos_val, fds, fd_count)              \  argument
39 __bos_dynamic_check_impl_and((bos_val), >=, (sizeof(*fds) * (fd_count)), \
40 (fd_count) <= __BIONIC_CAST(static_cast, nfds_t, -1) / sizeof(*fds))
43 int poll(struct pollfd* _Nullable const fds __pass_object_size, nfds_t fd_count, int timeout) in poll()
45 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in poll()
48 size_t bos_fds = __bos(fds); in poll()
50 if (!__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { in poll()
51 return __poll_chk(fds, fd_count, timeout, bos_fds); in poll()
54 return __call_bypassing_fortify(poll)(fds, fd_count, timeout); in poll()
58 int ppoll(struct pollfd* _Nullable const fds __pass_object_size, nfds_t fd_count, const struct time… in ppoll()
60 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in ppoll()
63 size_t bos_fds = __bos(fds); in ppoll()
65 if (!__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { in ppoll()
66 return __ppoll_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll()
69 return __call_bypassing_fortify(ppoll)(fds, fd_count, timeout, mask); in ppoll()
74 int ppoll64(struct pollfd* _Nullable const fds __pass_object_size, nfds_t fd_count, const struct ti… in ppoll64()
76 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in ppoll64()
79 size_t bos_fds = __bos(fds); in ppoll64()
81 if (!__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { in ppoll64()
82 return __ppoll64_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll64()
85 return __call_bypassing_fortify(ppoll64)(fds, fd_count, timeout, mask); in ppoll64()