Lines Matching refs:buf

22   char buf[1000];  in main()  local
25 memset(buf, 0, sizeof(buf)); in main()
26 __msan_unpoison(buf, sizeof(buf)); in main()
27 __sanitizer_syscall_pre_recvmsg(0, buf, 0); in main()
28 __sanitizer_syscall_pre_rt_sigpending(buf, kTen); in main()
29 __sanitizer_syscall_pre_getdents(0, buf, kTen); in main()
30 __sanitizer_syscall_pre_getdents64(0, buf, kTen); in main()
32 __msan_unpoison(buf, sizeof(buf)); in main()
33 __sanitizer_syscall_post_recvmsg(0, 0, buf, 0); in main()
34 __sanitizer_syscall_post_rt_sigpending(-1, buf, kTen); in main()
35 __sanitizer_syscall_post_getdents(0, 0, buf, kTen); in main()
36 __sanitizer_syscall_post_getdents64(0, 0, buf, kTen); in main()
37 assert(__msan_test_shadow(buf, sizeof(buf)) == -1); in main()
39 __msan_unpoison(buf, sizeof(buf)); in main()
40 __sanitizer_syscall_post_recvmsg(kTen, 0, buf, 0); in main()
44 __msan_poison(buf, kTen + 1); in main()
45 __sanitizer_syscall_post_rt_sigpending(0, buf, kTen); in main()
46 assert(__msan_test_shadow(buf, sizeof(buf)) == kTen); in main()
48 __msan_poison(buf, kTen + 1); in main()
49 __sanitizer_syscall_post_getdents(kTen, 0, buf, kTen); in main()
50 assert(__msan_test_shadow(buf, sizeof(buf)) == kTen); in main()
52 __msan_poison(buf, kTen + 1); in main()
53 __sanitizer_syscall_post_getdents64(kTen, 0, buf, kTen); in main()
54 assert(__msan_test_shadow(buf, sizeof(buf)) == kTen); in main()
56 __msan_poison(buf, sizeof(buf)); in main()
57 __sanitizer_syscall_post_clock_getres(0, 0, buf); in main()
58 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(long) * 2); in main()
60 __msan_poison(buf, sizeof(buf)); in main()
61 __sanitizer_syscall_post_clock_gettime(0, 0, buf); in main()
62 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(long) * 2); in main()
65 __msan_poison(buf, sizeof(buf)); in main()
66 __sanitizer_syscall_post_clock_gettime(-1, 0, buf); in main()
67 assert(__msan_test_shadow(buf, sizeof(buf)) == 0); in main()
69 __msan_poison(buf, sizeof(buf)); in main()
70 __sanitizer_syscall_post_read(5, 42, buf, 10); in main()
71 assert(__msan_test_shadow(buf, sizeof(buf)) == 5); in main()
73 __msan_poison(buf, sizeof(buf)); in main()
74 __sanitizer_syscall_post_newfstatat(0, 5, "/path/to/file", buf, 0); in main()
75 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(struct stat)); in main()
77 __msan_poison(buf, sizeof(buf)); in main()
79 __sanitizer_syscall_post_mq_timedreceive(kFortyTwo, 5, buf, sizeof(buf), &prio, 0); in main()
80 assert(__msan_test_shadow(buf, sizeof(buf)) == kFortyTwo); in main()
83 __msan_poison(buf, sizeof(buf)); in main()
84 __sanitizer_syscall_post_ptrace(0, PTRACE_PEEKUSER, kFortyTwo, 0xABCD, buf); in main()
85 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(void *)); in main()
87 __msan_poison(buf, sizeof(buf)); in main()
92 iocb[0].aio_buf = (__u64)buf; in main()
95 iocb[1].aio_buf = (__u64)(&buf[20]); in main()
97 struct iovec vec[2] = { {&buf[40], 3}, {&buf[50], 20} }; in main()
102 assert(__msan_test_shadow(buf, sizeof(buf)) == 10); in main()
103 assert(__msan_test_shadow(buf + 20, sizeof(buf) - 20) == 15); in main()
104 assert(__msan_test_shadow(buf + 40, sizeof(buf) - 40) == 3); in main()
105 assert(__msan_test_shadow(buf + 50, sizeof(buf) - 50) == 20); in main()
107 __msan_poison(buf, sizeof(buf)); in main()
108 char *p = buf; in main()
112 assert(__msan_test_shadow(buf, sizeof(buf)) >= 32); in main()