Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh on QNX4
- X-seq: zsh-workers 5462
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: probin@xxxxxxx, zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: zsh on QNX4
- Date: Mon, 22 Feb 1999 10:21:57 +0100
- In-reply-to: ""Philippe Robin""'s message of "Fri, 19 Feb 1999 14:15:04 NFT." <000001be5c12$3f07e000$089d9e9f@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
"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@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author