/third_party/python/Lib/email/ |
H A D | _policybase.py | 68 for attr, value in self.__dict__.items(): 69 object.__setattr__(newpolicy, attr, value) 70 for attr, value in kw.items(): 71 if not hasattr(self, attr): 74 attr, self.__class__.__name__)) 75 object.__setattr__(newpolicy, attr, value) 102 for name, attr in cls.__dict__.items(): 103 if attr.__doc__ and attr.__doc__.startswith('+'): 107 attr [all...] |
/third_party/rust/crates/nix/src/ |
H A D | mqueue.rs | 105 let mut attr = mem::MaybeUninit::<libc::mq_attr>::uninit(); in new() variables 107 let p = attr.as_mut_ptr(); in new() 113 mq_attr: attr.assume_init(), in new() 148 attr: Option<&MqAttr>, in mq_open() 150 let res = match attr { in mq_open() 219 let mut attr = mem::MaybeUninit::<libc::mq_attr>::uninit(); in mq_getattr() variables 220 let res = unsafe { libc::mq_getattr(mqd.0, attr.as_mut_ptr()) }; in mq_getattr() 223 mq_attr: attr.assume_init(), in mq_getattr() 234 let mut attr = mem::MaybeUninit::<libc::mq_attr>::uninit(); in mq_setattr() variables 239 attr in mq_setattr() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_sake.c | 147 struct eap_sake_parse_attr attr; in eap_sake_process_identity() local 157 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_identity() 160 if (!attr.perm_id_req && !attr.any_id_req) { in eap_sake_process_identity() 190 struct eap_sake_parse_attr attr; in eap_sake_process_challenge() local 206 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_challenge() 209 if (!attr.rand_s) { in eap_sake_process_challenge() 215 os_memcpy(data->rand_s, attr.rand_s, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 229 if (attr.serverid) { in eap_sake_process_challenge() 231 attr in eap_sake_process_challenge() 293 struct eap_sake_parse_attr attr; eap_sake_process_confirm() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_sake.c | 147 struct eap_sake_parse_attr attr; in eap_sake_process_identity() local 157 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_identity() 160 if (!attr.perm_id_req && !attr.any_id_req) { in eap_sake_process_identity() 190 struct eap_sake_parse_attr attr; in eap_sake_process_challenge() local 206 if (eap_sake_parse_attributes(payload, payload_len, &attr)) in eap_sake_process_challenge() 209 if (!attr.rand_s) { in eap_sake_process_challenge() 215 os_memcpy(data->rand_s, attr.rand_s, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 229 if (attr.serverid) { in eap_sake_process_challenge() 231 attr in eap_sake_process_challenge() 293 struct eap_sake_parse_attr attr; eap_sake_process_confirm() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_attr_setschedparam.c | 26 pthread_attr_t attr; in pthread_attr_setschedparam_0100() local 31 pthread_attr_init(&attr); in pthread_attr_setschedparam_0100() 32 int ret = pthread_attr_setschedparam(&attr, &setparam); in pthread_attr_setschedparam_0100() 36 ret = pthread_attr_getschedparam(&attr, &getparam); in pthread_attr_setschedparam_0100() 39 pthread_attr_destroy(&attr); in pthread_attr_setschedparam_0100()
|
H A D | pthread_attr_setschedpolicy.c | 26 pthread_attr_t attr; in pthread_attr_setschedpolicy_0100() local 29 pthread_attr_init(&attr); in pthread_attr_setschedpolicy_0100() 30 int ret = pthread_attr_setschedpolicy(&attr, setpolicy); in pthread_attr_setschedpolicy_0100() 33 ret = pthread_attr_getschedpolicy(&attr, &getpolicy); in pthread_attr_setschedpolicy_0100() 36 pthread_attr_destroy(&attr); in pthread_attr_setschedpolicy_0100()
|
/third_party/curl/docs/examples/ |
H A D | htmltidy.c | 54 TidyAttr attr; in dumpNode() local 57 for(attr = tidyAttrFirst(child); attr; attr = tidyAttrNext(attr) ) { in dumpNode() 58 printf("%s", tidyAttrName(attr)); in dumpNode() 59 tidyAttrValue(attr)?printf("=\"%s\" ", in dumpNode() 60 tidyAttrValue(attr)):printf(" "); in dumpNode()
|
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
H A D | bpf_prog05.c | 62 static union bpf_attr *attr; variable 83 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in ensure_ptr_arithmetic() 85 ret = TST_RETRY_FUNC(bpf(BPF_PROG_LOAD, attr, sizeof(*attr)), in ensure_ptr_arithmetic() 141 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in load_prog() 143 return bpf_load_prog(attr, log); in load_prog() 206 {&attr, .size = sizeof(*attr)},
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
H A D | 2-1.c | 18 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 59 struct mq_attr attr; in main() local 78 attr.mq_msgsize = BUFFER; in main() 79 attr.mq_maxmsg = BUFFER; in main() 80 childqueue = mq_open(qname, O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 104 struct mq_attr attr; in main() local 106 attr.mq_msgsize = BUFFER; in main() 107 attr.mq_maxmsg = BUFFER; in main() 109 S_IRUSR | S_IWUSR, &attr); in main()
|
H A D | 9-2.c | 15 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 55 struct mq_attr attr; in main() local 75 attr.mq_msgsize = BUFFER; in main() 76 attr.mq_maxmsg = BUFFER; in main() 78 S_IRUSR | S_IWUSR, &attr); in main() 113 struct mq_attr attr; in main() local 117 attr.mq_msgsize = BUFFER; in main() 118 attr.mq_maxmsg = BUFFER; in main() 120 S_IRUSR | S_IWUSR, &attr); in main()
|
H A D | 8-2.c | 15 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 55 struct mq_attr attr; in main() local 75 attr.mq_msgsize = BUFFER; in main() 76 attr.mq_maxmsg = BUFFER; in main() 77 woqueue = mq_open(qname, O_WRONLY, S_IRUSR | S_IWUSR, &attr); in main() 110 struct mq_attr attr; in main() local 114 attr.mq_msgsize = BUFFER; in main() 115 attr.mq_maxmsg = BUFFER; in main() 117 S_IRUSR | S_IWUSR, &attr); in main()
|
H A D | 7-2.c | 15 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 56 struct mq_attr attr; in main() local 75 attr.mq_msgsize = BUFFER; in main() 76 attr.mq_maxmsg = BUFFER; in main() 77 roqueue = mq_open(qname, O_RDONLY, S_IRUSR | S_IWUSR, &attr); in main() 109 struct mq_attr attr; in main() local 112 attr.mq_msgsize = BUFFER; in main() 113 attr.mq_maxmsg = BUFFER; in main() 115 S_IRUSR | S_IWUSR, &attr); in main()
|
/third_party/rust/crates/bindgen/bindgen/ir/ |
H A D | annotations.rs | 173 .map_or(false, |attr| attr.name == "rustbindgen") in parse() 176 for attr in comment.get_tag_attrs() { in parse() 177 match attr.name.as_str() { in parse() 186 attr.value.split("::").map(Into::into).collect(), in parse() 189 "derive" => self.derives.push(attr.value), in parse() 191 self.private_fields = Some(attr.value != "false") in parse() 194 self.accessor_kind = Some(parse_accessor(&attr.value)) in parse()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | mutex-posix.c | 44 pthread_mutexattr_t attr; in pa_mutex_new() local 49 pa_assert_se(pthread_mutexattr_init(&attr) == 0); in pa_mutex_new() 52 pa_assert_se(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) == 0); in pa_mutex_new() 56 r = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT); in pa_mutex_new() 64 pa_assert_se(pthread_mutex_init(&m->mutex, &attr) == 0); in pa_mutex_new() 67 if ((r = pthread_mutex_init(&m->mutex, &attr))) { in pa_mutex_new() 74 pa_assert_se(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_NONE) == 0); in pa_mutex_new() 75 pa_assert_se(pthread_mutex_init(&m->mutex, &attr) == 0); in pa_mutex_new()
|
/third_party/rust/crates/cxx/src/symbols/ |
H A D | rust_vec.rs | 17 attr! { 23 attr! { 29 attr! { 35 attr! { 41 attr! { 47 attr! { 53 attr! { 59 attr! {
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/ |
H A D | 1-1.c | 11 * 1. Initialize pthread_attr_t object (attr) 12 * 2. set the stackaddr and stacksize to attr 32 pthread_attr_t attr; in main() local 39 /* Initialize attr */ in main() 40 rc = pthread_attr_init(&attr); in main() 47 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 64 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() 70 rc = pthread_attr_getstack(&attr, &saddr, &ssize); in main() 77 rc = pthread_attr_destroy(&attr); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/ |
H A D | 1-1.c | 11 * 1. Initialize pthread_attr_t object (attr) 12 * 2. set the stacksize to attr 32 pthread_attr_t attr; in main() local 38 /* Initialize attr */ in main() 39 rc = pthread_attr_init(&attr); in main() 46 rc = pthread_attr_getstacksize(&attr, &stack_size); in main() 62 rc = pthread_attr_setstacksize(&attr, stack_size); in main() 68 rc = pthread_attr_getstacksize(&attr, &ssize); in main() 75 rc = pthread_attr_destroy(&attr); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/ |
H A D | 7-1.c | 11 * 1. Initialize pthread_attr_t object (attr) 37 pthread_attr_t attr; in main() local 40 /* Initialize attr */ in main() 41 rc = pthread_attr_init(&attr); in main() 48 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 66 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() 75 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() 81 rc = pthread_attr_destroy(&attr); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/ |
H A D | 2-1.c | 11 * 1. Initialize pthread_attr_t object (attr) 12 * 2. Set schedule policy (policy) in attr to SCHED_FIFO 13 * 3. Set inheritsched to PTHREAD_INHERIT_SCHED in attr 14 * 4. Call pthread_create with attr 59 pthread_attr_t attr; in main() local 62 /* Initialize attr */ in main() 63 rc = pthread_attr_init(&attr); in main() 69 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 76 rc = pthread_attr_setinheritsched(&attr, insched); in main() 82 rc = pthread_create(&new_th, &attr, thread_fun in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/ |
H A D | 1-1.c | 40 pthread_attr_t attr; in main() local 47 rc = pthread_attr_init(&attr); in main() 53 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 65 rc = pthread_attr_setschedparam(&attr, ¶m); in main() 71 rc = pthread_create(&thread, &attr, thread_func, NULL); in main() 85 pthread_attr_destroy(&attr); in main()
|
H A D | 1-2.c | 41 pthread_attr_t attr; in main() local 48 rc = pthread_attr_init(&attr); in main() 54 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 67 rc = pthread_attr_setschedparam(&attr, ¶m); in main() 73 rc = pthread_create(&thread, &attr, thread_func, NULL); in main() 87 pthread_attr_destroy(&attr); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/ |
H A D | 1-1.c | 11 * 1. Initialize pthread_attr_t object (attr) 12 * 2. sets the contentionscope to attr 13 * 3. create a thread with the attr 39 pthread_attr_t attr; in main() local 43 /* Initialize attr */ in main() 44 rc = pthread_attr_init(&attr); in main() 50 rc = pthread_attr_setscope(&attr, CONSCOPE); in main() 56 rc = pthread_create(&new_th, &attr, thread_func, NULL); in main() 62 rc = pthread_attr_getscope(&attr, &cscope); in main() 80 rc = pthread_attr_destroy(&attr); in main() [all...] |
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_post.c | 599 struct cil_typeattribute *attr = node->data; in __cil_post_db_count_helper() local 600 if (attr->datum.nodes->head->data == node) { in __cil_post_db_count_helper() 874 static int __evaluate_type_expression(struct cil_typeattribute *attr, struct cil_db *db) in __evaluate_type_expression() argument 878 attr->types = cil_malloc(sizeof(*attr->types)); in __evaluate_type_expression() 879 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->types, db->num_types, db); in __evaluate_type_expression() 882 ebitmap_destroy(attr->types); in __evaluate_type_expression() 883 free(attr->types); in __evaluate_type_expression() 884 attr in __evaluate_type_expression() 897 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; __cil_type_to_bitmap() local 926 __evaluate_user_expression(struct cil_userattribute *attr, struct cil_db *db) __evaluate_user_expression() argument 945 struct cil_userattribute *attr = NULL; __cil_user_to_bitmap() local 974 __evaluate_role_expression(struct cil_roleattribute *attr, struct cil_db *db) __evaluate_role_expression() argument 997 struct cil_roleattribute *attr = (struct cil_roleattribute *)datum; __cil_role_to_bitmap() local 1442 cil_typeattribute_used(struct cil_typeattribute *attr, struct cil_db *db) cil_typeattribute_used() argument 1492 struct cil_typeattribute *attr = curr->data; __mark_neverallow_attrs() local 1520 struct cil_typeattribute *attr = node->data; __cil_post_db_neverallow_attr_helper() local 1552 struct cil_typeattribute *attr = node->data; __cil_post_db_attr_helper() local 1561 struct cil_roleattribute *attr = node->data; __cil_post_db_attr_helper() local 1583 struct cil_userattribute *attr = node->data; __cil_post_db_attr_helper() local 1625 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; __cil_role_assign_types() local 1659 struct cil_roleattribute *attr = roletype->role; __cil_post_db_roletype_helper() local 1697 struct cil_roleattribute *attr = NULL; __cil_user_assign_roles() local [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | libc_pthread.cpp | 544 pthread_attr_t attr; in Bm_function_pthread_attr_init_destroy() local 549 ret = pthread_attr_init(&attr); in Bm_function_pthread_attr_init_destroy() 552 pthread_create(&thread1, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy() 553 pthread_create(&thread2, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy() 557 benchmark::DoNotOptimize(pthread_attr_destroy(&attr)); in Bm_function_pthread_attr_init_destroy() 659 pthread_attr_t attr; in Bm_function_pthread_attr_setschedpolicy() local 660 pthread_attr_init(&attr); in Bm_function_pthread_attr_setschedpolicy() 663 if (pthread_attr_setschedpolicy(&attr, setpolicy) != 0) { in Bm_function_pthread_attr_setschedpolicy() 667 pthread_attr_destroy(&attr); in Bm_function_pthread_attr_setschedpolicy() 673 pthread_attr_t attr; in Bm_function_pthread_attr_getschedparam() local 692 pthread_condattr_t attr; Bm_function_pthread_condattr_setclock() local 717 pthread_attr_t attr; Bm_function_pthread_attr_setschedparam() local [all...] |
/third_party/libcoap/src/ |
H A D | coap_resource.c | 213 coap_attr_t *attr; local 215 attr = coap_find_attr(r, &resource_param); 216 if (!attr || !attr->value) 218 unquoted_val = *attr->value; 219 if (attr->value->s[0] == '"') { /* if attribute has a quoted value, remove double quotes */ 390 coap_attr_t *attr; local 394 attr = (coap_attr_t *)coap_malloc_type(COAP_RESOURCEATTR, sizeof(coap_attr_t)); 396 if (attr) { 401 attr 424 coap_attr_t *attr; global() local 439 coap_attr_get_value(coap_attr_t *attr) global() argument 446 coap_delete_attr(coap_attr_t *attr) global() argument 467 coap_attr_t *attr, *tmp; global() local 619 coap_attr_t *attr; global() local [all...] |