/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/ |
D | 2-1.c | 47 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid); 48 int child_process(char *mqname, int read_pipe, int write_pipe); 53 char mqname[NAMESIZE]; in main() local 65 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 85 return child_process(mqname, to_child[PIPE_READ], in main() 91 return parent_process(mqname, to_parent[PIPE_READ], in main() 96 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid) in parent_process() argument 102 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in parent_process() 116 if (mq_unlink(mqname) == 0) { in parent_process() 117 if (mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0) == in parent_process() [all …]
|
D | 2-2.c | 42 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid); 43 int child_process(char *mqname, int read_pipe, int write_pipe); 48 char mqname[50]; in main() local 60 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 80 return child_process(mqname, to_child[PIPE_READ], in main() 86 return parent_process(mqname, to_parent[PIPE_READ], in main() 91 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid) in parent_process() argument 97 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in parent_process() 111 if (mq_unlink(mqname) == 0) { in parent_process() 121 if (mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0) != in parent_process() [all …]
|
D | 1-1.c | 33 char mqname[NAMESIZE]; in main() local 36 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 38 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 43 if (mq_unlink(mqname) == 0) { in main() 44 if (mq_open(mqname, O_RDWR, S_IRUSR | S_IWUSR, 0) == -1) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/ |
D | 3-1.c | 54 char mqname[NAMESIZE]; in main() local 61 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 62 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 74 mqclean(mqdes, mqname); in main() 79 mqclean(mqdes, mqname); in main() 84 mqclean(mqdes, mqname); in main() 88 if (mq_unlink(mqname) != 0) { in main() 94 mqclean(mqdes, mqname); in main() 98 mqclean(mqdes, mqname); in main()
|
D | 4-1.c | 51 char mqname[50]; in main() local 58 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 60 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 73 mqclean(mqdes, mqname); in main() 78 mqclean(mqdes, mqname); in main() 83 mqclean(mqdes, mqname); in main() 88 mqclean(mqdes, mqname); in main() 92 mqclean(mqdes, mqname); in main()
|
D | 1-1.c | 54 char mqname[NAMESIZE]; in main() local 61 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 63 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 76 mqclean(mqdes, mqname); in main() 81 mqclean(mqdes, mqname); in main() 87 mqclean(mqdes, mqname); in main() 91 mqclean(mqdes, mqname); in main()
|
D | 5-1.c | 62 char mqname[NAMESIZE]; in main() local 72 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 76 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 79 mqclean(mqdes, mqname); in main() 86 mqclean(mqdes, mqname); in main() 111 if (mq_unlink(mqname) != 0) { in main() 120 mqclean(mqdes, mqname); in main()
|
D | 2-1.c | 44 char mqname[NAMESIZE]; in main() local 50 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 52 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 62 mqclean(mqdes, mqname); in main() 68 mqclean(mqdes, mqname); in main() 83 mqclean(mqdes, mqname); in main()
|
D | 9-1.c | 43 char mqname[NAMESIZE]; in main() local 49 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 51 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 61 mqclean(mqdes, mqname); in main() 67 mqclean(mqdes, mqname); in main() 88 mqclean(mqdes, mqname); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/ |
D | 5-1.c | 37 char mqname[NAMESIZE]; in main() local 43 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 50 if (mq_unlink(mqname) != 0) { in main() 71 mq_unlink(mqname); in main()
|
D | 2-1.c | 38 char mqname[NAMESIZE]; in main() local 44 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 46 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 59 if (mq_unlink(mqname) != 0) { in main() 79 mq_unlink(mqname); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/speculative/ |
D | 7-1.c | 33 char mqname[NAMESIZE]; in main() local 38 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 40 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); in main() 54 mq_unlink(mqname); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/ |
D | 2-1.c | 41 char mqname[NAMESIZE]; in main() local 47 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 49 mqdes = mq_open(mqname, O_CREAT | O_RDWR | MQFLAGS, in main() 61 if (mq_unlink(mqname) != 0) { in main()
|
D | 3-1.c | 37 char mqname[NAMESIZE]; in main() local 43 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main() 66 mq_unlink(mqname); in main()
|
D | 2-2.c | 35 char mqname[NAMESIZE]; in main() local 41 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 43 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in main() 70 mq_unlink(mqname); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/ |
D | 11-2.c | 36 char mqname[NAMESIZE]; in main() local 42 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 46 mqdes = mq_open(mqname, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR, &attr); in main() 64 if (mq_unlink(mqname) != 0) { in main()
|
D | 7-1.c | 35 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 40 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 44 mq_open(mqname, O_CREAT | O_NONBLOCK | O_RDWR, S_IRUSR | S_IWUSR, in main() 60 if (mq_unlink(mqname) != 0) { in main()
|
D | 10-1.c | 35 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 40 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 45 mq_open(mqname, O_CREAT | O_NONBLOCK | O_RDWR, S_IRUSR | S_IWUSR, in main() 64 if (mq_unlink(mqname) != 0) { in main()
|
D | 11-1.c | 35 char mqname[NAMESIZE]; in main() local 41 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 64 if (mq_unlink(mqname) != 0) { in main()
|
D | 2-1.c | 33 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 40 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main() 64 if (mq_unlink(mqname) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
D | 7-1.c | 36 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 42 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 46 mqdes = mq_open(mqname, O_CREAT | O_NONBLOCK | O_RDWR, in main() 64 if (mq_unlink(mqname) != 0) { in main()
|
D | 17-3.c | 39 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 45 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 69 if (mq_unlink(mqname) != 0) { in main()
|
D | 14-1.c | 36 char mqname[NAMESIZE]; in main() local 43 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 68 if (mq_unlink(mqname) != 0) { in main()
|
D | 13-1.c | 36 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 42 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 46 mqdes = mq_open(mqname, O_CREAT | O_NONBLOCK | O_RDWR, in main() 67 if (mq_unlink(mqname) != 0) { in main()
|
D | 17-2.c | 39 char mqname[NAMESIZE], msgrv[BUFFER]; in main() local 45 sprintf(mqname, "/" FUNCTION "_" TEST "_%d", getpid()); in main() 49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 69 if (mq_unlink(mqname) != 0) { in main()
|