/external/python/cpython3/Lib/ctypes/test/ |
D | test_bitfields.py | 19 ("M", c_short, 1), 20 ("N", c_short, 2), 21 ("O", c_short, 3), 22 ("P", c_short, 4), 23 ("Q", c_short, 5), 24 ("R", c_short, 6), 25 ("S", c_short, 7)] 53 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong) 167 _fields_ = [("a", c_short, 1), 168 ("b", c_short, 14), [all …]
|
D | test_pep3118.py | 118 s_short = {2: 'h', 4: 'l', 8: 'q'}[sizeof(c_short)] 151 (c_short, "<" + s_short, (), c_short), 180 (POINTER(c_short) * 2, "&<" + s_short, (2,), POINTER(c_short)), 181 (POINTER(c_short) * 2 * 3, "&<" + s_short, (3,2,), POINTER(c_short)), 182 (POINTER(c_short * 2), "&(2)<" + s_short, (), POINTER(c_short)),
|
D | test_byteswap.py | 47 self.assertIs(c_short.__ctype_le__, c_short) 48 self.assertIs(c_short.__ctype_be__.__ctype_le__, c_short) 50 self.assertIs(c_short.__ctype_be__, c_short) 51 self.assertIs(c_short.__ctype_le__.__ctype_be__, c_short) 52 s = c_short.__ctype_be__(0x1234) 57 s = c_short.__ctype_le__(0x1234) 183 ("c", c_short), 251 ("h", c_short), 271 ("h", c_short), 298 ("h", c_short),
|
D | test_functions.py | 78 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 93 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 105 f.restype = c_short 119 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 131 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 143 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble] 157 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 163 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong] 205 self.assertRaises(ArgumentError, f, byref(c_short(22))) 336 _fields_ = [("x", c_short), [all …]
|
D | test_parameters.py | 83 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer 97 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42))) 102 from ctypes import c_short, c_uint, c_int, c_long, POINTER, byref 107 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22))) 114 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref 119 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_short(22)))) 125 from ctypes import c_short, c_uint, c_int, c_long, POINTER 135 self.assertRaises(TypeError, LPINT.from_param, c_short*3)
|
D | test_arrays.py | 10 formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \ 156 _type_ = c_short 166 self.assertEqual(X._type_, c_short) 168 self.assertEqual(X()._type_, c_short)
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_bitfields.py | 20 ("M", c_short, 1), 21 ("N", c_short, 2), 22 ("O", c_short, 3), 23 ("P", c_short, 4), 24 ("Q", c_short, 5), 25 ("R", c_short, 6), 26 ("S", c_short, 7)] 50 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong) 164 _fields_ = [("a", c_short, 1), 165 ("b", c_short, 14), [all …]
|
D | test_byteswap.py | 27 self.assertIs(c_short.__ctype_le__, c_short) 28 self.assertIs(c_short.__ctype_be__.__ctype_le__, c_short) 30 self.assertIs(c_short.__ctype_be__, c_short) 31 self.assertIs(c_short.__ctype_le__.__ctype_be__, c_short) 32 s = c_short.__ctype_be__(0x1234) 37 s = c_short.__ctype_le__(0x1234) 163 ("c", c_short), 231 ("h", c_short), 251 ("h", c_short), 278 ("h", c_short),
|
D | test_pep3118.py | 115 s_short = {2: 'h', 4: 'l', 8: 'q'}[sizeof(c_short)] 148 (c_short, "<" + s_short, None, c_short), 177 (POINTER(c_short) * 2, "&<" + s_short, (2,), POINTER(c_short)), 178 (POINTER(c_short) * 2 * 3, "&<" + s_short, (3,2,), POINTER(c_short)), 179 (POINTER(c_short * 2), "&(2)<" + s_short, None, POINTER(c_short)),
|
D | test_functions.py | 78 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 93 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 105 f.restype = c_short 119 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 131 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 143 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble] 157 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 163 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong] 205 self.assertRaises(ArgumentError, f, byref(c_short(22))) 336 _fields_ = [("x", c_short), [all …]
|
D | test_parameters.py | 88 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer 102 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42))) 107 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref 112 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22))) 119 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref 124 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_short(22)))) 130 from ctypes import c_short, c_uint, c_int, c_long, POINTER 140 self.assertRaises(TypeError, LPINT.from_param, c_short*3)
|
D | test_cast.py | 15 if 2*sizeof(c_short) == sizeof(c_int): 16 ptr = cast(array, POINTER(c_short))
|
/external/rust/crates/libc/src/unix/newlib/xtensa/ |
D | mod.rs | 67 pub const POLLIN: ::c_short = 1 << 0; 68 pub const POLLRDNORM: ::c_short = 1 << 1; 69 pub const POLLRDBAND: ::c_short = 1 << 2; 70 pub const POLLPRI: ::c_short = POLLRDBAND; 71 pub const POLLOUT: ::c_short = 1 << 3; 72 pub const POLLWRNORM: ::c_short = POLLOUT; 73 pub const POLLWRBAND: ::c_short = 1 << 4; 74 pub const POLLERR: ::c_short = 1 << 5; 75 pub const POLLHUP: ::c_short = 1 << 6;
|
/external/rust/crates/libc/src/unix/newlib/aarch64/ |
D | mod.rs | 37 pub const POLLIN: ::c_short = 0x1; 38 pub const POLLPRI: ::c_short = 0x2; 39 pub const POLLOUT: ::c_short = 0x4; 40 pub const POLLERR: ::c_short = 0x8; 41 pub const POLLHUP: ::c_short = 0x10; 42 pub const POLLNVAL: ::c_short = 0x20;
|
/external/rust/crates/libc/src/unix/newlib/arm/ |
D | mod.rs | 39 pub const POLLIN: ::c_short = 0x1; 40 pub const POLLPRI: ::c_short = 0x2; 41 pub const POLLHUP: ::c_short = 0x4; 42 pub const POLLERR: ::c_short = 0x8; 43 pub const POLLOUT: ::c_short = 0x10; 44 pub const POLLNVAL: ::c_short = 0x20;
|
/external/python/cpython2/Lib/ctypes/ |
D | wintypes.py | 28 SHORT = c_short 104 _fields_ = [('Left', c_short), 105 ('Top', c_short), 106 ('Right', c_short), 107 ('Bottom', c_short)] 111 _fields_ = [('X', c_short), 112 ('Y', c_short)]
|
/external/rust/crates/libc/src/unix/bsd/ |
D | mod.rs | 336 pub const F_RDLCK: ::c_short = 1; 337 pub const F_UNLCK: ::c_short = 2; 338 pub const F_WRLCK: ::c_short = 3; 449 pub const POLLIN: ::c_short = 0x1; 450 pub const POLLPRI: ::c_short = 0x2; 451 pub const POLLOUT: ::c_short = 0x4; 452 pub const POLLERR: ::c_short = 0x8; 453 pub const POLLHUP: ::c_short = 0x10; 454 pub const POLLNVAL: ::c_short = 0x20; 455 pub const POLLRDNORM: ::c_short = 0x040; [all …]
|
/external/rust/crates/libc/src/unix/solarish/ |
D | mod.rs | 343 pub l_type: ::c_short, 344 pub l_whence: ::c_short, 379 e_termination: ::c_short, 380 e_exit: ::c_short, 387 pub ut_pid: ::c_short, 388 pub ut_type: ::c_short, 440 pub ut_type: ::c_short, 445 pub ut_syslen: ::c_short, 1302 pub const POLLIN: ::c_short = 0x1; 1303 pub const POLLPRI: ::c_short = 0x2; [all …]
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/ |
D | mod.rs | 37 pub filter: ::c_short, 177 pub cr_ngroups: ::c_short, 936 pub const EMPTY: ::c_short = 0; 937 pub const RUN_LVL: ::c_short = 1; 938 pub const BOOT_TIME: ::c_short = 2; 939 pub const OLD_TIME: ::c_short = 3; 940 pub const NEW_TIME: ::c_short = 4; 941 pub const INIT_PROCESS: ::c_short = 5; 942 pub const LOGIN_PROCESS: ::c_short = 6; 943 pub const USER_PROCESS: ::c_short = 7; [all …]
|
/external/rust/crates/libc/src/unix/linux_like/linux/musl/ |
D | mod.rs | 193 pub l_type: ::c_short, 194 pub l_whence: ::c_short, 214 pub rt_pad2: ::c_short, 219 pub rt_pad4: [::c_short; 3usize], 221 pub rt_pad4: [::c_short; 1usize], 222 pub rt_metric: ::c_short, 236 pub e_termination: ::c_short, 237 pub e_exit: ::c_short, 278 pub ut_type: ::c_short,
|
/external/rust/crates/libc/src/unix/linux_like/linux/gnu/ |
D | mod.rs | 59 pub e_termination: ::c_short, 60 pub e_exit: ::c_short, 175 pub rt_pad2: ::c_short, 180 pub rt_pad4: [::c_short; 3usize], 182 pub rt_pad4: ::c_short, 183 pub rt_metric: ::c_short, 395 pub ut_type: ::c_short, 554 pub const EMPTY: ::c_short = 0; 555 pub const RUN_LVL: ::c_short = 1; 556 pub const BOOT_TIME: ::c_short = 2; [all …]
|
/external/rust/crates/nix/test/ |
D | test_fcntl.rs | 251 l_type: libc::F_WRLCK as libc::c_short, in test_ofd_write_lock() 252 l_whence: libc::SEEK_SET as libc::c_short, in test_ofd_write_lock() 263 flock.l_type = libc::F_UNLCK as libc::c_short; in test_ofd_write_lock() 293 l_type: libc::F_RDLCK as libc::c_short, in test_ofd_read_lock() 294 l_whence: libc::SEEK_SET as libc::c_short, in test_ofd_read_lock() 305 flock.l_type = libc::F_UNLCK as libc::c_short; in test_ofd_read_lock()
|
/external/rust/crates/libc/src/unix/bsd/apple/b64/x86_64/ |
D | mod.rs | 53 __fpu_fcw: ::c_short, 54 __fpu_fsw: ::c_short,
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/ |
D | mod.rs | 128 pub ut_type: ::c_short, 147 pub cr_ngroups: ::c_short, 459 pub const POLLINIGNEOF: ::c_short = 0x2000; 1121 pub const EMPTY: ::c_short = 0; 1122 pub const BOOT_TIME: ::c_short = 1; 1123 pub const OLD_TIME: ::c_short = 2; 1124 pub const NEW_TIME: ::c_short = 3; 1125 pub const USER_PROCESS: ::c_short = 4; 1126 pub const INIT_PROCESS: ::c_short = 5; 1127 pub const LOGIN_PROCESS: ::c_short = 6; [all …]
|
/external/rust/crates/libc/src/ |
D | wasi.rs | 8 pub type c_short = i16; typedef 131 pub events: c_short, 132 pub revents: c_short, 240 pub const POLLIN: ::c_short = 0x1; 241 pub const POLLOUT: ::c_short = 0x2; 242 pub const POLLERR: ::c_short = 0x1000; 243 pub const POLLHUP: ::c_short = 0x2000; 244 pub const POLLNVAL: ::c_short = 0x4000; 245 pub const POLLRDNORM: ::c_short = 0x1; 246 pub const POLLWRNORM: ::c_short = 0x2;
|