zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: strange limit output for pws-9
Date: Thu, 25 Feb 1999 10:25:49 +0100	[thread overview]
Message-ID: <9902250925.AA18049@ibmth.df.unipi.it> (raw)
In-Reply-To: "Helmut Jarausch"'s message of "Thu, 25 Feb 1999 09:25:55 NFT." <jarausch-990225092544.A01191272@numa1.igpm.rwth-aachen.de>

Helmut Jarausch wrote:
> Hi,
> 
> recent versions of zsh upto pws-9 plus patches here on my IRIX 6.5.2 box
> show a strange output
> 
> 5 % limit
> ...
> datasize        qdMB
> ...

It thinks rlim_t is a quad length variable, so is trying to print it with
printf("%qd", val), where val has type rlim_t: see showlimits() in
Src/Builtins/rlimits.c .  This implies either

(1) rlim_t really is that long, but the compiler doesn't understand the
format.  The test in configure is for sizeof(rlim_t) > sizeof(long), but it
doesn't test how to print it and maybe we just need to check if the
compiler thinks it's long long and wants "%lld" instead.  Try changing %qd
in that function to %lld, and if that works I'll rig up a configure test to
see which the compiler likes.  (I'm assuming this "%qd" really exists, and
isn't just a figment of someone's overactive imagination --- can anyone
swear to having seen it?)

or 

(2) rlim_t is no longer than long and RLIM_T_IS_QUAD_T is defined by
mistake by configure.  In that case the code around line 745 of
configure.in is responsible and doing something funny.  (This works OK on
Irix 6.2 where it identifies rlim_t as unsigned but not quad.)

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


  reply	other threads:[~1999-02-25 10:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-25  8:25 Helmut Jarausch
1999-02-25  9:25 ` Peter Stephenson [this message]
1999-02-25 13:33 ` Peter Stephenson

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=9902250925.AA18049@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).