Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: stat module fixes
- X-seq: zsh-workers 3000
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: stat module fixes
- Date: Tue, 18 Mar 1997 09:50:20 +0100
- In-reply-to: "Zefram"'s message of "Mon, 17 Mar 1997 18:18:28 MET." <5243.199703171818@xxxxxxxxxxxxxxxxxxxxxxx>
Zefram wrote:
> This patch fixes a few small problems with Peter's stat module.
>
> 2. To be more like ls -l, zll should use %e instead of %d to format the
> day of the month in times.
This requires my ztrftime() patch in 2963, which is why I wrote it like
that; otherwise, the length of the time string isn't fixed. It's also
system specific whether %e or %d (with leading zero) is used (or, to put
it another way, AIX likes to be different).
> 7. Elements st_{a,m,c}tim in struct stat were being used; these appear to
> be struct timeval. I haven't seen any system that has these members,
> so I changed it to use the more conventional st_{a,m,c}time, which
> are time_t. If the systems that have st_{a,m,c}tim don't also support
> st_{a,m,c}time, it'll have to be autoconfed.
We actually have
#define st_atime st_atim.tv_sec
#define st_mtime st_mtim.tv_sec
#define st_ctime st_ctim.tv_sec
which I didn't look at closely enough.
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author