svn commit: r341598 - head/lib/libc/sys

Bruce Evans brde at optusnet.com.au
Wed Dec 5 20:36:23 UTC 2018


On Thu, 6 Dec 2018, Bruce Evans wrote:

> On Wed, 5 Dec 2018, Alan Somers wrote:
>
>> Log:
>>  stat(2): clarify which syscalls modify file timestamps
>>  ...
>
> These fields shouldn't exist.  They are misimplemented compatibility cruft.
> ...
> which I fixed in FreeBSD-5 using bit-fields.  Now the support for POSIX
> before about 2007 is broken by declaring struct timespec undonditionally
> and using it for st_atim, etc.  API compatibility with old versions of
> FreeBSD is broken by renaming st_atimespec to st_atim, etc.

API compatibility with old versions of FreeBSD is actually preserved using
another macro hack (define st_atimespec as st_atime, etc.).  This uses a
correct visibility ifdef, but the man page says that it uses a different,
incorrect one.  The man page only attempts to document the ifdef tangles
for st_*tim*.

> ...

Bruce


More information about the svn-src-head mailing list