diff options
author | ed <ed@FreeBSD.org> | 2010-03-28 13:13:22 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-03-28 13:13:22 +0000 |
commit | 4f08ecd7ed8b39a0e0cd094967835fa85d105793 (patch) | |
tree | 303a032d575560ac8850d94e75f68865c40f1161 /sys/i386/linux | |
parent | 9eaa28fa3641501bd3b827e9b55aa8240713c80d (diff) | |
download | FreeBSD-src-4f08ecd7ed8b39a0e0cd094967835fa85d105793.zip FreeBSD-src-4f08ecd7ed8b39a0e0cd094967835fa85d105793.tar.gz |
Rename st_*timespec fields to st_*tim for POSIX 2008 compliance.
A nice thing about POSIX 2008 is that it finally standardizes a way to
obtain file access/modification/change times in sub-second precision,
namely using struct timespec, which we already have for a very long
time. Unfortunately POSIX uses different names.
This commit adds compatibility macros, so existing code should still
build properly. Also change all source code in the kernel to work
without any of the compatibility macros. This makes it all a less
ambiguous.
I am also renaming st_birthtime to st_birthtim, even though it was a
local extension anyway. It seems Cygwin also has a st_birthtim.
Diffstat (limited to 'sys/i386/linux')
-rw-r--r-- | sys/i386/linux/linux.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index d614716..fe84c06 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -178,9 +178,9 @@ struct l_newstat { l_ulong st_size; l_ulong st_blksize; l_ulong st_blocks; - struct l_timespec st_atimespec; - struct l_timespec st_mtimespec; - struct l_timespec st_ctimespec; + struct l_timespec st_atim; + struct l_timespec st_mtim; + struct l_timespec st_ctim; l_ulong __unused4; l_ulong __unused5; }; @@ -194,9 +194,9 @@ struct l_stat { l_ushort st_gid; l_ushort st_rdev; l_long st_size; - struct l_timespec st_atimespec; - struct l_timespec st_mtimespec; - struct l_timespec st_ctimespec; + struct l_timespec st_atim; + struct l_timespec st_mtim; + struct l_timespec st_ctim; l_long st_blksize; l_long st_blocks; l_ulong st_flags; @@ -217,9 +217,9 @@ struct l_stat64 { l_ulong st_blksize; l_ulong st_blocks; l_ulong __pad4; - struct l_timespec st_atimespec; - struct l_timespec st_mtimespec; - struct l_timespec st_ctimespec; + struct l_timespec st_atim; + struct l_timespec st_mtim; + struct l_timespec st_ctim; l_ulonglong st_ino; }; |