/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify02.c | 42 static char event_buf[EVENT_BUF_LEN]; variable 73 ret = SAFE_READ(0, fd_notify, event_buf, in test01() 92 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01() 120 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01() 136 event = (struct fanotify_event_metadata *)&event_buf[i]; in test01()
|
H A D | fanotify01.c | 83 static char event_buf[EVENT_BUF_LEN]; variable 128 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify() 146 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 169 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 192 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 218 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 232 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 249 event = (struct fanotify_event_metadata *)&event_buf[i]; in test_fanotify()
|
H A D | fanotify23.c | 44 static char event_buf[EVENT_BUF_LEN]; variable 138 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify() 154 ret = read(fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify() 181 ret = SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify() 187 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify()
|
H A D | fanotify06.c | 65 static char event_buf[EVENT_BUF_LEN]; variable 177 ret = read(fd_notify[0][i], event_buf, EVENT_BUF_LEN); in test_fanotify() 192 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify() 205 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN); in test_fanotify() 209 close_events_fd((void *)event_buf, ret); in test_fanotify()
|
H A D | fanotify04.c | 37 static char event_buf[EVENT_SIZE]; variable 106 SAFE_READ(0, fd_notify, event_buf, EVENT_SIZE); in verify_event() 107 event = (struct fanotify_event_metadata *)&event_buf; in verify_event() 140 ret = read(fd_notify, event_buf, EVENT_SIZE); in verify_no_event() 144 event = (struct fanotify_event_metadata *)&event_buf; in verify_no_event()
|
H A D | fanotify21.c | 62 static char event_buf[BUF_SZ]; variable 159 len = SAFE_READ(0, fanotify_fd, event_buf, sizeof(event_buf)); in do_test() 165 event = (struct fanotify_event_metadata *)&event_buf[i]; in do_test()
|
H A D | fanotify19.c | 44 static struct fanotify_event_metadata event_buf[EVENT_BUF_LEN]; variable 195 len = SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify() 197 event = event_buf; in test_fanotify()
|
H A D | fanotify12.c | 42 static char event_buf[EVENT_BUF_LEN]; variable 181 len = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in do_test() 183 event = (struct fanotify_event_metadata *) event_buf; in do_test()
|
H A D | fanotify22.c | 49 static char event_buf[BUF_SIZE]; variable 259 read_len = SAFE_READ(0, fd_notify, event_buf, BUF_SIZE); in do_test() 264 check_event(event_buf, read_len, tcase); in do_test()
|
H A D | fanotify03.c | 51 static char event_buf[EVENT_BUF_LEN]; variable 253 ret = read(fd_notify, event_buf + len, in test_fanotify() 265 event = (struct fanotify_event_metadata *)&event_buf[i]; in test_fanotify()
|
H A D | fanotify09.c | 67 static char event_buf[EVENT_BUF_LEN]; variable 410 ret = read(fd_notify[0], event_buf, EVENT_BUF_LEN); in test_fanotify() 419 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify() 453 ret = read(fd_notify[i], event_buf, EVENT_BUF_LEN); in test_fanotify() 455 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify()
|
H A D | fanotify16.c | 63 static char event_buf[EVENT_BUF_LEN]; variable 348 len += SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in do_test() 476 len += SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in do_test() 537 event = (struct fanotify_event_metadata *)&event_buf[i]; in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
H A D | inotify12.c | 38 static char event_buf[EVENT_BUF_LEN]; variable 70 struct inotify_event *event = (struct inotify_event *)event_buf; in verify_inotify() 97 len = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 121 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
|
H A D | inotify11.c | 44 static char event_buf[EVENT_BUF_LEN]; variable 77 len = SAFE_READ(0, inotify_fd, event_buf, EVENT_BUF_LEN); in verify_inotify() 80 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify08.c | 62 static char event_buf[EVENT_BUF_LEN]; variable 87 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 97 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify03.c | 44 static char event_buf[EVENT_BUF_LEN]; variable 80 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 91 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify04.c | 49 char event_buf[EVENT_BUF_LEN]; variable 119 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 125 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify01.c | 42 static char event_buf[EVENT_BUF_LEN]; variable 89 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) { in verify_inotify() 101 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify05.c | 39 static char event_buf[EVENT_BUF_LEN]; variable 65 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 79 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify10.c | 79 char event_buf[EVENT_BUF_LEN]; variable 145 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 152 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify07.c | 64 static char event_buf[EVENT_BUF_LEN]; variable 89 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify() 99 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
H A D | inotify02.c | 53 static char event_buf[EVENT_BUF_LEN]; variable 125 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) == -1) { in verify_inotify() 134 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | driver_privsep.c | 515 u8 *buf, *event_buf; in wpa_driver_privsep_receive() local 543 event_buf = &buf[sizeof(int)]; in wpa_driver_privsep_receive() 558 event_buf, event_len); in wpa_driver_privsep_receive() 565 event_buf, event_len); in wpa_driver_privsep_receive() 569 drv->ctx, event_buf, event_len); in wpa_driver_privsep_receive() 572 wpa_driver_privsep_event_interface_status(drv->ctx, event_buf, in wpa_driver_privsep_receive() 576 wpa_driver_privsep_event_pmkid_candidate(drv->ctx, event_buf, in wpa_driver_privsep_receive() 580 wpa_driver_privsep_event_ft_response(drv->ctx, event_buf, in wpa_driver_privsep_receive() 584 wpa_driver_privsep_event_rx_eapol(drv->ctx, event_buf, in wpa_driver_privsep_receive() 588 wpa_driver_privsep_event_auth(drv->ctx, event_buf, event_le in wpa_driver_privsep_receive() [all...] |
H A D | driver_bsd.c | 54 char *event_buf; member 785 n = read(sock, global->event_buf, global->event_buf_len); in bsd_wireless_event_receive() 793 rtm = (struct rt_msghdr *) global->event_buf; in bsd_wireless_event_receive() 1224 n = read(sock, global->event_buf, global->event_buf_len); in wpa_driver_bsd_event_receive() 1232 rtm = (struct rt_msghdr *) global->event_buf; in wpa_driver_bsd_event_receive() 1687 global->event_buf = os_malloc(global->event_buf_len); in bsd_global_init() 1688 if (global->event_buf == NULL) { in bsd_global_init()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | driver_privsep.c | 521 u8 *buf, *event_buf; in wpa_driver_privsep_receive() local 549 event_buf = &buf[sizeof(int)]; in wpa_driver_privsep_receive() 564 event_buf, event_len); in wpa_driver_privsep_receive() 571 event_buf, event_len); in wpa_driver_privsep_receive() 575 drv->ctx, event_buf, event_len); in wpa_driver_privsep_receive() 578 wpa_driver_privsep_event_interface_status(drv->ctx, event_buf, in wpa_driver_privsep_receive() 582 wpa_driver_privsep_event_pmkid_candidate(drv->ctx, event_buf, in wpa_driver_privsep_receive() 586 wpa_driver_privsep_event_ft_response(drv->ctx, event_buf, in wpa_driver_privsep_receive() 590 wpa_driver_privsep_event_rx_eapol(drv->ctx, event_buf, in wpa_driver_privsep_receive() 594 wpa_driver_privsep_event_auth(drv->ctx, event_buf, event_le in wpa_driver_privsep_receive() [all...] |