/bionic/libc/bionic/ |
__poll_chk.cpp | 33 extern "C" int __poll_chk(struct pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) { 34 if (__predict_false(fds_size / sizeof(*fds) < fd_count)) { 37 return poll(fds, fd_count, timeout); 40 extern "C" int __ppoll_chk(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask, size_t fds_size) { 41 if (__predict_false(fds_size / sizeof(*fds) < fd_count)) { 44 return ppoll(fds, fd_count, timeout, mask);
|
poll.cpp | 40 int poll(pollfd* fds, nfds_t fd_count, int ms) { 47 return __ppoll(fds, fd_count, ts_ptr, NULL, 0); 50 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) { 65 return __ppoll(fds, fd_count, mutable_ts_ptr, kernel_ss_ptr, sizeof(kernel_ss)); 68 int select(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, timeval* tv) { 78 int result = __pselect6(fd_count, read_fds, write_fds, error_fds, ts_ptr, NULL); 85 int pselect(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, 111 return __pselect6(fd_count, read_fds, write_fds, error_fds, mutable_ts_ptr, &extra_data);
|
/bionic/libc/include/ |
poll.h | 55 int poll(struct pollfd* fds, nfds_t fd_count, int timeout) { 57 return __poll_chk(fds, fd_count, timeout, __bos(fds)); 60 if (!__builtin_constant_p(fd_count)) { 61 return __poll_chk(fds, fd_count, timeout, __bos(fds)); 62 } else if (__bos(fds) / sizeof(*fds) < fd_count) { 66 return __poll_real(fds, fd_count, timeout); 71 int ppoll(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask) { 73 return __ppoll_chk(fds, fd_count, timeout, mask, __bos(fds)); 76 if (!__builtin_constant_p(fd_count)) { 77 return __ppoll_chk(fds, fd_count, timeout, mask, __bos(fds)) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/psdk_inc/ |
_fd_types.h | 23 u_int fd_count; member in struct:fd_set 41 for(__i = 0; __i < ((fd_set *)(set))->fd_count; __i++) { \ 43 while (__i < ((fd_set *)(set))->fd_count - 1) { \ 48 ((fd_set *)(set))->fd_count--; \ 56 #define FD_ZERO(set) (((fd_set *)(set))->fd_count = 0) 76 for(__i = 0; __i < ((fd_set *)(set))->fd_count; __i++) { \ 81 if (__i == ((fd_set *)(set))->fd_count) { \ 82 if (((fd_set *)(set))->fd_count < FD_SETSIZE) { \ 84 ((fd_set *)(set))->fd_count++; \ 92 if (((fd_set *)(set))->fd_count < FD_SETSIZE) [all...] |
/frameworks/native/libs/binder/ |
Parcel.cpp | 973 const size_t fd_count = val.getFdCount(); local 975 if ((len > INT32_MAX) || (fd_count > INT32_MAX)) { 984 err = this->writeInt32(fd_count); 993 if (fd_count) { 994 fds = new int[fd_count]; 997 err = val.flatten(buf, len, fds, fd_count); 998 for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { 1002 if (fd_count) { 1411 const size_t fd_count = this->readInt32(); local [all...] |
/bionic/tests/ |
fortify_test.cpp | 968 nfds_t fd_count = atoi("2"); // suppress compiler optimizations local 971 ASSERT_FORTIFY(poll(buf, fd_count, 0)); 975 nfds_t fd_count = atoi("2"); // suppress compiler optimizations local 980 ASSERT_FORTIFY(ppoll(buf, fd_count, &timeout, NULL));
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/X11/ |
Xpoll.h | 167 #define XFD_SETCOUNT(p) (((fd_set FAR *)(p))->fd_count)
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/ |
Xpoll.h | 167 #define XFD_SETCOUNT(p) (((fd_set FAR *)(p))->fd_count)
|
/external/valgrind/coregrind/m_syswrap/ |
syswrap-generic.c | 548 static Int fd_count = 0; variable 571 fd_count--; 610 fd_count++; 803 VG_(message)(Vg_UserMsg, "FILE DESCRIPTORS: %d open %s.\n", fd_count, when); [all...] |