protected override Errno OnChangePathTimes(string path, ref Utimbuf buf) { int r = Syscall.utime (basedir+path, ref buf); if (r == -1) return Stdlib.GetLastError (); return 0; }
private static extern int ToUtimbuf (IntPtr source, out Utimbuf destination);
public static bool TryCopy (IntPtr source, out Utimbuf destination) { return ToUtimbuf (source, out destination) == 0; }
private static extern int FromUtimbuf (ref Utimbuf source, IntPtr destination);
public static bool TryCopy (ref Utimbuf source, IntPtr destination) { return FromUtimbuf (ref source, destination) == 0; }
protected override Errno OnChangePathTimes(string path, ref Utimbuf buf) { Logger.WriteLineIf(LogLevel.Verbose, _fslog_props, string.Format("OnChangePathTimes, path={0}, buf={1}", path, buf)); return this._rfs.ChangePathTimes(path, ref buf); }
private static int ToUtimbuf (IntPtr source, out Utimbuf destination) { throw new System.NotImplementedException(); }
private static int FromUtimbuf (ref Utimbuf source, IntPtr destination) { throw new System.NotImplementedException(); }
private static int sys_utime ( string filename, ref Utimbuf buf, int use_buf) { throw new System.NotImplementedException(); }
public virtual Errno ChangePathTimes(string path, ref Utimbuf buf) { int r = Syscall.utime (basedir+path, ref buf); if (r == -1) return Stdlib.GetLastError (); return 0; }