From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8978 invoked from network); 18 Mar 1997 09:01:55 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 18 Mar 1997 09:01:55 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id DAA14710; Tue, 18 Mar 1997 03:47:53 -0500 (EST) Resent-Date: Tue, 18 Mar 1997 03:47:53 -0500 (EST) Message-Id: <199703180850.JAA17733@sgi.ifh.de> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: stat module fixes In-reply-to: "Zefram"'s message of "Mon, 17 Mar 1997 18:18:28 MET." <5243.199703171818@stone.dcs.warwick.ac.uk> Date: Tue, 18 Mar 1997 09:50:20 +0100 From: Peter Stephenson Resent-Message-ID: <"qhiBh3.0.nb3.vQbBp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3000 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 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.