ndbecker <[EMAIL PROTECTED]> added the comment: On Monday 28 April 2008, Martin v. Löwis wrote: > Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > > Passing structures is certainly possible. I'd try > > args = struct.pack("iP", len(c), cast (pointer (c), c_void_p).value) > fcntl.ioctl(fd, request, args) > > Alternatively, > > args = eos_dl_args_t() > ... > args_p = cast(pointer(args), c_void_ptr).value > fcntl.ioctl(fd, request, args_p) > > should also work, IIUC. >
You are correct, both of the above work (at least on x86) __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2712> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com