OSDN Git Service

Stat cleanup.
authorRob Landley <rob@landley.net>
Sun, 2 Jun 2013 01:47:16 +0000 (20:47 -0500)
committerRob Landley <rob@landley.net>
Sun, 2 Jun 2013 01:47:16 +0000 (20:47 -0500)
commitceca2e3d77bd2d922f3ebb19c9f74dd72639fae0
treefcffc80d6bce0658cbdfa605aec75868fa38aec1
parent6b28341dfc933ccd631a4d1e0b5d055c39e96e8d
Stat cleanup.

Put global stat info in a union so we don't have to malloc it and thus don't need an explicit size tracked in main(). Make date_stat_format() take a timespec and take advantage of stat having an embedded timespec (nanosecond printing), typecast the long long prints for XYZ because on some 32 bit platforms it's an int.
toys/pending/stat.c