• 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* 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()
59 int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* time… in ppoll()
61 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in ppoll()
64 size_t bos_fds = __bos(fds); in ppoll()
66 if (!__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { in ppoll()
67 return __ppoll_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll()
70 return __call_bypassing_fortify(ppoll)(fds, fd_count, timeout, mask); in ppoll()
76 int ppoll64(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* ti… in ppoll64()
78 __clang_error_if(__bos_unevaluated_lt(__bos(fds), sizeof(*fds) * fd_count), in ppoll64()
81 size_t bos_fds = __bos(fds); in ppoll64()
83 if (!__bos_fd_count_trivially_safe(bos_fds, fds, fd_count)) { in ppoll64()
84 return __ppoll64_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll64()
87 return __call_bypassing_fortify(ppoll64)(fds, fd_count, timeout, mask); in ppoll64()