HomeSort by relevance Sort by last modified time
    Searched defs:mqdes (Results 26 - 50 of 56) sorted by null

12 3

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/
2-1.c 35 mqd_t mqdes; local
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat);
46 if (mqdes == (mqd_t) - 1) {
51 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
56 if (mq_receive(mqdes, msgrv, BUFFER, NULL) > 0) {
60 if (mq_close(mqdes) != 0) {
5-1.c 44 mqd_t mqdes; local
54 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
55 if (mqdes == (mqd_t) - 1) {
63 if (mq_receive(mqdes, msgrv, BUFFER, NULL) > 0) {
74 if (mq_close(mqdes) != 0) {
96 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) == -1) {
7-1.c 36 mqd_t mqdes; local
43 mqdes =
46 if (mqdes == (mqd_t) - 1) {
51 if (mq_receive(mqdes, msgrv, BUFFER, NULL) != -1) {
55 if (mq_close(mqdes) != 0) {
1-1.c 37 mqd_t mqdes; local
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
48 if (mqdes == (mqd_t) - 1) {
53 if (mq_send(mqdes, msgptr1, strlen(msgptr1), sdprio1) != 0) {
57 if (mq_send(mqdes, msgptr2, strlen(msgptr2), sdprio2) != 0) {
62 if (mq_receive(mqdes, msgrv1, BUFFER, &rvprio) == -1) {
77 if (mq_receive(mqdes, msgrv2, BUFFER, &rvprio) == -1) {
91 if (mq_close(mqdes) != 0) {
8-1.c 41 mqd_t mqdes; local
50 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
51 if (mqdes == (mqd_t) - 1) {
56 if (mq_send(mqdes, msgptr1, strlen(msgptr1), prio1) != 0) {
60 if (mq_send(mqdes, msgptr2, strlen(msgptr2), prio2) != 0) {
65 if (mq_receive(mqdes, msgrv1, BUFFER, NULL) != strlen(msgptr2)) {
70 if (mq_receive(mqdes, msgrv2, BUFFER, NULL) != strlen(msgptr1)) {
79 if (mq_close(mqdes) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/
1-1.c 36 mqd_t mqdes; local
43 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
44 if (mqdes == (mqd_t) - 1) {
50 if (mq_getattr(mqdes, &mqstat) == -1) {
55 if (mq_setattr(mqdes, &mqstat, NULL) != 0) {
59 if (mq_getattr(mqdes, &nmqstat) == -1) {
63 mq_close(mqdes);
1-2.c 37 mqd_t mqdes; local
44 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
45 if (mqdes == (mqd_t) - 1) {
52 if (mq_getattr(mqdes, &mqstat) == -1) {
60 if (mq_setattr(mqdes, &mqstat, NULL) != 0) {
64 if (mq_getattr(mqdes, &nmqstat) == -1) {
74 mq_close(mqdes);
2-1.c 39 mqd_t mqdes; local
46 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
47 if (mqdes == (mqd_t) - 1) {
55 if (mq_getattr(mqdes, &omqstat) == -1) {
68 if (mq_setattr(mqdes, &nmqstat, &mqstat) != 0) {
78 mq_close(mqdes);
5-1.c 10 * Test if mqdes argument is not a valid message queue descriptor,
38 mqd_t mqdes; local
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
46 if (mqdes == (mqd_t) - 1) {
54 mqdes = mqdes + 1;
60 if (mq_setattr(mqdes, &mqstat, NULL) == -1) {
70 mq_close(mqdes);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/
10-1.c 36 mqd_t mqdes; local
46 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
47 if (mqdes == (mqd_t) - 1) {
52 if (mq_send(mqdes, msgptr, strlen(msgptr), sdprio) != 0) {
59 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) {
64 if (mq_close(mqdes) != 0) {
10-2.c 40 mqd_t mqdes; local
51 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
52 if (mqdes == (mqd_t) - 1) {
57 if (mq_send(mqdes, msgptr, strlen(msgptr), sdprio) != 0) {
65 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) {
74 if (mq_close(mqdes) != 0) {
13-1.c 37 mqd_t mqdes; local
46 mqdes = mq_open(mqname, O_CREAT | O_NONBLOCK | O_RDWR,
48 if (mqdes == (mqd_t) - 1) {
54 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
63 if (mq_close(mqdes) != 0) {
14-1.c 11 * mq_timedreceive() will fail with EBADF, if mqdes is not a valid message
37 mqd_t mqdes; local
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
48 if (mqdes == (mqd_t) - 1) {
52 mqdes = mqdes + 1;
55 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
64 if (mq_close(mqdes - 1) != 0) {
15-1.c 37 mqd_t mqdes; local
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat);
49 if (mqdes == (mqd_t) - 1) {
54 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
60 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) > 0) {
69 if (mq_close(mqdes) != 0) {
17-1.c 39 mqd_t mqdes; local
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
49 if (mqdes == (mqd_t) - 1) {
55 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
64 if (mq_close(mqdes) != 0) {
17-2.c 40 mqd_t mqdes; local
49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
50 if (mqdes == (mqd_t) - 1) {
56 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
65 if (mq_close(mqdes) != 0) {
17-3.c 40 mqd_t mqdes; local
49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
50 if (mqdes == (mqd_t) - 1) {
56 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
65 if (mq_close(mqdes) != 0) {
2-1.c 36 mqd_t mqdes; local
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat);
48 if (mqdes == (mqd_t) - 1) {
53 if (mq_send(mqdes, msgptr, strlen(msgptr), prio) != 0) {
59 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) > 0) {
63 if (mq_close(mqdes) != 0) {
7-1.c 37 mqd_t mqdes; local
46 mqdes = mq_open(mqname, O_CREAT | O_NONBLOCK | O_RDWR,
48 if (mqdes == (mqd_t) - 1) {
55 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) != -1) {
59 if (mq_close(mqdes) != 0) {
1-1.c 38 mqd_t mqdes; local
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
49 if (mqdes == (mqd_t) - 1) {
54 if (mq_send(mqdes, msgptr1, strlen(msgptr1), sdprio1) != 0) {
58 if (mq_send(mqdes, msgptr2, strlen(msgptr2), sdprio2) != 0) {
65 if (mq_timedreceive(mqdes, msgrv1, BUFFER, &rvprio, &ts) == -1) {
82 if (mq_timedreceive(mqdes, msgrv2, BUFFER, &rvprio, &ts) == -1) {
97 if (mq_close(mqdes) != 0) {
11-1.c 42 mqd_t mqdes; local
52 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
53 if (mqdes == (mqd_t) - 1) {
58 if (mq_send(mqdes, msgptr1, strlen(msgptr1), prio1) != 0) {
62 if (mq_send(mqdes, msgptr2, strlen(msgptr2), prio2) != 0) {
68 if (mq_timedreceive(mqdes, msgrv1, BUFFER, NULL, &ts) !=
74 if (mq_timedreceive(mqdes, msgrv2, BUFFER, NULL, &ts) !=
85 if (mq_close(mqdes) != 0) {
18-1.c 49 mqd_t mqdes; local
59 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
60 if (mqdes == (mqd_t) - 1) {
75 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
86 if (mq_close(mqdes) != 0) {
18-2.c 50 mqd_t mqdes; local
60 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
61 if (mqdes == (mqd_t) - 1) {
77 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) != -1) {
88 if (mq_close(mqdes) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/speculative/
10-2.c 39 mqd_t mqdes; local
49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
50 if (mqdes == (mqd_t) - 1) {
55 if (mq_send(mqdes, msgptr, strlen(msgptr), sdprio) != 0) {
62 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) {
68 if (mq_close(mqdes) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/
5-1.c 63 mqd_t mqdes; local
76 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
77 if (mqdes == (mqd_t) - 1) {
79 mqclean(mqdes, mqname);
86 mqclean(mqdes, mqname);
91 mq_receive(mqdes, r_msg_ptr, MSG_SIZE, NULL);
102 if (mq_notify(mqdes, &notification) != 0) {
106 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
120 mqclean(mqdes, mqname);

Completed in 785 milliseconds

12 3