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
F148674369: D10145.diff
Thu, Mar 19, 1:22 PM
Unknown Object (File)
Mon, Mar 16, 11:31 AM
Unknown Object (File)
Feb 18 2026, 6:02 AM
Unknown Object (File)
Feb 18 2026, 6:02 AM
Unknown Object (File)
Feb 16 2026, 3:37 PM
Unknown Object (File)
Feb 8 2026, 2:46 PM
Unknown Object (File)
Feb 8 2026, 10:27 AM
Unknown Object (File)
Jan 31 2026, 5:35 AM
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