/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/ |
D | 4-1.c | 52 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, ¬ification) != 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, ¬ification) != 0) { in main() 88 mqclean(mqdes, mqname); in main() [all …]
|
D | 3-1.c | 55 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, ¬ification) != 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 …]
|
D | 1-1.c | 55 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, ¬ification) != 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()
|
D | 5-1.c | 63 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, ¬ification) != 0) { in main() 106 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main() 120 mqclean(mqdes, mqname); in main()
|
D | 2-1.c | 45 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, ¬ification) != 0) { in main() 62 mqclean(mqdes, mqname); in main() 68 mqclean(mqdes, mqname); in main() 73 if (mq_notify(mqdes, ¬ification) != -1) { in main() 83 mqclean(mqdes, mqname); in main()
|
D | 9-1.c | 44 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, ¬ification) != 0) { in main() 61 mqclean(mqdes, mqname); in main() 67 mqclean(mqdes, mqname); in main() 72 if (mq_notify(mqdes, ¬ification) == -1) { in main() 88 mqclean(mqdes, mqname); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/ |
D | 8-1.c | 41 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()
|
D | 1-1.c | 37 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()
|
D | 11-1.c | 36 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()
|
D | 2-1.c | 35 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()
|
D | 12-1.c | 36 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()
|
D | 5-1.c | 44 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/ |
D | 11-1.c | 42 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()
|
D | 14-1.c | 37 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()
|
D | 1-1.c | 38 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()
|
D | 2-1.c | 36 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()
|
D | 10-1.c | 36 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()
|
D | 15-1.c | 37 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()
|
D | 10-2.c | 40 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/ |
D | 5-1.c | 38 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()
|
D | 1-1.c | 36 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()
|
D | 1-2.c | 37 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/ |
D | 2-2.c | 36 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()
|
D | 4-1.c | 38 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/ |
D | 10-2.c | 39 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()
|