Date: Mon, 18 Mar 1996 23:00:01 -0800 (PST) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs Subject: Re: docs/1089: stat manpage unclear about st_mtime & friends Message-ID: <199603190700.XAA10900@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/1089; it has been noted by GNATS.
From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@freebsd.org, msmith@atrad.adelaide.edu.au
Cc: Subject: Re: docs/1089: stat manpage unclear about st_mtime & friends
Date: Tue, 19 Mar 1996 17:49:06 +1100
>Consider this portion of the stat(2) manapage (trimmed):
> struct stat {
> ...
> struct timespec st_atimespec; /* time of last access */
> ...
The man page was apparently once copied from stat.h. Bits have rotted.
There are now ordinary st_atime etc. fields for the _POSIX_SOURCE case.
> The time-related fields of struct stat are as follows:
> st_atime Time when file data last accessed. Changed by the mknod(2),
> ...
>It should be mentioned that the names 'st_atime' 'st_mtime' and 'st_ctime'
>are compatability macros which referece the ts_sec fields in the timespec
>structs for each of the three.
Should it? This is an implementation detail, and the implementation is
different for the _POSIX_SOURCE case.
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603190700.XAA10900>
