view modules/stat-time @ 19447:2d6db3f14060

stat: work around Solaris bug with tv_nsec < 0 * doc/posix-functions/fstat.texi (fstat): * doc/posix-functions/fstatat.texi (fstatat): * doc/posix-functions/lstat.texi (lstat): * doc/posix-functions/stat.texi (stat): Mention Solaris 11 bug. * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h. * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]: * lib/lstat.c (rpl_lstat): * lib/stat.c (rpl_stat): Normalize resulting timestamps. * lib/fstatat.c (normal_fstatat): New function. (rpl_fstatat): Use it. * lib/stat-time.h: Include intprops.h, errno.h, stddef.h. (stat_time_normalize): New function. * m4/fstat.m4 (gl_FUNC_FSTAT): * m4/fstatat.m4 (gl_FUNC_FSTATAT): * m4/lstat.m4 (gl_FUNC_LSTAT): * m4/stat.m4 (gl_FUNC_STAT): Replace on Solaris. * modules/fstat (Depends-on): * modules/fstatat (Depends-on): Add stat-time. * modules/stat-time (Depends-on): Add errno, intprops.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 23 Nov 2017 00:05:57 -0800
parents fc49ecfa5827
children
line wrap: on
line source

Description:
stat-related time functions

Files:
lib/stat-time.h
lib/stat-time.c
m4/stat-time.m4

Depends-on:
time
errno
extensions
extern-inline
intprops

configure.ac:
gl_STAT_TIME
gl_STAT_BIRTHTIME

Makefile.am:
lib_SOURCES += stat-time.c

Include:
"stat-time.h"

License:
LGPLv2+

Maintainer:
Paul Eggert and Jim Meyering