hurdextras-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cvsfs netfs.c node.c


From: Stefan Siegl
Subject: cvsfs netfs.c node.c
Date: Mon, 15 Oct 2007 22:08:56 +0000

CVSROOT:        /sources/hurdextras
Module name:    cvsfs
Changes by:     Stefan Siegl <stesie>   07/10/15 22:08:56

Modified files:
        .              : netfs.c node.c 

Log message:
        Adapt to change of `struct stat' which holds timestamps in 
        `struct timespec's now. 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cvsfs/netfs.c?cvsroot=hurdextras&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/cvsfs/node.c?cvsroot=hurdextras&r1=1.9&r2=1.10

Patches:
Index: netfs.c
===================================================================
RCS file: /sources/hurdextras/cvsfs/netfs.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- netfs.c     16 Nov 2005 21:18:08 -0000      1.18
+++ netfs.c     15 Oct 2007 22:08:56 -0000      1.19
@@ -1,7 +1,7 @@
 /**********************************************************
  * netfs.c
  *
- * Copyright (C) 2004, 2005 by Stefan Siegl <address@hidden>, Germany
+ * Copyright (C) 2004, 2005, 2007 by Stefan Siegl <address@hidden>
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Publice License,
@@ -61,11 +61,11 @@
          node->nn_stat.st_size = node->nn->revision->length;
          node->nn_stat.st_blocks = (node->nn_stat.st_size >> 9) + 1;
 
-         node->nn_stat.st_mtime =
-           node->nn_stat.st_ctime = node->nn->revision->time;
+         node->nn_stat.st_mtim.tv_sec = node->nn->revision->time;
+         node->nn_stat.st_ctim.tv_sec = node->nn->revision->time;
 
-         node->nn_stat.st_mtime_usec =
-           node->nn_stat.st_ctime_usec = 0;
+         node->nn_stat.st_mtim.tv_nsec = 0;
+         node->nn_stat.st_ctim.tv_nsec = 0;
        }
     }
 
@@ -573,16 +573,16 @@
     {
       if (mtime)
        {
-         node->nn_stat.st_mtime = mtime->tv_sec;
-         node->nn_stat.st_mtime_usec = mtime->tv_nsec / 1000;
+         node->nn_stat.st_mtim.tv_sec = mtime->tv_sec;
+         node->nn_stat.st_mtim.tv_nsec = mtime->tv_nsec;
        }
       else
        flags |= TOUCH_MTIME;
       
       if (atime)
        {
-         node->nn_stat.st_atime = atime->tv_sec;
-         node->nn_stat.st_atime_usec = atime->tv_nsec / 1000;
+         node->nn_stat.st_atim.tv_sec = atime->tv_sec;
+         node->nn_stat.st_atim.tv_nsec = atime->tv_nsec;
        }
       else
        flags |= TOUCH_ATIME;

Index: node.c
===================================================================
RCS file: /sources/hurdextras/cvsfs/node.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- node.c      16 Nov 2005 21:18:08 -0000      1.9
+++ node.c      15 Oct 2007 22:08:56 -0000      1.10
@@ -1,7 +1,7 @@
 /**********************************************************
  * node.c
  *
- * Copyright 2004, Stefan Siegl <address@hidden>, Germany
+ * Copyright 2004, 2007, Stefan Siegl <address@hidden>, Germany
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Publice License,
@@ -99,13 +99,13 @@
          node->nn_stat.st_size = nn->revision->length;
          node->nn_stat.st_blocks = (node->nn_stat.st_size >> 9) + 1;
 
-         node->nn_stat.st_atime =
-           node->nn_stat.st_mtime =
-           node->nn_stat.st_ctime = nn->revision->time;
-
-         node->nn_stat.st_atime_usec =
-           node->nn_stat.st_mtime_usec =
-           node->nn_stat.st_ctime_usec = 0;
+         node->nn_stat.st_atim.tv_sec = nn->revision->time;
+         node->nn_stat.st_mtim.tv_sec = nn->revision->time;
+         node->nn_stat.st_ctim.tv_sec = nn->revision->time;
+
+         node->nn_stat.st_atim.tv_nsec = 0;
+         node->nn_stat.st_mtim.tv_nsec = 0;
+         node->nn_stat.st_ctim.tv_nsec = 0;
        }
 
       /* well, we're creating a new node for a file ... */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]