httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovies Brabson <ovi...@us.ibm.com>
Subject OS/390 Structure (Was: [PATCH]Apache 1.3.9 Port to OS/390 Unix System Services)
Date Wed, 01 Dec 1999 00:10:53 GMT
> > +       OSDIR='os/os390'
>
> Is this best done with a new os/os390 subdirectory?  Since IBM
> proudly proclaims, "MVS _is_ UNIX," I've been testing with patches
> to os/unix.  I copied ebcdic.c and ebcdic.h from os/tpf to os/unix,
> and enabled them with:
>
>     diff -bru orig/apache-1.3/src/os/unix/os.c apache-1.3/src/os/unix/os.c
>     --- orig/apache-1.3/src/os/unix/os.c    Wed Oct 13 01:12:51 1999
>     +++ apache-1.3/src/os/unix/os.c Mon Nov 29 20:14:37 1999
>     @@ -21,6 +21,13 @@
>      #endif
>
>      /*
>     + * Insert the EBCDIC support code for OS/390
>     + */
>     +#ifdef   CHARSET_EBCDIC
>     +#include "ebcdic.c"
>     +#endif /*CHARSET_EBCDIC*/
>     +
>     +/*
>       *  Abstraction layer for loading
>       *  Apache modules under run-time via
>       *  dynamic shared object (DSO) mechanism
>
> etc.  There's precedent for this construct: adjacent code does
> the similar:
>
>     /*
>      * Insert the DSO emulation code for AIX
>      */
>     #ifdef AIX
>     #include "os-aix-dso.c"
>     #endif
>
> -- gil
>
We prefer not to use #ifdef whenever possible and we chose to emulate what the other ebcdic
based systems did.


Mime
View raw message