Home
last modified time | relevance | path

Searched refs:c_short (Results 1 - 25 of 118) sorted by relevance

12345

/third_party/python/Lib/ctypes/test/
H A Dtest_bitfields.py20 ("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)]
56 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong)
170 _fields_ = [("a", c_short, 1),
171 ("b", c_short, 1
[all...]
H A Dtest_pep3118.py118 s_short = {2: 'h', 4: 'l', 8: 'q'}[sizeof(c_short)]
151 (c_short, "<" + s_short, (), c_short),
182 (POINTER(c_short) * 2, "&<" + s_short, (2,), POINTER(c_short)),
183 (POINTER(c_short) * 2 * 3, "&<" + s_short, (3,2,), POINTER(c_short)),
184 (POINTER(c_short * 2), "&(2)<" + s_short, (), POINTER(c_short)),
H A Dtest_byteswap.py47 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
[all...]
H A Dtest_functions.py68 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]
134 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]
148 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
154 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
196 self.assertRaises(ArgumentError, f, byref(c_short(22)))
318 _fields_ = [("x", c_short),
[all...]
H A Dtest_parameters.py83 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer namespace
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 namespace
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 namespace
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 namespace
135 self.assertRaises(TypeError, LPINT.from_param, c_short*3)
211 c_short,
231 self.assertEqual(repr(c_short
[all...]
H A Dtest_arrays.py10 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/
H A Dmod.rs67 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/
H A Dmod.rs39 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/
H A Dmod.rs37 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/
H A Dmod.rs142 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
[all...]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
H A Dcore_ffi_c.rs15 pub type c_short = ::core::ffi::c_short; types
H A Dobjc_property_fnptr.rs34 arg2: ::std::os::raw::c_short, in func()
48 arg2: ::std::os::raw::c_short, in setFunc_()
H A Dpacked-bitfield.rs141 pub fn year(&self) -> ::std::os::raw::c_short { in year()
147 pub fn set_year(&mut self, val: ::std::os::raw::c_short) { in set_year()
157 year: ::std::os::raw::c_short, in new_bitfield_1()
/third_party/rust/crates/libc/src/solid/
H A Dmod.rs7 pub type c_short = i16; types
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
[all...]
/third_party/rust/crates/libc/src/unix/linux_like/linux/musl/
H A Dmod.rs185 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,
[all...]
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/
H A Dmod.rs57 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/solarish/
H A Dmod.rs371 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
[all...]
/third_party/rust/crates/libc/src/unix/bsd/
H A Dmod.rs346 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
[all...]
/third_party/rust/crates/libc/src/unix/haiku/
H A Dmod.rs228 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
[all...]
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/
H A Dmod.rs78 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
[all...]
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/
H A Dmod.rs69 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
[all...]
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/
H A Dmod.rs25 pub filter: ::c_short,
87 pub ki_jobc: ::c_short,
89 pub ki_spare_short1: ::c_short,
111 pub ki_ngroups: ::c_short,
113 pub ki_spare_short2: ::c_short,
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/
H A Dmod.rs25 pub filter: ::c_short,
87 pub ki_jobc: ::c_short,
89 pub ki_spare_short1: ::c_short,
111 pub ki_ngroups: ::c_short,
113 pub ki_spare_short2: ::c_short,
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/
H A Dmod.rs22 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/bsd/freebsdlike/freebsd/freebsd11/
H A Dmod.rs13 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,

Completed in 30 milliseconds

12345