unix 'mtio' mag tape interface?
Steven D. Majewski
sdm7g at Virginia.EDU
Wed Aug 29 13:36:58 EDT 2001
On Wed, 29 Aug 2001, Alex Martelli wrote:
> "George Young" <gry at ll.mit.edu> wrote in message
> news:3B8CFC6C.CE2B1F39 at ll.mit.edu...
> ...
> > Failing anything code to steal, what's the cleanest way to take a C
> > header file
> > for the mtio ioctl's and produce a neat python interface? Performance
> > is completely
> > irrelevant, just ease of development, and clarity and portability of the
> > result.
>
> SWIG might help you here -- see www.swig.org.
>
Or maybe fcntl.ioctl
( You might have to generate an IOCTL.py of constants from the C headers
the way they are already done for FCNTL.py )
-- Steve
More information about the Python-list
mailing list