Use C routines to get and set everything, rather than accessing
the C struct from Perl.