zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: probin@qnx.com, zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: zsh on QNX4
Date: Mon, 22 Feb 1999 10:21:57 +0100	[thread overview]
Message-ID: <9902220921.AA11759@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Philippe Robin""'s message of "Fri, 19 Feb 1999 14:15:04 NFT." <000001be5c12$3f07e000$089d9e9f@philippe.qssl>

"Philippe Robin" wrote:
> I got zsh running on QNX 4.25 operating system. I have included the few
> modifications I did to get it to work at the end of this mail if you want to
> incorporate this...

This looks pretty easy to include, but it ought to be decided
automatically.  It's possible to put ad hoc code in configure if necessary,
though if there were some predefined preprocessor symbol that would be
better.

> #define GETPGRP_VOID

Does the configure test for this not work?  You should get something like

checking whether getpgrp takes no argument... yes

and config.log should say why it failed, if it did.

> #ifdef QNX
>     oxtabs = 0;
> #else
>     oxtabs = ((SGTTYFLAG & SGTABTYPE) == SGTABTYPE);
> #endif

Is it enough to test
#if defined(SGTTYFLAG) && defined(SGTABTYPE)
?

> #  ifdef OXTABS
>     ti.tio.c_oflag &= ~OXTABS;
> #  else
> //    ti.tio.c_oflag &= ~XTABS;
> #  endif
> # endif
> //    ti.tio.c_oflag |= ONLCR;

Likewise, can we just test directly for these flags being defined?

> #ifndef QNX
> char *
> zgetcwd(void)
> {
>     return getcwd(NULL, 0);
> }
> #else

This looks like something we need a preprocessor definition for.  If there
really isn't one (_QNX_, _QNX, __QNX__, ...?) the system as printed out
when configure starts should be enough to work on.

> halloc() is already defined on QNX with the following prototype:

That's an annoyance, but we can easily rename it to zhalloc().

-- 
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-22  9:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-19 14:15 Philippe Robin
1999-02-22  9:21 ` 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=9902220921.AA11759@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=probin@qnx.com \
    --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).