You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ovies Brabson <ov...@us.ibm.com> on 1999/12/01 01:10:53 UTC

OS/390 Structure (Was: [PATCH]Apache 1.3.9 Port to OS/390 Unix System Services)

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