diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-07-16 22:36:00 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-07-16 22:36:00 +0000 |
commit | a3ff90696f94bb4b8353269f5b2307af1291a22e (patch) | |
tree | e6a0805aec09bffe11b7d53577ebfe6d6809a9be /sys/sys/stat.h | |
parent | b5e36ca81380b2e4d30599db84eb0baf81cefba1 (diff) | |
download | FreeBSD-src-a3ff90696f94bb4b8353269f5b2307af1291a22e.zip FreeBSD-src-a3ff90696f94bb4b8353269f5b2307af1291a22e.tar.gz |
Change the name of st_createtime to st_birthtime. This change is
made to reduce confusion between st_ctime and st_createtime.
Submitted by: Eric Allman <eric@sendmail.org>
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/sys/stat.h')
-rw-r--r-- | sys/sys/stat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h index 9452dd3..d7e28f3 100644 --- a/sys/sys/stat.h +++ b/sys/sys/stat.h @@ -115,9 +115,9 @@ struct stat { u_int32_t st_gen; /* file generation number */ int32_t st_lspare; #ifndef _POSIX_SOURCE - struct timespec st_createtimespec; /* time of file creation */ + struct timespec st_birthtimespec; /* time of file creation */ /* - * Explicitly pad st_createtimespec to 16 bytes so that the size of + * Explicitly pad st_birthtimespec to 16 bytes so that the size of * struct stat is backwards compatible. We use bitfields instead * of an array of chars so that this doesn't require a C99 compiler * to compile if the size of the padding is 0. We use 2 bitfields @@ -127,8 +127,8 @@ struct stat { int :(8 / 2) * (16 - (int)sizeof(struct timespec)); int :(8 / 2) * (16 - (int)sizeof(struct timespec)); #else - time_t st_createtime; /* time of file creation */ - long st_createtimensec; /* nsec of file creation */ + time_t st_birthtime; /* time of file creation */ + long st_birthtimensec; /* nsec of file creation */ int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); #endif @@ -151,7 +151,7 @@ struct nstat { u_int32_t st_blksize; /* optimal blocksize for I/O */ fflags_t st_flags; /* user defined flags for file */ u_int32_t st_gen; /* file generation number */ - struct timespec st_createtimespec; /* time of file creation */ + struct timespec st_birthtimespec; /* time of file creation */ /* * See above about the following padding. */ @@ -166,7 +166,7 @@ struct nstat { #define st_atime st_atimespec.tv_sec #define st_mtime st_mtimespec.tv_sec #define st_ctime st_ctimespec.tv_sec -#define st_createtime st_createtimespec.tv_sec +#define st_birthtime st_birthtimespec.tv_sec #endif #define S_ISUID 0004000 /* set user id on execution */ |