[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Port getprogname module to SCO OpenServer
From: |
Bruno Haible |
Subject: |
Re: Port getprogname module to SCO OpenServer |
Date: |
Tue, 06 Oct 2020 23:21:13 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) |
Hi Tim,
> > OK. And what about __UNIXWARE__ and __OPENSERVER__ that I see being used
> > [1]?
> > On which versions are they defined?
>
> For the most part __UNIXWARE__ and __OPENSERVER__ were used by some in
> build driver scripts. Usually like CFLAGS="-O -D__UNIXWARE__"
Since you say "by some", this makes them unreliable witnesses.
> Here is how it looks on current shipping products.
>
> > | OpenServer 5 | OpenServer 6 | UnixWare 7 |
> > | | | |
> > | native | gcc | native | gcc | native | gcc |
> > | | | | | | |
> > ----------------+---------+--------+---------+-------+---------+-------+
> > _SCO_DS | 1 | 1 | | | | |
> > | | | | | | |
> > __SCO_VERSION__ | | |402201601| |402201403| |
> > | | | | | | |
> > __USLC__ | 1 | | 1 | | 1 | |
> > | | | | | | |
> > __UNIXWARE__ | | | | | | |
> > | | | | | | |
> > __OPENSERVER__ | | 507 | | | | |
> > | | | | | | |
> > __sysv5__ | | | | 1 | | 1 |
> > ----------------+---------+--------+---------+-------+---------+-------+
Thanks for this table. We'll be able to reference it in the future.
Consequence: If we want operating system specific predefines, we have these:
* For OpenServer 5:
#ifdef _SCO_DS
* For OpenServer 6 and UnixWare 7:
#if defined __SCO_VERSION__ || defined __sysv5__
It's clear now.
Bruno
- Re: Port getprogname module to SCO OpenServer, (continued)
Re: Port getprogname module to SCO OpenServer, Tim Rice, 2020/10/01
- Re: Port getprogname module to SCO OpenServer, Benji Wiebe, 2020/10/01
- Re: Port getprogname module to SCO OpenServer, Bruno Haible, 2020/10/03
- Re: Port getprogname module to SCO OpenServer, Benji Wiebe, 2020/10/05
- Re: Port getprogname module to SCO OpenServer, Tim Rice, 2020/10/05
- Re: Port getprogname module to SCO OpenServer, Bruno Haible, 2020/10/06
- Re: Port getprogname module to SCO OpenServer, Tim Rice, 2020/10/06
- Re: Port getprogname module to SCO OpenServer, Bruno Haible, 2020/10/06
- Re: Port getprogname module to SCO OpenServer, Tim Rice, 2020/10/06