private static extern int settimeofday (ref Timeval tv, IntPtr ignore);
private static extern int gettimeofday (out Timeval tv, IntPtr ignore);
public static extern int settimeofday (ref Timeval tv, ref Timezone tz);
public static extern int gettimeofday (out Timeval tv, out Timezone tz);
public static bool TryCopy(IntPtr source, out Timeval destination) { return(ToTimeval(source, out destination) == 0); }
public static bool TryCopy(ref Timeval source, IntPtr destination) { return(FromTimeval(ref source, destination) == 0); }
private static extern int ToTimeval(IntPtr source, out Timeval destination);
private static extern int FromTimeval(ref Timeval source, IntPtr destination);