Home
last modified time | relevance | path

Searched refs:mqd (Results 1 – 16 of 16) 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/rust/crates/nix/test/
Dtest_mq.rs54 let mqd = r.unwrap(); in test_mq_getattr() localVariable
56 let read_attr = mq_getattr(mqd).unwrap(); in test_mq_getattr()
58 mq_close(mqd).unwrap(); in test_mq_getattr()
77 let mqd = r.unwrap(); in test_mq_setattr() localVariable
80 let old_attr = mq_setattr(mqd, &new_attr).unwrap(); in test_mq_setattr()
83 let new_attr_get = mq_getattr(mqd).unwrap(); in test_mq_setattr()
89 mq_setattr(mqd, &new_attr_non_blocking).unwrap(); in test_mq_setattr()
90 let new_attr_get = mq_getattr(mqd).unwrap(); in test_mq_setattr()
95 mq_close(mqd).unwrap(); in test_mq_setattr()
114 let mqd = r.unwrap(); in test_mq_set_nonblocking() localVariable
[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()
/external/rust/crates/nix/src/
Dmqueue.rs136 pub fn mq_getattr(mqd: mqd_t) -> Result<MqAttr> { in mq_getattr()
138 let res = unsafe { libc::mq_getattr(mqd, attr.as_mut_ptr()) }; in mq_getattr()
147 pub fn mq_setattr(mqd: mqd_t, newattr: &MqAttr) -> Result<MqAttr> { in mq_setattr()
150 libc::mq_setattr(mqd, &newattr.mq_attr as *const libc::mq_attr, attr.as_mut_ptr()) in mq_setattr()
158 pub fn mq_set_nonblock(mqd: mqd_t) -> Result<MqAttr> { in mq_set_nonblock()
159 let oldattr = mq_getattr(mqd)?; in mq_set_nonblock()
164 mq_setattr(mqd, &newattr) in mq_set_nonblock()
170 pub fn mq_remove_nonblock(mqd: mqd_t) -> Result<MqAttr> { in mq_remove_nonblock()
171 let oldattr = mq_getattr(mqd)?; in mq_remove_nonblock()
176 mq_setattr(mqd, &newattr) in mq_remove_nonblock()
/external/rust/crates/libc/src/unix/bsd/freebsdlike/
Dmod.rs1598 pub fn mq_close(mqd: ::mqd_t) -> ::c_int; in mq_close()
1599 pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; in mq_getattr()
1600 pub fn mq_notify(mqd: ::mqd_t, notification: *const ::sigevent) -> ::c_int; in mq_notify()
1603 mqd: ::mqd_t, in mq_receive()
1609 mqd: ::mqd_t, in mq_send()
1614 pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; in mq_setattr()
1616 mqd: ::mqd_t, in mq_timedreceive()
1623 mqd: ::mqd_t, in mq_timedsend()
/external/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/
Dmod.rs1974 pub fn mq_close(mqd: ::mqd_t) -> ::c_int; in mq_close()
1975 pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; in mq_getattr()
1976 pub fn mq_notify(mqd: ::mqd_t, notification: *const ::sigevent) -> ::c_int; in mq_notify()
1978 mqd: ::mqd_t, in mq_receive()
1984 mqd: ::mqd_t, in mq_send()
1989 pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; in mq_setattr()
1992 mqd: ::mqd_t, in mq_timedreceive()
2000 mqd: ::mqd_t, in mq_timedsend()
/external/rust/crates/libc/src/vxworks/
Dmod.rs1782 pub fn mq_close(mqd: ::mqd_t) -> ::c_int; in mq_close()
1785 mqd: ::mqd_t, in mq_receive()
1791 mqd: ::mqd_t, in mq_timedreceive()
1798 mqd: ::mqd_t, in mq_send()
1804 mqd: ::mqd_t, in mq_timedsend()
1810 pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; in mq_getattr()
1811 pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; in mq_setattr()
/external/rust/crates/libc/src/unix/solarish/
Dmod.rs2383 pub fn mq_close(mqd: ::mqd_t) -> ::c_int; in mq_close()
2386 mqd: ::mqd_t, in mq_receive()
2392 mqd: ::mqd_t, in mq_timedreceive()
2399 mqd: ::mqd_t, in mq_send()
2405 mqd: ::mqd_t, in mq_timedsend()
2411 pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; in mq_getattr()
2412 pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; in mq_setattr()
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3146 pub fn mq_close(mqd: ::mqd_t) -> ::c_int; in mq_close()
3149 mqd: ::mqd_t, in mq_receive()
3155 mqd: ::mqd_t, in mq_timedreceive()
3162 mqd: ::mqd_t, in mq_send()
3168 mqd: ::mqd_t, in mq_timedsend()
3174 pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; in mq_getattr()
3175 pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; in mq_setattr()
/external/cldr/tools/java/org/unicode/cldr/util/data/
Diso-639-3_Retirements.tab66 mqd Madang M xkl 2008-01-14
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
Dmod.rs1388 pub fn mq_getfd_np(mqd: ::mqd_t) -> ::c_int; in mq_getfd_np()