/external/python/cpython3/Lib/multiprocessing/ |
D | resource_tracker.py | 145 def register(self, name, rtype): argument 147 self._send('REGISTER', name, rtype) 149 def unregister(self, name, rtype): argument 151 self._send('UNREGISTER', name, rtype) 153 def _send(self, cmd, name, rtype): argument 155 msg = '{0}:{1}:{2}\n'.format(cmd, name, rtype).encode('ascii') 185 cache = {rtype: set() for rtype in _CLEANUP_FUNCS.keys()} 191 cmd, name, rtype = line.strip().decode('ascii').split(':') 192 cleanup_func = _CLEANUP_FUNCS.get(rtype, None) 199 cache[rtype].add(name) [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | prep_cif.c | 111 ffi_type *rtype, ffi_type **atypes) in ffi_prep_cif_core() argument 127 cif->rtype = rtype; in ffi_prep_cif_core() 136 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif_core() 140 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif_core() 145 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif_core() 147 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif_core() 150 && (cif->rtype->size > 10 * FFI_SIZEOF_ARG) in ffi_prep_cif_core() 153 && (cif->rtype->size > 16) in ffi_prep_cif_core() 156 && (cif->rtype->size > 8) in ffi_prep_cif_core() 219 ffi_type *rtype, ffi_type **atypes) in ffi_prep_cif() argument [all …]
|
/external/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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi_msvc/ |
D | ffi.c | 49 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args() 133 switch (cif->rtype->type) in ffi_prep_cif_machdep() 140 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 147 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep() 149 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep() 203 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call() 206 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 271 unsigned short rtype; in ffi_closure_SYSV() local 288 rtype = cif->flags; in ffi_closure_SYSV() 293 if (rtype == FFI_TYPE_INT) in ffi_closure_SYSV() [all …]
|
D | prep_cif.c | 89 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type *rtype, in ffi_prep_cif() argument 102 cif->rtype = rtype; in ffi_prep_cif() 108 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif() 113 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif() 118 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif() 120 && (cif->rtype->size > 8) /* MSVC returns small structs in registers */ in ffi_prep_cif() 123 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif()
|
/external/libxml2/ |
D | gentest.py | 408 def generate_param_type(name, rtype): argument 418 if rtype[0:6] == 'const ': 419 crtype = rtype[6:] 421 crtype = rtype 434 """ % (name, crtype, name, name, rtype)) 689 rtype = arg.xpathEval("string(@type)") 690 if rtype == 'void': 694 type = type_convert(rtype, nam, info, module, name, n) 699 rtype[0:6] == 'const ': 700 crtype = rtype[6:] [all …]
|
/external/python/cpython2/Modules/_ctypes/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 …]
|
/external/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 …]
|
/external/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 …]
|
/external/python/cpython2/Modules/_ctypes/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 …]
|
/external/python/cffi/c/libffi_msvc/ |
D | ffi.c | 133 switch (cif->rtype->type) in ffi_prep_cif_machdep() 140 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 147 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep() 149 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep() 206 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() 257 unsigned short rtype; in ffi_closure_SYSV() local 274 rtype = cif->flags; in ffi_closure_SYSV() 279 if (rtype == FFI_TYPE_INT) in ffi_closure_SYSV() 284 else if (rtype == FFI_TYPE_FLOAT) in ffi_closure_SYSV() 290 else if (rtype == FFI_TYPE_DOUBLE) in ffi_closure_SYSV() [all …]
|
D | prep_cif.c | 89 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type *rtype, in ffi_prep_cif() argument 102 cif->rtype = rtype; in ffi_prep_cif() 108 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif() 113 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif() 118 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif() 120 && (cif->rtype->size > 8) /* MSVC returns small structs in registers */ in ffi_prep_cif() 123 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif()
|
/external/python/cpython2/Modules/_ctypes/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()
|
/external/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()
|
/external/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 …]
|
/external/python/cpython2/Modules/_ctypes/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 …]
|
/external/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()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/x86/ |
D | ffi.c | 66 && (ecif->cif->rtype->size != 1 && ecif->cif->rtype->size != 2 in ffi_prep_args() 67 && ecif->cif->rtype->size != 4 && ecif->cif->rtype->size != 8) in ffi_prep_args() 231 switch (cif->rtype->type) in ffi_prep_cif_machdep() 250 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 262 if (cif->rtype->size == 1) in ffi_prep_cif_machdep() 266 else if (cif->rtype->size == 2) in ffi_prep_cif_machdep() 270 else if (cif->rtype->size == 4) in ffi_prep_cif_machdep() 278 else if (cif->rtype->size == 8) in ffi_prep_cif_machdep() 356 && cif->rtype->size != 1 && cif->rtype->size != 2 in ffi_call() 357 && cif->rtype->size != 4 && cif->rtype->size != 8) in ffi_call() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi_osx/ |
D | ffi.c | 135 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type* rtype, in ffi_prep_cif() argument 151 cif->rtype = rtype; in ffi_prep_cif() 156 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif() 161 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif() 166 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif() 168 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif() 171 && (struct_on_stack(cif->rtype->size)) in ffi_prep_cif()
|
/external/python/cpython3/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()
|
/external/python/cpython2/Modules/_ctypes/libffi_arm_wince/ |
D | prep_cif.c | 89 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type *rtype, in ffi_prep_cif() argument 102 cif->rtype = rtype; in ffi_prep_cif() 108 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif() 113 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif() 118 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif() 123 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif()
|
/external/python/cpython2/Modules/_ctypes/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()
|
/external/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()
|
/external/python/cpython2/Modules/_ctypes/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 …]
|
/external/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 …]
|