[PATCH] D52940: [llvm-ar] Use POSIX-specified timestamps for 'tv'.
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 5 12:24:36 PDT 2018
rupprecht created this revision.
rupprecht added a reviewer: MaskRay.
Herald added a subscriber: llvm-commits.
The POSIX spec says:
If the −t option is used with the −v option, the standard output format shall be:
"%s %u/%u %u %s %d %d:%d %d %s\n", <member mode>, <user ID>,
<group ID>, <number of bytes in member>,
<abbreviated month>, <day-of-month>, <hour>,
<minute>, <year>, <file>
where:
...
<abbreviated month>
Equivalent to the format of the %b conversion specification format in date.
<day-of-month>
Equivalent to the format of the %e conversion specification format in date.
<hour> Equivalent to the format of the %H conversion specification format in date.
<minute> Equivalent to the format of the %M conversion specification format in date.
<year> Equivalent to the format of the %Y conversion specification format in date.
This actually used to be the format printed by llvm-ar. It was apparently accidentally changed (see r207385 followed by comments in r207387). This makes it conform to GNU ar for easier replacement.
Repository:
rL LLVM
https://reviews.llvm.org/D52940
Files:
test/Object/archive-extract.test
test/Object/archive-toc.test
test/tools/llvm-ar/empty-uid-gid.test
tools/llvm-ar/llvm-ar.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52940.168504.patch
Type: text/x-patch
Size: 6404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181005/23e777ca/attachment.bin>
More information about the llvm-commits
mailing list