HomeSort by relevance Sort by last modified time
    Searched refs:mqdes (Results 1 - 25 of 86) sorted by null

1 2 3 4

  /external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/
2-1-buildonly.c 12 mqd_t mqdes; local
15 err = mq_close(mqdes);
3-1-buildonly.c 12 mqd_t mqdes; local
16 err = mq_getattr(mqdes, &mqs);
4-1-buildonly.c 12 mqd_t mqdes; local
16 err = mq_notify(mqdes, notification);
6-1-buildonly.c 12 mqd_t mqdes; local
18 msg_size = mq_receive(mqdes, msgp, msg_len, &msg_prio);
7-1-buildonly.c 12 mqd_t mqdes; local
18 err = mq_receive(mqdes, msgp, msg_len, &msg_prio);
8-1-buildonly.c 13 mqd_t mqdes; local
17 err = mq_setattr(mqdes, &mqs, &omqs);
10-1-buildonly.c 13 mqd_t mqdes; local
20 mqdes = NULL;
25 err = mq_timedsend(mqdes, msgp, msg_len, msg_prio, &timeout);
9-1-buildonly.c 13 mqd_t mqdes; local
20 size = mq_timedreceive(mqdes, msgp, msg_len, &msg_prio, &abstime);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/
3-1.c 55 mqd_t mqdes; local
62 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
63 if (mqdes == (mqd_t) - 1) {
72 if (mq_notify(mqdes, &notification) != 0) {
74 mqclean(mqdes, mqname);
77 if (mq_notify(mqdes, NULL) != 0) {
79 mqclean(mqdes, mqname);
82 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
84 mqclean(mqdes, mqname);
94 mqclean(mqdes, mqname)
    [all...]
4-1.c 52 mqd_t mqdes; local
60 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
61 if (mqdes == (mqd_t) - 1) {
71 if (mq_notify(mqdes, &notification) != 0) {
73 mqclean(mqdes, mqname);
76 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
78 mqclean(mqdes, mqname);
83 mqclean(mqdes, mqname);
86 if (mq_notify(mqdes, &notification) != 0) {
88 mqclean(mqdes, mqname)
    [all...]
1-1.c 55 mqd_t mqdes; local
63 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
64 if (mqdes == (mqd_t) - 1) {
74 if (mq_notify(mqdes, &notification) != 0) {
76 mqclean(mqdes, mqname);
79 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) {
81 mqclean(mqdes, mqname);
87 mqclean(mqdes, mqname);
91 mqclean(mqdes, mqname);
2-1.c 45 mqd_t mqdes; local
52 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
53 if (mqdes == (mqd_t) - 1) {
60 if (mq_notify(mqdes, &notification) != 0) {
62 mqclean(mqdes, mqname);
68 mqclean(mqdes, mqname);
73 if (mq_notify(mqdes, &notification) != -1) {
83 mqclean(mqdes, mqname);
9-1.c 44 mqd_t mqdes; local
51 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
52 if (mqdes == (mqd_t) - 1) {
59 if (mq_notify(mqdes, &notification) != 0) {
61 mqclean(mqdes, mqname);
67 mqclean(mqdes, mqname);
72 if (mq_notify(mqdes, &notification) == -1) {
88 mqclean(mqdes, mqname);
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);
8-1.c 11 * mq_notify() will fail with EBADF if the mqdes argument is not a
36 mqd_t mqdes; local
39 mqdes = (mqd_t) - 1;
44 if (mq_notify(mqdes, &notification) == -1) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/
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) {
11-1.c 11 * mq_receive() will fail with EBADF, if mqdes is not a valid message
36 mqd_t mqdes; local
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
46 if (mqdes == (mqd_t) - 1) {
50 mqdes = mqdes + 1;
51 if (mq_receive(mqdes, msgrv, BUFFER, NULL) == -1) {
60 if (mq_close(mqdes - 1) != 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) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/
2-1.c 42 mqd_t mqdes; local
49 mqdes = mq_open(mqname, O_CREAT | O_RDWR | MQFLAGS,
51 if (mqdes == (mqd_t) - 1) {
56 if (mq_getattr(mqdes, &mqstat) != 0) {
60 mq_close(mqdes);
2-2.c 36 mqd_t mqdes; local
43 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL);
44 if (mqdes == (mqd_t) - 1) {
50 if (mq_getattr(mqdes, &mqstat) == -1) {
55 if (mq_setattr(mqdes, &mqstat, NULL) == -1) {
59 if (mq_getattr(mqdes, &nmqstat) != 0) {
69 mq_close(mqdes);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/speculative/
7-1.c 11 * Test if mqdes argument is not a valid message queue descriptor,
34 mqd_t mqdes, mqdes_invalid; local
40 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
42 if (mqdes == (mqd_t) - 1) {
47 mqdes_invalid = mqdes + 1;
53 mq_close(mqdes);
  /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);
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/
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) {

Completed in 164 milliseconds

1 2 3 4