Home
last modified time | relevance | path

Searched refs:mqname (Results 1 – 25 of 51) sorted by relevance

123

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/
D2-1.c47 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 …]
D2-2.c42 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 …]
D1-1.c33 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/
D3-1.c54 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()
D4-1.c51 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()
D1-1.c54 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()
D5-1.c62 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()
D2-1.c44 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()
D9-1.c43 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/
D5-1.c37 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()
D2-1.c38 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/
D7-1.c33 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/
D2-1.c41 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()
D3-1.c37 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()
D2-2.c35 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/
D11-2.c36 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()
D7-1.c35 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()
D10-1.c35 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()
D11-1.c35 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()
D2-1.c33 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/
D7-1.c36 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()
D17-3.c39 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()
D14-1.c36 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()
D13-1.c36 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()
D17-2.c39 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()

123