zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: stat module fixes
Date: Tue, 18 Mar 1997 09:50:20 +0100	[thread overview]
Message-ID: <199703180850.JAA17733@sgi.ifh.de> (raw)
In-Reply-To: "Zefram"'s message of "Mon, 17 Mar 1997 18:18:28 MET." <5243.199703171818@stone.dcs.warwick.ac.uk>

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@ifh.de>       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.


      reply	other threads:[~1997-03-18  9:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-17 18:18 Zefram
1997-03-18  8:50 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199703180850.JAA17733@sgi.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).