Page MenuHomeFreeBSD

diff: Show nanoseconds in -u/-c header line.
ClosedPublic

Authored by jilles on Mar 26 2017, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 11, 2:50 PM
Unknown Object (File)
Sun, Oct 11, 2:50 PM
Unknown Object (File)
Sun, Oct 11, 2:28 PM
Unknown Object (File)
Thu, Oct 1, 2:24 PM
Unknown Object (File)
Sep 2 2026, 11:05 PM
Unknown Object (File)
Sep 2 2026, 11:04 PM
Unknown Object (File)
Sep 2 2026, 1:06 PM
Unknown Object (File)
Aug 27 2026, 12:13 PM
Subscribers

Details

Summary

Show nanoseconds in the -u/-c header line.

The present portability conditionals cannot handle the POSIX standard
st_mtim, so remove them and unconditionally use st_mtim.

PR: 218018

Test Plan

A new test case is included.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningusr.bin/diff/tests/diff_test.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 8299
Build 8549: CI src buildJenkins
Build 8548: arc lint + arc unit