/third_party/python/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_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_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_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) 211 c_short, 231 self.assertEqual(repr(c_short.from_param(511)), "<cparam 'h' (511)>") [all …]
|
D | test_functions.py | 68 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 83 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 95 f.restype = c_short 109 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 121 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 133 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble] 147 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 153 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong] 195 self.assertRaises(ArgumentError, f, byref(c_short(22))) 326 _fields_ = [("x", c_short), [all …]
|
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)
|
/third_party/rust/crates/libc/src/unix/newlib/espidf/ |
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;
|
/third_party/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;
|
/third_party/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;
|
/third_party/rust/crates/libc/src/unix/newlib/horizon/ |
D | mod.rs | 142 pub const POLLIN: ::c_short = 0x0001; 143 pub const POLLPRI: ::c_short = 0x0002; 144 pub const POLLOUT: ::c_short = 0x0004; 145 pub const POLLRDNORM: ::c_short = 0x0040; 146 pub const POLLWRNORM: ::c_short = POLLOUT; 147 pub const POLLRDBAND: ::c_short = 0x0080; 148 pub const POLLWRBAND: ::c_short = 0x0100; 149 pub const POLLERR: ::c_short = 0x0008; 150 pub const POLLHUP: ::c_short = 0x0010; 151 pub const POLLNVAL: ::c_short = 0x0020;
|
/third_party/rust/crates/libc/src/unix/bsd/ |
D | mod.rs | 346 pub const F_RDLCK: ::c_short = 1; 347 pub const F_UNLCK: ::c_short = 2; 348 pub const F_WRLCK: ::c_short = 3; 473 pub const POLLIN: ::c_short = 0x1; 474 pub const POLLPRI: ::c_short = 0x2; 475 pub const POLLOUT: ::c_short = 0x4; 476 pub const POLLERR: ::c_short = 0x8; 477 pub const POLLHUP: ::c_short = 0x10; 478 pub const POLLNVAL: ::c_short = 0x20; 479 pub const POLLRDNORM: ::c_short = 0x040; [all …]
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/ |
D | mod.rs | 69 pub e_termination: ::c_short, 70 pub e_exit: ::c_short, 180 pub rt_pad2: ::c_short, 185 pub rt_pad4: [::c_short; 3usize], 187 pub rt_pad4: ::c_short, 188 pub rt_metric: ::c_short, 457 pub ut_type: ::c_short, 645 pub const EMPTY: ::c_short = 0; 646 pub const RUN_LVL: ::c_short = 1; 647 pub const BOOT_TIME: ::c_short = 2; [all …]
|
/third_party/rust/crates/libc/src/unix/haiku/ |
D | mod.rs | 228 pub l_type: ::c_short, 229 pub l_whence: ::c_short, 425 pub sem_op: ::c_short, 426 pub sem_flg: ::c_short, 473 pub ut_type: ::c_short, 697 pub const POLLIN: ::c_short = 0x0001; 698 pub const POLLOUT: ::c_short = 0x0002; 699 pub const POLLRDNORM: ::c_short = POLLIN; 700 pub const POLLWRNORM: ::c_short = POLLOUT; 701 pub const POLLRDBAND: ::c_short = 0x0008; [all …]
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/ |
D | mod.rs | 57 pub rt_pad2: ::c_short, 62 pub rt_pad4: [::c_short; 3usize], 64 pub rt_pad4: ::c_short, 65 pub rt_metric: ::c_short, 73 pub e_termination: ::c_short, 74 pub e_exit: ::c_short,
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/musl/ |
D | mod.rs | 185 pub l_type: ::c_short, 186 pub l_whence: ::c_short, 206 pub rt_pad2: ::c_short, 211 pub rt_pad4: [::c_short; 3usize], 213 pub rt_pad4: [::c_short; 1usize], 214 pub rt_metric: ::c_short, 222 pub e_termination: ::c_short, 223 pub e_exit: ::c_short, 296 pub ut_type: ::c_short, 297 __ut_pad1: ::c_short,
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
D | core_ffi_c.rs | 15 pub type c_short = ::core::ffi::c_short; typedef
|
D | objc_property_fnptr.rs | 34 arg2: ::std::os::raw::c_short, in func() argument 48 arg2: ::std::os::raw::c_short, in setFunc_() argument
|
D | packed-bitfield.rs | 141 pub fn year(&self) -> ::std::os::raw::c_short { in year() argument 147 pub fn set_year(&mut self, val: ::std::os::raw::c_short) { in set_year() argument 157 year: ::std::os::raw::c_short, in new_bitfield_1() argument
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/ |
D | mod.rs | 78 pub filter: ::c_short, 218 pub cr_ngroups: ::c_short, 251 pub f_type: ::c_short, 315 pub kp_ngroups: ::c_short, 469 __spares1: ::c_short, 471 __spares2: ::c_short, 1423 pub const EMPTY: ::c_short = 0; 1424 pub const RUN_LVL: ::c_short = 1; 1425 pub const BOOT_TIME: ::c_short = 2; 1426 pub const OLD_TIME: ::c_short = 3; [all …]
|
/third_party/rust/crates/libc/src/solid/ |
D | mod.rs | 7 pub type c_short = i16; typedef 102 pub st_mode: c_short, 103 pub st_nlink: c_short, 104 pub st_uid: c_short, 105 pub st_gid: c_short, 212 pub const S_IEXEC: c_short = 0x0040; 213 pub const S_IWRITE: c_short = 0x0080; 214 pub const S_IREAD: c_short = 0x0100; 215 pub const S_IFCHR: c_short = 0x2000; 216 pub const S_IFDIR: c_short = 0x4000; [all …]
|
/third_party/rust/crates/libc/src/unix/solarish/ |
D | mod.rs | 371 pub l_type: ::c_short, 372 pub l_whence: ::c_short, 407 e_termination: ::c_short, 408 e_exit: ::c_short, 415 pub ut_pid: ::c_short, 416 pub ut_type: ::c_short, 497 pub ut_type: ::c_short, 502 pub ut_syslen: ::c_short, 1631 pub const POLLIN: ::c_short = 0x1; 1632 pub const POLLPRI: ::c_short = 0x2; [all …]
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/ |
D | mod.rs | 13 pub filter: ::c_short, 73 pub ki_jobc: ::c_short, 75 pub ki_spare_short1: ::c_short, 97 pub ki_ngroups: ::c_short, 99 pub ki_spare_short2: ::c_short,
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/ |
D | mod.rs | 22 pub filter: ::c_short, 80 pub ki_jobc: ::c_short, 82 pub ki_spare_short1: ::c_short, 104 pub ki_ngroups: ::c_short, 106 pub ki_spare_short2: ::c_short,
|
/third_party/rust/crates/libc/src/unix/nto/ |
D | mod.rs | 300 pub sem_op: ::c_short, 301 pub sem_flg: ::c_short, 652 pub d_reclen: ::c_short, 653 pub d_namelen: ::c_short, 701 pub msg_spot: ::c_short, 1263 pub const POLLIN: ::c_short = POLLRDNORM | POLLRDBAND; 1264 pub const POLLPRI: ::c_short = 0x0008; 1265 pub const POLLOUT: ::c_short = 0x0002; 1266 pub const POLLERR: ::c_short = 0x0020; 1267 pub const POLLHUP: ::c_short = 0x0040; [all …]
|
/third_party/rust/crates/nix/test/ |
D | test_fcntl.rs | 398 flock.l_type = libc::F_WRLCK as libc::c_short; in test_ofd_write_lock() 399 flock.l_whence = libc::SEEK_SET as libc::c_short; in test_ofd_write_lock() 409 flock.l_type = libc::F_UNLCK as libc::c_short; in test_ofd_write_lock() 436 flock.l_type = libc::F_RDLCK as libc::c_short; in test_ofd_read_lock() 437 flock.l_whence = libc::SEEK_SET as libc::c_short; in test_ofd_read_lock() 447 flock.l_type = libc::F_UNLCK as libc::c_short; in test_ofd_read_lock()
|