Home
last modified time | relevance | path

Searched refs:mqd (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/containers/pidns/
Dpidns31.c83 mqd_t mqd; member
93 static void remove_mqueue(mqd_t mqd) in remove_mqueue() argument
95 mq_close(mqd); in remove_mqueue()
103 static void cleanup_resources(int step, mqd_t mqd) in cleanup_resources() argument
110 mq_close(mqd); in cleanup_resources()
114 remove_mqueue(mqd); in cleanup_resources()
119 ltp_syscall(__NR_mq_notify, mqd, NULL); in cleanup_resources()
122 remove_mqueue(mqd); in cleanup_resources()
138 void cleanup_mqueue(int result, int step, mqd_t mqd) in cleanup_mqueue() argument
141 cleanup_resources(step, mqd); in cleanup_mqueue()
[all …]
Dpidns30.c83 mqd_t mqd = -1; variable
91 static void remove_mqueue(mqd_t mqd) in remove_mqueue() argument
93 mq_close(mqd); in remove_mqueue()
99 if (mqd != -1) { in cleanup()
100 remove_mqueue(mqd); in cleanup()
111 if (mqd != -1) { in cleanup_child()
112 ltp_syscall(__NR_mq_notify, mqd, NULL); in cleanup_child()
185 mqd = ltp_syscall(__NR_mq_open, mqname, O_RDONLY, 0, NULL); in child_fn()
186 if (mqd == -1) { in child_fn()
195 notif.sigev_value.sival_int = mqd; in child_fn()
[all …]
/external/ltp/testcases/kernel/containers/mqns/
Dmqns_01.c51 mqd_t mqd; in check_mqueue() local
62 mqd = ltp_syscall(__NR_mq_open, NOSLASH_MQ1, O_RDONLY); in check_mqueue()
63 if (mqd == -1) { in check_mqueue()
72 } else if (mq_close(mqd) < 0) { in check_mqueue()
90 mqd_t mqd; in main() local
108 mqd = ltp_syscall(__NR_mq_open, NOSLASH_MQ1, O_RDWR | O_CREAT | O_EXCL, in main()
110 if (mqd == -1) { in main()
120 mq_close(mqd); in main()
142 if (mq_close(mqd) == -1) { in main()
Dmqns_02.c54 mqd_t mqd; in check_mqueue() local
66 mqd = in check_mqueue()
69 if (mqd == -1) { in check_mqueue()
87 if (mq_close(mqd) < 0) { in check_mqueue()
123 mqd_t mqd; in main() local
164 mqd = ltp_syscall(__NR_mq_open, NOSLASH_MQ1, O_RDONLY); in main()
165 if (mqd == -1) { in main()
171 mq_close(mqd); in main()
Dmqns_helper.h37 mqd_t mqd; in check_mqns() local
43 mqd = in check_mqns()
45 if (mqd == -1) in check_mqns()
48 mq_close(mqd); in check_mqns()
Dmqns_04.c57 mqd_t mqd; in check_mqueue() local
67 mqd = ltp_syscall(__NR_mq_open, NOSLASH_MQ1, O_RDWR | O_CREAT | O_EXCL, in check_mqueue()
69 if (mqd == -1) { in check_mqueue()
74 mq_close(mqd); in check_mqueue()
Dmqns_03.c60 mqd_t mqd; in check_mqueue() local
74 mqd = ltp_syscall(__NR_mq_open, NOSLASH_MQ1, O_RDWR | O_CREAT | O_EXCL, in check_mqueue()
76 if (mqd == -1) { in check_mqueue()
81 mq_close(mqd); in check_mqueue()