I've read in a lot of places that C-libraries can be ported to or written in python using the ctypes module from the standard library.
I've gone through the help('ctypes') page and from what I could gather I can create some of the C structures in Python, but my question is how do I use these to access the underlying system calls? For eg. when trying to port something like 'sys/if.h' to Python?
Can someone point me to good resources/documentation regarding the same?