By the way, the A/UX system headers are a mess :-). Using gcc with as
many warning switches as possible revealed declarations of the same
functions in several headers and missing declarations (apart from the
problems already mentioned in the FAQ with regard to sys/fcntl.h,
sys/file.h, etc.).
--
Franklin Chen ch...@adi.com
Applied Dynamics International
3800 Stone School Road
Ann Arbor, MI 48108-2499
--
Franklin Chen ch...@adi.com
Applied Dynamics International
3800 Stone School Road
Ann Arbor, MI 48108-2499
> I am in the process of porting zsh to A/UX. There are a couple of
> minor changes and additions that had to be made to the configuration
> script and headers, but that's not what concerns me. What I'm
> confused about is how to decide whether to use termio or termios and
> whether to define _SYSV_SOURCE and/or _POSIX_SOURCE and such. Is
> there a general source of information about what libraries and include
> files should be used and how they interact with each other? I tried
> building with -ZP but that caused some crucial System V defines to be
> omitted, for instance.
(I got it to compile with relative ease...everything is ifdef'd AUX that I
changed...but it never did work 100% right for me)
check out my poorly done port:
dolphin.csudh.edu:/pub/unix/aux/zsh*
-jon stevens
--
A/UX Network Administrator
ro...@dolphin.csudh.edu
Check out the DolphinWeb Information Services!
(99.9% NetScape Aware)
http://dolphin.csudh.edu
>I am in the process of porting zsh to A/UX. There are a couple of
>minor changes and additions that had to be made to the configuration
>script and headers, but that's not what concerns me. What I'm
>confused about is how to decide whether to use termio or termios and
>whether to define _SYSV_SOURCE and/or _POSIX_SOURCE and such. Is
>there a general source of information about what libraries and include
>files should be used and how they interact with each other? I tried
>building with -ZP but that caused some crucial System V defines to be
>omitted, for instance.
Be default, cc and gcc always define _BSD_SOURCE, _SYSV_SOURCE and
_AUX_SOURCE (cc may not do that last one... it's been awhile :) ). If you
specifically tell them _only_ BSD or SYSV or POSIX mode, then only they
will be used. If you've got some ports that look like their "mostly"
Posix friendly, just add '-D_POSIX_SOURCE -lposix' to the command line
so that the POSIX compat's will be included.
--
#include <std/disclaimer.h>
| Jim Jagielski | j...@jagubox.gsfc.nasa.gov | V: 301 286-5964 |
| NASA/GSFC, Code 734.4 | Greenbelt, MD 20771 | F: 301 286-1719 |
<< Your hair is like a halo of mouse-brown fire >>