This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ndbecker
Recipients loewis, ndbecker
Date 2008-04-29.01:23:34
SpamBayes Score 0.0012678031
Marked as misclassified No
Message-id <200804282123.27023.ndbecker2@gmail.com>
In-reply-to <1209423344.83.0.2327186015.issue2712@psf.upfronthosting.co.za>
Content
On Monday 28 April 2008, Martin v. Löwis wrote:
> Martin v. Löwis <martin@v.loewis.de> 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)
History
Date User Action Args
2008-04-29 01:23:36ndbeckersetspambayes_score: 0.0012678 -> 0.0012678031
recipients: + ndbecker, loewis
2008-04-29 01:23:35ndbeckerlinkissue2712 messages
2008-04-29 01:23:34ndbeckercreate