Getting mount stats for filesystems

"Martin v. Löwis" martin at
Tue Jun 5 23:17:14 CEST 2007

> I am looking at ctypes and it might do what I need but I can't figure
> out a way to convert a Python File object to a C FILE pointer (which is
> the needed argument for getmntent).
> Any ideas?

I think you are supposed to pass the pointer to getmntent that you
obtained from setmntent (likely asking for read-only access).


More information about the Python-list mailing list