zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: whukriede@ifm.uni-kiel.de (Wolfgang Hukriede)
Cc: zsh-workers@math.gatech.edu
Subject: Re: zsh-3.0.2 repacked
Date: Fri, 20 Dec 1996 01:55:42 +0100 (MET)	[thread overview]
Message-ID: <199612200055.BAA03549@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199612200038.BAA18599@sally.ifm.uni-kiel.de> from Wolfgang Hukriede at "Dec 20, 96 01:38:39 am"

Wolfgang Hukriede wrote:
> I'm sorry, but definitely there's no such alleged bug in the NeXTStep libc.
[...]
> Then, after:
> 
>         setvbuf(shout, NULL, _IOFBF, 0);
> 
> shout->_bufsiz gives ZERO, as well as shout->_base still is ZERO, in other
> words, shout is unbuffered. I cannot imagine this should be different with
> other libc's. Have you actually checked this?

Yes of course.  On all other systems I know (and I tesed zsh on 8 different
Unix systems) setvbuf ignores the last argument of setvbuf if the second
argument is NULL.  And conditional compilation is probably has been put
there because there were some systems without setvbuf or _IOFBF.  And only
NeXTStep people complained about slow refresh so I'm pretty sure that
NeXTStep is the only system with this behaviour.

And I used static buffer instead of passing NULL to make sure that it will
really work.  I can imagine that some other system's buggy libc would
interpret non-zero last argument as if you had given it a buffer at address
NULL.

Zoltan


  reply	other threads:[~1996-12-20  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-20  0:38 Wolfgang Hukriede
1996-12-20  0:55 ` Zoltan Hidvegi [this message]
1996-12-20  1:22 ` Richard Coleman
1996-12-20  1:16 Wolfgang Hukriede

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=199612200055.BAA03549@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=whukriede@ifm.uni-kiel.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).