/third_party/python/Lib/multiprocessing/ |
D | resource_tracker.py | 153 def register(self, name, rtype): argument 155 self._send('REGISTER', name, rtype) 157 def unregister(self, name, rtype): argument 159 self._send('UNREGISTER', name, rtype) 161 def _send(self, cmd, name, rtype): argument 163 msg = '{0}:{1}:{2}\n'.format(cmd, name, rtype).encode('ascii') 193 cache = {rtype: set() for rtype in _CLEANUP_FUNCS.keys()} 199 cmd, name, rtype = line.strip().decode('ascii').split(':') 200 cleanup_func = _CLEANUP_FUNCS.get(rtype, None) 207 cache[rtype].add(name) [all …]
|
/third_party/libffi/src/ |
D | prep_cif.c | 113 ffi_type *rtype, ffi_type **atypes) in ffi_prep_cif_core() argument 129 cif->rtype = rtype; in ffi_prep_cif_core() 140 if ((cif->rtype->size == 0) in ffi_prep_cif_core() 141 && (initialize_aggregate(cif->rtype, NULL) != FFI_OK)) in ffi_prep_cif_core() 145 if (rtype->type == FFI_TYPE_COMPLEX) in ffi_prep_cif_core() 149 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif_core() 154 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif_core() 156 && (cif->rtype->size > 10 * FFI_SIZEOF_ARG) in ffi_prep_cif_core() 159 && (cif->rtype->size > 16) in ffi_prep_cif_core() 162 && (cif->rtype->size > 8) in ffi_prep_cif_core() [all …]
|
/third_party/libffi/src/m32r/ |
D | ffi.c | 47 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 8) in ffi_prep_args() 143 switch (cif->rtype->type) in ffi_prep_cif_machdep() 146 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 150 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep() 153 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep() 157 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 188 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 190 ecif.rvalue = alloca (cif->rtype->size); in ffi_call() 200 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call() 202 int size = cif->rtype->size; in ffi_call() [all …]
|
/third_party/libffi/src/vax/ |
D | ffi.c | 61 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args() 125 switch (cif->rtype->type) in ffi_prep_cif_machdep() 132 if (cif->rtype->elements[0]->type == FFI_TYPE_STRUCT && in ffi_prep_cif_machdep() 133 cif->rtype->elements[1]) in ffi_prep_cif_machdep() 139 if (cif->rtype->size == sizeof (char)) in ffi_prep_cif_machdep() 141 else if (cif->rtype->size == sizeof (short)) in ffi_prep_cif_machdep() 143 else if (cif->rtype->size == sizeof (int)) in ffi_prep_cif_machdep() 145 else if (cif->rtype->size == 2 * sizeof (int)) in ffi_prep_cif_machdep() 152 if (cif->rtype->size <= sizeof (int)) in ffi_prep_cif_machdep() 174 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() [all …]
|
/third_party/libffi/src/microblaze/ |
D | ffi.c | 55 if ((ecif->cif->rtype != NULL) && in ffi_prep_args() 56 (ecif->cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_prep_args() 159 if ((rvalue == NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_call() 160 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 169 ecif.rvalue, fn, cif->rtype->type, cif->rtype->size); in ffi_call() 179 unsigned int* rtype, unsigned int* rsize) in ffi_closure_call_SYSV() argument 210 if ((cif->rtype != NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_closure_call_SYSV() 266 *rsize = cif->rtype->size; in ffi_closure_call_SYSV() 267 *rtype = cif->rtype->type; in ffi_closure_call_SYSV()
|
/third_party/libffi/src/m68k/ |
D | ffi.c | 49 (ecif->cif->rtype->type == FFI_TYPE_LONGDOUBLE) || in ffi_prep_args() 51 (((ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args() 134 switch (cif->rtype->type) in ffi_prep_cif_machdep() 141 if (cif->rtype->elements[0]->type == FFI_TYPE_STRUCT && in ffi_prep_cif_machdep() 142 cif->rtype->elements[1]) in ffi_prep_cif_machdep() 148 switch (cif->rtype->size) in ffi_prep_cif_machdep() 233 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() 234 && cif->rtype->size > 8) in ffi_call() 235 ecif.rvalue = alloca (cif->rtype->size); in ffi_call() 270 cif->rtype->type == FFI_TYPE_STRUCT && in ffi_prep_incoming_args_SYSV() [all …]
|
/third_party/libffi/src/xtensa/ |
D | ffi.c | 57 switch(cif->rtype->type) { in ffi_prep_cif_machdep() 62 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep() 76 if (cif->rtype->size > 4 * 4) { in ffi_prep_cif_machdep() 123 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 16) in ffi_prep_args() 193 unsigned long rsize = cif->rtype->size; in ffi_call() 264 int rtype = cif->rtype->type; in ffi_closure_SYSV_inner() local 265 if (rtype == FFI_TYPE_STRUCT && cif->rtype->size > 4 * 4) in ffi_closure_SYSV_inner() 297 return rtype; in ffi_closure_SYSV_inner()
|
/third_party/python/Modules/_ctypes/libffi_osx/ |
D | ffi.c | 136 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type* rtype, in ffi_prep_cif() argument 152 cif->rtype = rtype; in ffi_prep_cif() 157 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif() 162 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif() 167 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif() 169 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif() 172 && (struct_on_stack(cif->rtype->size)) in ffi_prep_cif()
|
/third_party/libffi/testsuite/libffi.call/ |
D | struct10.c | 30 ffi_type rtype; in main() local 38 rtype.size = 0; in main() 39 rtype.alignment = 0, in main() 40 rtype.type = FFI_TYPE_STRUCT, in main() 41 rtype.elements = s_fields, in main() 50 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 0, &rtype, NULL) == FFI_OK); in main()
|
/third_party/libffi/src/sh64/ |
D | ffi.c | 69 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args() 165 greg = (return_type (cif->rtype) == FFI_TYPE_STRUCT ? 1 : 0); in ffi_prep_cif_machdep() 219 switch (cif->rtype->type) in ffi_prep_cif_machdep() 222 cif->flags = return_type (cif->rtype); in ffi_prep_cif_machdep() 230 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep() 265 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() 266 && return_type (cif->rtype) != FFI_TYPE_STRUCT) in ffi_call() 269 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 271 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 288 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() [all …]
|
/third_party/libffi/src/nios2/ |
D | ffi.c | 88 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args() 89 && ecif->cif->rtype->size > 8) in ffi_prep_args() 159 int bigret = (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() 160 && cif->rtype->size > 8); in ffi_call() 168 ecif.rvalue = alloca (cif->rtype->size); in ffi_call() 178 switch (cif->rtype->size) in ffi_call() 193 memcpy (rvalue, (void *)&result, cif->rtype->size); in ffi_call() 216 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_closure_helper() 217 && cif->rtype->size > 8) in ffi_closure_helper()
|
/third_party/libffi/src/cris/ |
D | ffi.c | 160 ffi_type * rtype, ffi_type ** atypes) in ffi_prep_cif_core() argument 174 cif->rtype = rtype; in ffi_prep_cif_core() 178 if ((cif->rtype->size == 0) in ffi_prep_cif_core() 179 && (initialize_aggregate_packed_struct (cif->rtype) != FFI_OK)) in ffi_prep_cif_core() 182 FFI_ASSERT_VALID_TYPE (cif->rtype); in ffi_prep_cif_core() 221 switch (cif->rtype->type) in ffi_prep_cif_machdep() 229 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 253 if ((rvalue == NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 255 ecif.rvalue = alloca (cif->rtype->size); in ffi_call() 348 cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_closure_inner()
|
/third_party/libffi/src/moxie/ |
D | ffi.c | 46 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args() 109 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep() 112 cif->flags = cif->rtype->size; in ffi_prep_cif_machdep() 139 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 141 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 189 if ((cif->rtype != NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_closure_eabi() 244 if (cif->rtype && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_closure_eabi()
|
/third_party/libffi/src/sh/ |
D | ffi.c | 127 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args() 334 greg = ((return_type (cif->rtype) == FFI_TYPE_STRUCT) && in ffi_prep_cif_machdep() 387 switch (cif->rtype->type) in ffi_prep_cif_machdep() 390 cif->flags += (unsigned) (return_type (cif->rtype)) << 24; in ffi_prep_cif_machdep() 398 cif->flags += (unsigned) cif->rtype->type << 24; in ffi_prep_cif_machdep() 423 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() 424 && return_type (cif->rtype) != FFI_TYPE_STRUCT) in ffi_call() 427 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 429 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 446 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() [all …]
|
/third_party/libffi/src/or1k/ |
D | ffi.c | 45 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args() 142 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call() 189 if ((cif->rtype != NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_closure_SYSV() 251 if (cif->rtype && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_closure_SYSV() 258 if (cif->rtype) in ffi_closure_SYSV() 308 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep() 311 if (cif->rtype->size > 4) in ffi_prep_cif_machdep()
|
/third_party/libffi/src/m88k/ |
D | ffi.c | 86 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args() 203 switch (cif->rtype->type) in ffi_prep_cif_machdep() 210 if (cif->rtype->size == sizeof (int) && in ffi_prep_cif_machdep() 211 cif->rtype->alignment == sizeof (int)) in ffi_prep_cif_machdep() 243 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() 244 && (cif->rtype->size != sizeof (int) in ffi_call() 245 || cif->rtype->alignment != sizeof (int))) in ffi_call() 246 ecif.rvalue = alloca (cif->rtype->size); in ffi_call() 377 if (cif->rtype->type == FFI_TYPE_STRUCT && !cif->flags) in ffi_prep_closure_loc()
|
/third_party/libffi/src/metag/ |
D | ffi.c | 124 if (cif->rtype->type == FFI_TYPE_STRUCT) { in ffi_prep_cif_machdep() 134 switch (cif->rtype->type) { in ffi_prep_cif_machdep() 138 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 146 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep() 149 else if ((cif->rtype->size > 4) && (cif->rtype->size <= 8)) in ffi_prep_cif_machdep() 177 …(cif->flags == FFI_TYPE_INT) || (cif->flags == FFI_TYPE_DOUBLE)) && (cif->rtype->type == FFI_TYPE_… in ffi_call() 189 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 205 memcpy (rvalue, &temp, cif->rtype->size); in ffi_call()
|
/third_party/libffi/src/avr32/ |
D | ffi.c | 188 switch(cif->rtype->type) in ffi_prep_cif_machdep() 211 if(!pass_struct_on_stack(cif->rtype)) in ffi_prep_cif_machdep() 213 if(cif->rtype->size <= 1) in ffi_prep_cif_machdep() 215 else if(cif->rtype->size <= 2) in ffi_prep_cif_machdep() 217 else if(cif->rtype->size <= 4) in ffi_prep_cif_machdep() 219 else if(cif->rtype->size <= 8) in ffi_prep_cif_machdep() 222 cif->flags = (unsigned)cif->rtype->type; in ffi_prep_cif_machdep() 225 cif->flags = (unsigned)cif->rtype->type; in ffi_prep_cif_machdep() 228 cif->flags = (unsigned)cif->rtype->type; in ffi_prep_cif_machdep() 253 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
|
/third_party/python/Modules/_ctypes/libffi_osx/x86/ |
D | x86-ffi_darwin.c | 120 switch (cif->rtype->type) in ffi_prep_cif_machdep() 135 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 144 if (cif->rtype->size == 1) in ffi_prep_cif_machdep() 148 else if (cif->rtype->size == 2) in ffi_prep_cif_machdep() 152 else if (cif->rtype->size == 4) in ffi_prep_cif_machdep() 156 else if (cif->rtype->size == 8) in ffi_prep_cif_machdep() 201 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 411 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_raw_call() 413 ecif.rvalue = alloca(cif->rtype->size); in ffi_raw_call()
|
/third_party/libffi/src/mips/ |
D | ffi.c | 98 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) in ffi_prep_args() 336 if (cif->rtype->type != FFI_TYPE_STRUCT && cif->abi == FFI_O32) in ffi_prep_cif_machdep_int() 376 switch (cif->rtype->type) in ffi_prep_cif_machdep_int() 380 cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 2); in ffi_prep_cif_machdep_int() 398 switch (cif->rtype->type) in ffi_prep_cif_machdep_int() 404 cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 2); in ffi_prep_cif_machdep_int() 432 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep_int() 434 struct_flags = calc_n32_return_struct_flags(soft_float, cif->rtype); in ffi_prep_cif_machdep_int() 514 switch (cif->rtype->type) in ffi_prep_cif_machdep_int() 556 cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 8); in ffi_prep_cif_machdep_int() [all …]
|
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/ |
D | check_str.c | 41 exact_msg = (tr->rtype == CK_ERROR) ? "(after this point) " : ""; in tr_str() 56 exact_msg = (tr->rtype == CK_ERROR) ? "(after this point) " : ""; in tr_short_str() 114 if (tr->rtype == CK_PASS) in tr_type_str() 116 else if (tr->rtype == CK_FAILURE) in tr_type_str() 118 else if (tr->rtype == CK_ERROR) in tr_type_str()
|
D | check_run.c | 265 if (tr->rtype == CK_FAILURE) in srunner_add_failure() 267 else if (tr->rtype == CK_ERROR) in srunner_add_failure() 296 if (tr->rtype != CK_PASS) { in srunner_run_setup() 323 if (tr != NULL && tr->rtype != CK_PASS) { in srunner_run_unchecked_setup() 430 tr->rtype = CK_PASS; in set_nofork_info() 433 tr->rtype = CK_FAILURE; in set_nofork_info() 540 tr->rtype = CK_ERROR; in set_fork_info() 546 tr->rtype = CK_PASS; in set_fork_info() 554 tr->rtype = CK_ERROR; in set_fork_info() 561 tr->rtype = CK_ERROR; in set_fork_info() [all …]
|
/third_party/libffi/src/arc/ |
D | ffi.c | 55 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args() 135 switch (cif->rtype->type) in ffi_prep_cif_machdep() 138 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 142 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 174 if ((rvalue == NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 176 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
|
/third_party/libffi/src/pa/ |
D | ffi.c | 322 switch (cif->rtype->type) in ffi_prep_cif_machdep() 327 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 343 cif->flags = ffi_struct_type(cif->rtype); in ffi_prep_cif_machdep() 388 && (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call() 389 || cif->rtype->type == FFI_TYPE_LONGDOUBLE)) in ffi_call() 391 && cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call() 394 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 579 tmp += 4 - cif->rtype->size; in ffi_closure_inner_pa32() 580 memcpy((void*)tmp, &ret[0], cif->rtype->size); in ffi_closure_inner_pa32()
|
/third_party/libffi/src/powerpc/ |
D | ffi_darwin.c | 675 darwin_adjust_aggregate_sizes (cif->rtype); in ffi_prep_cif_machdep() 682 aix_adjust_aggregate_sizes (cif->rtype); in ffi_prep_cif_machdep() 711 switch (cif->rtype->type) in ffi_prep_cif_machdep() 740 if (darwin64_struct_ret_by_value_p (cif->rtype)) in ffi_prep_cif_machdep() 744 if (cif->rtype->size != 16) in ffi_prep_cif_machdep() 745 darwin64_scan_struct_for_floats (cif->rtype, &nfpr) ; in ffi_prep_cif_machdep() 760 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep() 930 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 932 ecif.rvalue = alloca (cif->rtype->size); in ffi_call() 945 FFI_FN(ffi_prep_args), cif->rtype); in ffi_call() [all …]
|