Home
last modified time | relevance | path

Searched refs:SAFE_IOCTL (Results 1 – 22 of 22) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl06.c36 SAFE_IOCTL(fd, BLKRAGET, &rao); in verify_ioctl()
41 SAFE_IOCTL(fd, BLKRASET, ra); in verify_ioctl()
42 SAFE_IOCTL(fd, BLKRAGET, &rab); in verify_ioctl()
52 SAFE_IOCTL(fd, BLKRASET, rao); in verify_ioctl()
Dioctl04.c35 SAFE_IOCTL(fd, BLKROGET, &ro); in verify_ioctl()
43 SAFE_IOCTL(fd, BLKROSET, &ro); in verify_ioctl()
46 SAFE_IOCTL(fd, BLKROGET, &ro); in verify_ioctl()
80 SAFE_IOCTL(fd, BLKROSET, &ro); in verify_ioctl()
Dioctl05.c42 SAFE_IOCTL(fd, BLKGETSIZE, &size); in verify_ioctl()
43 SAFE_IOCTL(fd, BLKGETSIZE64, &size64); in verify_ioctl()
Dioctl07.c42 SAFE_IOCTL(fd, RNDGETENTCNT, &cnt); in verify_ioctl()
Dioctl03.c89 SAFE_IOCTL(netfd, TUNGETFEATURES, &features); in verify_features()
Dioctl02.c370 SAFE_IOCTL(cleanup, pfd, TCFLSH, 2); in do_parent_setup()
433 SAFE_IOCTL(cleanup, fd, TCGETA, &save_io); in setup()
/external/ltp/testcases/kernel/input/
Dinput_helper.c202 SAFE_IOCTL(NULL, fd, UI_DEV_CREATE, NULL); in create_device()
216 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup_mouse_events()
217 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_LEFT); in setup_mouse_events()
218 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_REL); in setup_mouse_events()
219 SAFE_IOCTL(NULL, fd, UI_SET_RELBIT, REL_X); in setup_mouse_events()
220 SAFE_IOCTL(NULL, fd, UI_SET_RELBIT, REL_Y); in setup_mouse_events()
225 SAFE_IOCTL(NULL, fd, UI_DEV_DESTROY, NULL); in destroy_device()
Dinput06.c86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
87 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_REP); in setup()
88 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, KEY_X); in setup()
93 SAFE_IOCTL(NULL, fd2, EVIOCGRAB, 1); in setup()
Dinput05.c86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
87 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_LEFT); in setup()
Dinput03.c85 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
86 SAFE_IOCTL(NULL, fd, UI_SET_KEYBIT, BTN_RIGHT); in setup()
Dinput02.c92 SAFE_IOCTL(NULL, fd2, EVIOCGRAB, 1); in send_information()
/external/ltp/testcases/network/packet/
Dfanout01.c79 SAFE_IOCTL(fd, SIOCGIFINDEX, &ifr); in run()
82 SAFE_IOCTL(fd, SIOCGIFFLAGS, &ifr); in run()
84 SAFE_IOCTL(fd, SIOCSIFFLAGS, &ifr); in run()
/external/ltp/testcases/kernel/tracing/pt_test/
Dpt_test.c97 SAFE_IOCTL(fde, PERF_EVENT_IOC_RESET); in intel_pt_full_trace_check()
98 SAFE_IOCTL(fde, PERF_EVENT_IOC_ENABLE); in intel_pt_full_trace_check()
101 SAFE_IOCTL(fde, PERF_EVENT_IOC_DISABLE); in intel_pt_full_trace_check()
/external/ltp/testcases/kernel/syscalls/statx/
Dstatx04.c166 SAFE_IOCTL(fd, FS_IOC_GETFLAGS, &attr); in cleanup()
168 SAFE_IOCTL(fd, FS_IOC_SETFLAGS, &attr); in cleanup()
/external/ltp/lib/newlib_tests/
Dtst_device.c37 SAFE_IOCTL(fd, BLKGETSIZE64, &ltp_dev_size); in do_test()
/external/ltp/testcases/kernel/pty/
Dpty02.c64 SAFE_IOCTL(pts, FIONREAD, &nbytes); in do_test()
/external/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev03.c107 SAFE_IOCTL(dev_fd, BLKSSZGET, &ret); in setup()
/external/ltp/testcases/kernel/syscalls/preadv/
Dpreadv03.c108 SAFE_IOCTL(dev_fd, BLKSSZGET, &ret); in setup()
/external/ltp/testcases/kernel/syscalls/accept/
Daccept01.c182 SAFE_IOCTL(cleanup, s, FIONBIO, &one); in setup3()
/external/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c230 SAFE_IOCTL(cleanup, s, SIOCGIFCONF, &ifc); in setup3()
/external/ltp/include/old/
Dsafe_macros.h332 #define SAFE_IOCTL(cleanup_fn, fd, request, ...) \ macro
/external/ltp/include/
Dtst_safe_macros.h220 #define SAFE_IOCTL(fd, request, ...) \ macro