zsh-workers
 help / color / mirror / code / Atom feed
From: "Philippe Robin" <probin@qnx.com>
To: <zsh-workers@math.gatech.edu>
Subject: zsh on QNX4
Date: Fri, 19 Feb 1999 14:15:04 -0000	[thread overview]
Message-ID: <000001be5c12$3f07e000$089d9e9f@philippe.qssl> (raw)

Hi ,

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...

Feel free to contact me if you have any queries.

Thanks,

Philippe
---------------
Philippe Robin
e-mail: probin@qnx.com

############################
zsh.h:

#define GETPGRP_VOID

#include <config.h>
#include <system.h>

#define QNX
#undef OXTABS

---------
zle_refresh.c line 231

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

----------
zle_main.c line 103 (XTABS and ONLCR flags not defined on QNX)

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

--------------
compat.c line 109

#ifndef QNX
char *
zgetcwd(void)
{
    return getcwd(NULL, 0);
}
#else
char *
zgetcwd(void)
{
....
}
#endif
-----------------
halloc() is already defined on QNX with the following prototype:
void __huge *halloc( long int numb, size_t size );

so the halloc() function must either be renamed in files where it
is used so that it doesn't clash with the system one or alternatively
use the system function.

The files concerned are:
mem.c, subst.c, utils.c, zle_hist.c, zle_misc.c, zle_tricky.c,
zle_utils.c, zle_word.c




             reply	other threads:[~1999-02-19 14:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-19 14:15 Philippe Robin [this message]
1999-02-22  9:21 ` 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='000001be5c12$3f07e000$089d9e9f@philippe.qssl' \
    --to=probin@qnx.com \
    --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).