summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
committernate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
commit45c85d421d05f7b96a102826ea41b4f7dc31c017 (patch)
tree0cf0ba5fc468e2333547b81142b3e6682d895b1d /sys/gnu
parent43f6021163b3ac1fd5741353fb84010eb75b0cc0 (diff)
downloadFreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.zip
FreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.tar.gz
In sys/time.h, struct timespec is defined as:
/* * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { time_t ts_sec; /* seconds */ long ts_nsec; /* and nanoseconds */ }; The correct names of the fields are tv_sec and tv_nsec. Reminded by: James Drobina <jdrobina@infinet.com>
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/inode.h8
-rw-r--r--sys/gnu/fs/ext2fs/inode.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/gnu/ext2fs/inode.h b/sys/gnu/ext2fs/inode.h
index 30d5f1b..75055a3 100644
--- a/sys/gnu/ext2fs/inode.h
+++ b/sys/gnu/ext2fs/inode.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)inode.h 8.4 (Berkeley) 1/21/94
- * $Id: inode.h,v 1.7 1995/11/05 23:35:56 dyson Exp $
+ * $Id: inode.h,v 1.8 1996/01/30 23:02:15 mpp Exp $
*/
#ifndef _UFS_UFS_INODE_H_
@@ -155,15 +155,15 @@ struct indir {
if ((ip)->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) { \
(ip)->i_flag |= IN_MODIFIED; \
if ((ip)->i_flag & IN_ACCESS) \
- (ip)->i_atime.ts_sec \
+ (ip)->i_atime.tv_sec \
= ((t1) == &time ? tv_sec : (t1)->tv_sec); \
if ((ip)->i_flag & IN_UPDATE) { \
- (ip)->i_mtime.ts_sec \
+ (ip)->i_mtime.tv_sec \
= ((t2) == &time ? tv_sec : (t2)->tv_sec); \
(ip)->i_modrev++; \
} \
if ((ip)->i_flag & IN_CHANGE) \
- (ip)->i_ctime.ts_sec = tv_sec; \
+ (ip)->i_ctime.tv_sec = tv_sec; \
(ip)->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_UPDATE); \
} \
}
diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h
index 30d5f1b..75055a3 100644
--- a/sys/gnu/fs/ext2fs/inode.h
+++ b/sys/gnu/fs/ext2fs/inode.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)inode.h 8.4 (Berkeley) 1/21/94
- * $Id: inode.h,v 1.7 1995/11/05 23:35:56 dyson Exp $
+ * $Id: inode.h,v 1.8 1996/01/30 23:02:15 mpp Exp $
*/
#ifndef _UFS_UFS_INODE_H_
@@ -155,15 +155,15 @@ struct indir {
if ((ip)->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) { \
(ip)->i_flag |= IN_MODIFIED; \
if ((ip)->i_flag & IN_ACCESS) \
- (ip)->i_atime.ts_sec \
+ (ip)->i_atime.tv_sec \
= ((t1) == &time ? tv_sec : (t1)->tv_sec); \
if ((ip)->i_flag & IN_UPDATE) { \
- (ip)->i_mtime.ts_sec \
+ (ip)->i_mtime.tv_sec \
= ((t2) == &time ? tv_sec : (t2)->tv_sec); \
(ip)->i_modrev++; \
} \
if ((ip)->i_flag & IN_CHANGE) \
- (ip)->i_ctime.ts_sec = tv_sec; \
+ (ip)->i_ctime.tv_sec = tv_sec; \
(ip)->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_UPDATE); \
} \
}
OpenPOWER on IntegriCloud