/rt/ |
A D | tst-mqueue2.c | 103 char buf[3]; in do_test() local 183 buf[0] = '6'; in do_test() 184 buf[1] = '7'; in do_test() 186 || (buf[0] = '8', mq_send (q, buf, 1, 4) != 0)) in do_test() 192 memset (buf, ' ', sizeof (buf)); in do_test() 207 prio, buf[0], buf[1], buf[2]); in do_test() 223 buf[0], buf[1], buf[2]); in do_test() 227 buf[0] = '2'; in do_test() 297 memset (buf, ' ', sizeof (buf)); in do_test() 316 prio, buf[0], buf[1], buf[2]); in do_test() [all …]
|
A D | tst-cputimer1.c | 24 static volatile char buf[4096]; in chew_cpu() local 26 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 27 buf[j] = 0xaa; in chew_cpu() 30 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 31 buf[j] = 0xbb; in chew_cpu() 32 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
|
A D | tst-mqueue4.c | 116 char buf[3]; in do_test() local 117 strcpy (buf, "jk"); in do_test() 118 if (mq_send (q, buf, 2, 4) != 0) in do_test() 124 if (mq_send (q, buf + 1, 1, 5) != 0) in do_test() 157 if (mq_timedsend (q2, buf, 1, 1, &ts) == 0) in do_test() 188 memset (buf, ' ', sizeof (buf)); in do_test() 191 ssize_t rets = mq_receive (q2, buf, 2, &prio); in do_test() 203 prio, buf[0], buf[1], buf[2]); in do_test() 225 rets = mq_receive (q3, buf, 2, NULL); in do_test() 234 else if (memcmp (buf, "jk ", 3) != 0) in do_test() [all …]
|
A D | tst-cputimer2.c | 27 static volatile char buf[4096]; in chew_cpu() local 29 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 30 buf[j] = 0xaa; in chew_cpu() 33 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 34 buf[j] = 0xbb; in chew_cpu() 35 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
|
A D | tst-bz28213.c | 36 char buf[sizeof (msg)]; in check_bz28213_cb() local 40 TEST_VERIFY_EXIT ((size_t) mq_receive (m, buf, sizeof (buf), NULL) in check_bz28213_cb() 41 == sizeof (buf)); in check_bz28213_cb() 42 TEST_VERIFY_EXIT (memcmp (buf, msg, sizeof (buf)) == 0); in check_bz28213_cb()
|
A D | tst-cputimer3.c | 28 static volatile char buf[4096]; in chew_cpu() local 30 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 31 buf[j] = 0xaa; in chew_cpu() 34 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 35 buf[j] = 0xbb; in chew_cpu() 36 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
|
A D | tst-aio64.c | 64 test_file (const void *buf, size_t size, int fd, const char *msg) in test_file() argument 89 if (memcmp (buf, tmp, size) != 0) in test_file() 143 char buf[1000]; in do_test() local 152 cbs[cnt].aio_buf = memset (&buf[cnt * 100], '0' + cnt, 100); in do_test() 170 result |= test_file (buf, sizeof (buf), fd, "aio_write"); in do_test() 173 memset (buf, '\0', sizeof (buf)); in do_test() 185 if (buf[cnt] != '0' + (cnt / 100)) in do_test() 211 result |= test_file (buf, sizeof (buf), fd, "lio_listio (write)"); in do_test() 237 result |= test_file (buf, sizeof (buf), fd, "aio_fsync (aio_write)"); in do_test()
|
A D | tst-aio.c | 63 test_file (const void *buf, size_t size, int fd, const char *msg) in test_file() argument 88 if (memcmp (buf, tmp, size) != 0) in test_file() 142 char buf[1000]; in do_test() local 151 cbs[cnt].aio_buf = memset (&buf[cnt * 100], '0' + cnt, 100); in do_test() 169 result |= test_file (buf, sizeof (buf), fd, "aio_write"); in do_test() 172 memset (buf, '\0', sizeof (buf)); in do_test() 184 if (buf[cnt] != '0' + (cnt / 100)) in do_test() 210 result |= test_file (buf, sizeof (buf), fd, "lio_listio (write)"); in do_test() 236 result |= test_file (buf, sizeof (buf), fd, "aio_fsync (aio_write)"); in do_test()
|
A D | tst-aio6.c | 32 char buf[100]; in do_test() local 50 cb.aio_buf = (void *) buf; in do_test() 51 cb.aio_nbytes = sizeof (buf) - 1; in do_test()
|
A D | tst-aio2.c | 50 static const char buf[] = "Hello World\n"; in do_test() local 72 cb.aio_buf = (void *) buf; in do_test() 73 cb.aio_nbytes = sizeof (buf) - 1; in do_test()
|
A D | tst-aio3.c | 49 static const char buf[] = "Hello World\n"; in do_test() local 71 cb.aio_buf = (void *) buf; in do_test() 72 cb.aio_nbytes = sizeof (buf) - 1; in do_test()
|
A D | tst-cpuclock2.c | 50 static volatile char buf[4096]; in chew_cpu() local 52 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 53 buf[j] = 0xaa; in chew_cpu() 56 for (size_t j = 0; j < sizeof buf; ++j) in chew_cpu() 57 buf[j] = 0xbb; in chew_cpu() 58 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
|
A D | tst-aio5.c | 63 static const char buf[] = "Hello World\n"; in do_test() local 80 cb.aio_buf = (void *) buf; in do_test() 81 cb.aio_nbytes = sizeof (buf) - 1; in do_test()
|
A D | tst-aio9.c | 75 char buf[42]; in do_test() local 80 req.aio_buf = buf; in do_test() 81 req.aio_nbytes = sizeof (buf); in do_test()
|
A D | tst-aio10.c | 75 char buf[42]; in do_test() local 81 req.aio_buf = buf; in do_test() 82 req.aio_nbytes = sizeof (buf); in do_test()
|
A D | tst-aio4.c | 67 static const char buf[] = "Hello World\n"; in do_test() local 98 cb.aio_buf = (void *) buf; in do_test() 99 cb.aio_nbytes = sizeof (buf) - 1; in do_test()
|
A D | tst-mqueue3.c | 75 char buf[attr.mq_msgsize]; in fct() local 76 ssize_t n = TEMP_FAILURE_RETRY (mq_receive (m, buf, attr.mq_msgsize, NULL)); in fct() 83 if (memcmp (buf, message, sizeof (message)) != 0) in fct() 86 __FUNCTION__, buf, message); in fct()
|