Exemple #1
0
 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;
		}
Exemple #6
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();
		}
Exemple #10
0
 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;
 }