Home
last modified time | relevance | path

Searched refs:mqdes (Results 1 – 25 of 59) sorted by relevance

123

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/
D4-1.c52 mqd_t mqdes; in main() local
60 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
61 if (mqdes == (mqd_t) - 1) { in main()
71 if (mq_notify(mqdes, &notification) != 0) { in main()
73 mqclean(mqdes, mqname); in main()
76 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
78 mqclean(mqdes, mqname); in main()
83 mqclean(mqdes, mqname); in main()
86 if (mq_notify(mqdes, &notification) != 0) { in main()
88 mqclean(mqdes, mqname); in main()
[all …]
D3-1.c55 mqd_t mqdes; in main() local
62 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
63 if (mqdes == (mqd_t) - 1) { in main()
72 if (mq_notify(mqdes, &notification) != 0) { in main()
74 mqclean(mqdes, mqname); in main()
77 if (mq_notify(mqdes, NULL) != 0) { in main()
79 mqclean(mqdes, mqname); in main()
82 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
84 mqclean(mqdes, mqname); in main()
94 mqclean(mqdes, mqname); in main()
[all …]
D1-1.c55 mqd_t mqdes; in main() local
63 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
64 if (mqdes == (mqd_t) - 1) { in main()
74 if (mq_notify(mqdes, &notification) != 0) { in main()
76 mqclean(mqdes, mqname); in main()
79 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
81 mqclean(mqdes, mqname); in main()
87 mqclean(mqdes, mqname); in main()
91 mqclean(mqdes, mqname); in main()
D5-1.c63 mqd_t mqdes; in main() local
76 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
77 if (mqdes == (mqd_t) - 1) { in main()
79 mqclean(mqdes, mqname); in main()
86 mqclean(mqdes, mqname); in main()
91 mq_receive(mqdes, r_msg_ptr, MSG_SIZE, NULL); in main()
102 if (mq_notify(mqdes, &notification) != 0) { in main()
106 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
120 mqclean(mqdes, mqname); in main()
D2-1.c45 mqd_t mqdes; in main() local
52 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
53 if (mqdes == (mqd_t) - 1) { in main()
60 if (mq_notify(mqdes, &notification) != 0) { in main()
62 mqclean(mqdes, mqname); in main()
68 mqclean(mqdes, mqname); in main()
73 if (mq_notify(mqdes, &notification) != -1) { in main()
83 mqclean(mqdes, mqname); in main()
D9-1.c44 mqd_t mqdes; in main() local
51 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
52 if (mqdes == (mqd_t) - 1) { in main()
59 if (mq_notify(mqdes, &notification) != 0) { in main()
61 mqclean(mqdes, mqname); in main()
67 mqclean(mqdes, mqname); in main()
72 if (mq_notify(mqdes, &notification) == -1) { in main()
88 mqclean(mqdes, mqname); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/
D8-1.c41 mqd_t mqdes; in main() local
50 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
51 if (mqdes == (mqd_t) - 1) { in main()
56 if (mq_send(mqdes, msgptr1, strlen(msgptr1), prio1) != 0) { in main()
60 if (mq_send(mqdes, msgptr2, strlen(msgptr2), prio2) != 0) { in main()
65 if (mq_receive(mqdes, msgrv1, BUFFER, NULL) != strlen(msgptr2)) { in main()
70 if (mq_receive(mqdes, msgrv2, BUFFER, NULL) != strlen(msgptr1)) { in main()
79 if (mq_close(mqdes) != 0) { in main()
D1-1.c37 mqd_t mqdes; in main() local
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
48 if (mqdes == (mqd_t) - 1) { in main()
53 if (mq_send(mqdes, msgptr1, strlen(msgptr1), sdprio1) != 0) { in main()
57 if (mq_send(mqdes, msgptr2, strlen(msgptr2), sdprio2) != 0) { in main()
62 if (mq_receive(mqdes, msgrv1, BUFFER, &rvprio) == -1) { in main()
77 if (mq_receive(mqdes, msgrv2, BUFFER, &rvprio) == -1) { in main()
91 if (mq_close(mqdes) != 0) { in main()
D11-1.c36 mqd_t mqdes; in main() local
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
46 if (mqdes == (mqd_t) - 1) { in main()
50 mqdes = mqdes + 1; in main()
51 if (mq_receive(mqdes, msgrv, BUFFER, NULL) == -1) { in main()
60 if (mq_close(mqdes - 1) != 0) { in main()
D2-1.c35 mqd_t mqdes; in main() local
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
46 if (mqdes == (mqd_t) - 1) { in main()
51 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) { in main()
56 if (mq_receive(mqdes, msgrv, BUFFER, NULL) > 0) { in main()
60 if (mq_close(mqdes) != 0) { in main()
D12-1.c36 mqd_t mqdes; in main() local
46 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
47 if (mqdes == (mqd_t) - 1) { in main()
52 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) { in main()
57 if (mq_receive(mqdes, msgrv, BUFFER, NULL) == 0) { in main()
66 if (mq_close(mqdes) != 0) { in main()
D5-1.c44 mqd_t mqdes; in main() local
54 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
55 if (mqdes == (mqd_t) - 1) { in main()
63 if (mq_receive(mqdes, msgrv, BUFFER, NULL) > 0) { in main()
74 if (mq_close(mqdes) != 0) { in main()
96 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) == -1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/
D11-1.c42 mqd_t mqdes; in main() local
52 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
53 if (mqdes == (mqd_t) - 1) { in main()
58 if (mq_send(mqdes, msgptr1, strlen(msgptr1), prio1) != 0) { in main()
62 if (mq_send(mqdes, msgptr2, strlen(msgptr2), prio2) != 0) { in main()
68 if (mq_timedreceive(mqdes, msgrv1, BUFFER, NULL, &ts) != in main()
74 if (mq_timedreceive(mqdes, msgrv2, BUFFER, NULL, &ts) != in main()
85 if (mq_close(mqdes) != 0) { in main()
D14-1.c37 mqd_t mqdes; in main() local
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
48 if (mqdes == (mqd_t) - 1) { in main()
52 mqdes = mqdes + 1; in main()
55 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) { in main()
64 if (mq_close(mqdes - 1) != 0) { in main()
D1-1.c38 mqd_t mqdes; in main() local
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
49 if (mqdes == (mqd_t) - 1) { in main()
54 if (mq_send(mqdes, msgptr1, strlen(msgptr1), sdprio1) != 0) { in main()
58 if (mq_send(mqdes, msgptr2, strlen(msgptr2), sdprio2) != 0) { in main()
65 if (mq_timedreceive(mqdes, msgrv1, BUFFER, &rvprio, &ts) == -1) { in main()
82 if (mq_timedreceive(mqdes, msgrv2, BUFFER, &rvprio, &ts) == -1) { in main()
97 if (mq_close(mqdes) != 0) { in main()
D2-1.c36 mqd_t mqdes; in main() local
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
48 if (mqdes == (mqd_t) - 1) { in main()
53 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) { in main()
59 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) > 0) { in main()
63 if (mq_close(mqdes) != 0) { in main()
D10-1.c36 mqd_t mqdes; in main() local
46 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
47 if (mqdes == (mqd_t) - 1) { in main()
52 if (mq_send(mqdes, msgptr, strlen(msgptr), sdprio) != 0) { in main()
59 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) { in main()
64 if (mq_close(mqdes) != 0) { in main()
D15-1.c37 mqd_t mqdes; in main() local
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
49 if (mqdes == (mqd_t) - 1) { in main()
54 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) { in main()
60 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) > 0) { in main()
69 if (mq_close(mqdes) != 0) { in main()
D10-2.c40 mqd_t mqdes; in main() local
51 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
52 if (mqdes == (mqd_t) - 1) { in main()
57 if (mq_send(mqdes, msgptr, strlen(msgptr), sdprio) != 0) { in main()
65 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) { in main()
74 if (mq_close(mqdes) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/
D5-1.c38 mqd_t mqdes; in main() local
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
46 if (mqdes == (mqd_t) - 1) { in main()
54 mqdes = mqdes + 1; in main()
60 if (mq_setattr(mqdes, &mqstat, NULL) == -1) { in main()
70 mq_close(mqdes); in main()
D1-1.c36 mqd_t mqdes; in main() local
43 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
44 if (mqdes == (mqd_t) - 1) { in main()
50 if (mq_getattr(mqdes, &mqstat) == -1) { in main()
55 if (mq_setattr(mqdes, &mqstat, NULL) != 0) { in main()
59 if (mq_getattr(mqdes, &nmqstat) == -1) { in main()
63 mq_close(mqdes); in main()
D1-2.c37 mqd_t mqdes; in main() local
44 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main()
45 if (mqdes == (mqd_t) - 1) { in main()
52 if (mq_getattr(mqdes, &mqstat) == -1) { in main()
60 if (mq_setattr(mqdes, &mqstat, NULL) != 0) { in main()
64 if (mq_getattr(mqdes, &nmqstat) == -1) { in main()
74 mq_close(mqdes); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/
D2-2.c36 mqd_t mqdes; in main() local
43 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in main()
44 if (mqdes == (mqd_t) - 1) { in main()
50 if (mq_getattr(mqdes, &mqstat) == -1) { in main()
55 if (mq_setattr(mqdes, &mqstat, NULL) == -1) { in main()
59 if (mq_getattr(mqdes, &nmqstat) != 0) { in main()
69 mq_close(mqdes); in main()
D4-1.c38 mqd_t mqdes; in main() local
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
49 if (mqdes == (mqd_t) - 1) { in main()
54 if (mq_send(mqdes, msgptr, strlen(msgptr), 1) == -1) { in main()
60 if (mq_getattr(mqdes, &mqstat) != 0) { in main()
71 mq_close(mqdes); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/speculative/
D10-2.c39 mqd_t mqdes; in main() local
49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main()
50 if (mqdes == (mqd_t) - 1) { in main()
55 if (mq_send(mqdes, msgptr, strlen(msgptr), sdprio) != 0) { in main()
62 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) { in main()
68 if (mq_close(mqdes) != 0) { in main()

123