Home
last modified time | relevance | path

Searched refs:new_attr (Results 1 – 25 of 31) sorted by relevance

12

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_destroy/
D2-1.c27 pthread_attr_t new_attr; in main() local
30 if (pthread_attr_init(&new_attr) != 0) { in main()
36 if (pthread_attr_destroy(&new_attr) != 0) { in main()
42 if (pthread_attr_init(&new_attr) != 0) { in main()
D1-1.c37 pthread_attr_t new_attr; in main() local
41 if (pthread_attr_init(&new_attr) != 0) { in main()
47 if (pthread_attr_destroy(&new_attr) != 0) { in main()
54 ret = pthread_create(&new_th, &new_attr, a_thread_func, NULL); in main()
D3-1.c24 pthread_attr_t new_attr; in main() local
27 if (pthread_attr_init(&new_attr) != 0) { in main()
33 if (pthread_attr_destroy(&new_attr) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/
D1-2.c29 pthread_attr_t new_attr; in main() local
33 if (pthread_attr_init(&new_attr) != 0) { in main()
39 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
47 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D1-1.c25 pthread_attr_t new_attr; in main() local
29 if (pthread_attr_init(&new_attr) != 0) { in main()
36 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/
D1-1.c36 pthread_attr_t new_attr; in main() local
40 if (pthread_attr_init(&new_attr) != 0) { in main()
46 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
53 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D1-2.c36 pthread_attr_t new_attr; in main() local
40 if (pthread_attr_init(&new_attr) != 0) { in main()
46 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
53 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D2-1.c38 pthread_attr_t new_attr; in main() local
42 if (pthread_attr_init(&new_attr) != 0) { in main()
48 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
55 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D4-1.c26 pthread_attr_t new_attr; in main() local
30 if (pthread_attr_init(&new_attr) != 0) { in main()
37 ret_val = pthread_attr_setdetachstate(&new_attr, invalid_val); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/
D4-1.c46 pthread_attr_t new_attr; in main() local
51 if (pthread_attr_init(&new_attr) != 0) { in main()
57 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
64 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D3-1.c41 pthread_attr_t new_attr; in main() local
46 if (pthread_attr_init(&new_attr) != 0) { in main()
52 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
59 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D2-1.c41 pthread_attr_t new_attr; in main() local
46 if (pthread_attr_init(&new_attr) != 0) { in main()
52 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
59 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D1-1.c42 pthread_attr_t new_attr; in main() local
47 if (pthread_attr_init(&new_attr) != 0) { in main()
53 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
60 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
/third_party/python/Lib/lib2to3/fixes/
Dfix_renames.py24 for old_attr, new_attr in list(replace.items()):
25 LOOKUP[(module, old_attr)] = new_attr
69 new_attr = LOOKUP[(mod_name.value, attr_name.value)]
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/
D1-1.c29 pthread_attr_t new_attr; in main() local
33 if (pthread_attr_init(&new_attr) != 0) { in main()
41 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D3-1.c35 pthread_attr_t new_attr; in main() local
39 if (pthread_attr_init(&new_attr) != 0) { in main()
48 pthread_create(&new_threads[i], &new_attr, a_thread_func, in main()
D2-1.c56 pthread_attr_t new_attr; in main() local
61 if (pthread_attr_init(&new_attr) != 0) { in main()
67 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D4-1.c24 pthread_attr_t new_attr; in main() local
28 ret = pthread_attr_init(&new_attr); in main()
/third_party/rust/crates/nix/test/
Dtest_mq.rs98 let new_attr = MqAttr::new(0, 20, MSG_SIZE * 2, 100); in test_mq_setattr() localVariable
99 let old_attr = mq_setattr(&mqd, &new_attr).unwrap(); in test_mq_setattr()
107 assert_ne!(new_attr_get, new_attr); in test_mq_setattr()
148 let new_attr = mq_getattr(&mqd); in test_mq_set_nonblocking() localVariable
150 assert_eq!(new_attr.unwrap().flags() & o_nonblock_bits, o_nonblock_bits); in test_mq_set_nonblocking()
152 let new_attr = mq_getattr(&mqd); in test_mq_set_nonblocking() localVariable
153 assert_eq!(new_attr.unwrap().flags() & o_nonblock_bits, 0); in test_mq_set_nonblocking()
/third_party/python/Lib/test/
Dann_module2.py16 f().new_attr: object = object()
23 c.new_attr: int = 10
/third_party/node/deps/openssl/openssl/crypto/x509/
Dx509_att.c77 X509_ATTRIBUTE *new_attr = NULL; in STACK_OF() local
97 if ((new_attr = X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF()
99 if (!sk_X509_ATTRIBUTE_push(sk, new_attr)) in STACK_OF()
107 X509_ATTRIBUTE_free(new_attr); in STACK_OF()
/third_party/openssl/crypto/x509/
Dx509_att.c77 X509_ATTRIBUTE *new_attr = NULL; in STACK_OF() local
92 if ((new_attr = X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF()
94 if (!sk_X509_ATTRIBUTE_push(sk, new_attr)) in STACK_OF()
102 X509_ATTRIBUTE_free(new_attr); in STACK_OF()
/third_party/protobuf/python/
Dstubout.py45 def SmartSet(self, obj, attr_name, new_attr): argument
97 setattr(orig_obj, attr_name, new_attr)
/third_party/python/Lib/test/test_importlib/
Dtest_lazy.py100 module.new_attr = 42
101 self.assertEqual(42, module.new_attr)
/third_party/gstreamer/gstplugins_bad/ext/webrtc/
Dwebrtcsdp.c442 GstSDPAttribute new_attr = { 0, }; in _media_replace_direction() local
444 gst_sdp_attribute_set (&new_attr, dir_str, ""); in _media_replace_direction()
445 gst_sdp_media_replace_attribute (media, i, &new_attr); in _media_replace_direction()
568 GstSDPAttribute new_attr = { 0, }; in _media_replace_setup() local
570 gst_sdp_attribute_set (&new_attr, "setup", setup_str); in _media_replace_setup()
571 gst_sdp_media_replace_attribute (media, i, &new_attr); in _media_replace_setup()

12