/external/valgrind/main/memcheck/tests/ |
badpoll.c | 12 struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1); local 13 assert(ufds); 15 ufds[0].fd = 0; 16 ufds[0].events = 0; 17 //ufds[1].fd = 0; // leave undefined so we get another error. 18 ufds[1].events = 0; 21 // but not the undefined value error due to ufds[1].fd not being defined. 22 poll(ufds, 2, 200);
|
/system/core/debuggerd/ |
getevent.c | 15 static struct pollfd *ufds; variable in typeref:struct:pollfd 57 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 62 ufds = new_ufds; 69 ufds[nfds].fd = fd; 70 ufds[nfds].events = POLLIN; 85 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); 165 ufds = calloc(1, sizeof(ufds[0])) [all...] |
/system/core/toolbox/ |
getevent.c | 16 static struct pollfd *ufds; variable in typeref:struct:pollfd 338 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 343 ufds = new_ufds; 379 ufds[nfds].fd = fd; 380 ufds[nfds].events = POLLIN; 397 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); 589 ufds = calloc(1, sizeof(ufds[0])) [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-linux.c | 1160 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local 1187 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local [all...] |
syswrap-generic.c | 3722 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local 3742 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local [all...] |
/system/core/init/ |
init.c | 965 struct pollfd ufds[4]; local 1090 ufds[fd_count].fd = get_property_set_fd(); 1091 ufds[fd_count].events = POLLIN; 1092 ufds[fd_count].revents = 0; 1097 ufds[fd_count].fd = get_signal_fd(); 1098 ufds[fd_count].events = POLLIN; 1099 ufds[fd_count].revents = 0; 1104 ufds[fd_count].fd = get_keychord_fd(); 1105 ufds[fd_count].events = POLLIN; 1106 ufds[fd_count].revents = 0 [all...] |