Message10775
Logged In: YES
user_id=6656
grahamh: I think Martin understood you fine.
Remember that arrays are mutable, whereas strings are not.
So the idea would be that you'd write
buf = array.array('c', '\000'*256)
ret = fcntl.ioctl(fd, IOCTL_NUMBER, buf)
then the first "ret" bytes of "buf" would be valid.
However this possibly breaks backwards compatibility, as you
can already pass arrays into the ioctl function and they are
not modified. |
|
Date |
User |
Action |
Args |
2007-08-23 14:01:21 | admin | link | issue555817 messages |
2007-08-23 14:01:21 | admin | create | |
|