[issue2712] enhanced ioctl

ndbecker report at bugs.python.org
Tue Apr 29 00:35:37 CEST 2008


ndbecker <ndbecker2 at gmail.com> added the comment:

On Monday 28 April 2008, Martin v. Löwis wrote:
> Martin v. Löwis <martin at v.loewis.de> added the comment:
> > IIUC, current ioctl is not capable of handling arbitrary argument
> > types.
>
> Can you please be a bit more explicit? What limitation do you see in
> fcntl.ioctl, and how does this fragment overcome the limitation?
> AFAICT, they do exactly the same thing.
>

In the example I gave, the ioctl passes a structure:

class eos_dl_args_t (Structure):
    _fields_ = [("length", c_ulong),
                ("data", c_void_p)]

AFAIK, there is no way to do that with fcntl.ioctl, is there?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2712>
__________________________________


More information about the Python-bugs-list mailing list