Lines Matching refs:ctypes
17 import ctypes
18 import ctypes.util
74 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True)
89 return ctypes.cast(s.CPointer(), ctypes.c_void_p)
98 errno = ctypes.get_errno()
220 # Create ctypes buffers and pointers from our structures. We need to hang on
236 databuf = ctypes.create_string_buffer(data)
237 iov = Iovec((ctypes.addressof(databuf), len(data)))
247 controlbuf = ctypes.create_string_buffer(control)
248 msg_control = ctypes.addressof(controlbuf)
296 addr = ctypes.create_string_buffer(addrlen)
297 msg_name = ctypes.addressof(addr)
300 buf = ctypes.create_string_buffer(buflen)
301 iov = Iovec((ctypes.addressof(buf), buflen))
305 control = ctypes.create_string_buffer(controllen)
306 msg_control = ctypes.addressof(control)
325 buf = ctypes.create_string_buffer(size)
326 addr = ctypes.create_string_buffer(len(SockaddrStorage))
327 alen = ctypes.c_int(len(addr))
330 addr, ctypes.byref(alen))