remove OS/2 platform support
authorJeff Trawick <trawick@apache.org>
Thu, 26 Mar 2009 23:47:52 +0000 (23:47 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 26 Mar 2009 23:47:52 +0000 (23:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758929 13f79535-47bb-0310-9956-ffa450edef68

37 files changed:
LAYOUT
Makefile.in
build/instdso.sh
configure.in
docs/manual/logs.xml
docs/manual/mod/core.xml
docs/manual/mod/mod_autoindex.xml
include/httpd.h
modules/arch/unix/mod_unixd.c
modules/dav/fs/config6.m4
modules/dav/lock/config6.m4
modules/examples/mod_example_ipc.c
modules/filters/mod_include.c
modules/generators/mod_cgi.c
modules/generators/mod_cgid.c
modules/generators/mod_status.c
modules/mappers/mod_rewrite.c
modules/mappers/mod_userdir.c
modules/proxy/config.m4
os/config.m4
os/os2/Makefile.in [deleted file]
os/os2/config.m4 [deleted file]
os/os2/core.mk [deleted file]
os/os2/core_header.def [deleted file]
os/os2/os.h [deleted file]
os/os2/util_os2.c [deleted file]
server/Makefile.in
server/core.c
server/gen_test_char.c
server/mpm_common.c
server/protocol.c
server/request.c
server/util.c
server/util_script.c
support/apxs.in
support/fcgistarter.c
support/rotatelogs.c

diff --git a/LAYOUT b/LAYOUT
index 057c8f0869b327ba24502b0ce8fb24e9a1c545e9..8f54e81c75de3129c9eb036a611c9cbb8e4cb6f7 100644 (file)
--- a/LAYOUT
+++ b/LAYOUT
@@ -143,8 +143,6 @@ os/ .....................
 
   netware/ ................ 
 
-  os2/ .................... 
-
   tpf/ .................... 
 
     samples/ ................ 
index e3660cff51a7305f15521a7a6e2791e3525a9c63..8712ad8d011c9267a7bb51af950b62208d5a56c1 100644 (file)
@@ -231,5 +231,3 @@ suexec:
 
 x-local-distclean:
        @rm -rf autom4te.cache
-
-include $(top_srcdir)/os/os2/core.mk
index 7716b2989867104307e6d425c24e7bf3918439dd..2a78edda38fc4fb845f2b1263a8e3e19d5b06a3c 100755 (executable)
@@ -53,14 +53,6 @@ CMD="$SH_LIBTOOL --mode=install cp $DSOARCHIVE $TARGETDIR/"
 echo $CMD
 $CMD || exit $?
 
-if test "$SYS" = "OS/2"
-then
-    # on OS/2, aplibtool --install doesn't copy the .la files & we can't
-    # rename DLLs to have a .so extension or they won't load so none of the 
-    # steps below make sense.
-    exit 0
-fi
-
 if test -s "$TARGETDIR/$DSOARCHIVE_BASENAME"
 then
   DLNAME=`sed -n "/^dlname=/{s/.*='\([^']*\)'/\1/;p;}" $TARGETDIR/$DSOARCHIVE_BASENAME`
index f0f1b5b6501604a83a6732b3f1ce228a381b0511..6967bfb4aca87e7cc1823b5484aa18bbb7825148 100644 (file)
@@ -227,56 +227,34 @@ APR_ADDTO(INCLUDES, $APU_INCLUDES)
 dnl Add in path to PCRE includes
 APR_ADDTO(INCLUDES, $PCRE_INCLUDES)
 
-echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
-
-case $host in
-  *os2*)
-      # Use a custom made libtool replacement
-      echo "using aplibtool"
-      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
-      SH_LIBTOOL="$LIBTOOL --shared --export-all"
-      SH_LIBS="\$(ALL_LIBS)"
-      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
-      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
-      MK_IMPLIB="emximp"
-      other_targets="$other_targets os2core"
-      INSTALL_PROG_FLAGS="-e .exe"
-      SHLTCFLAGS=""
-      LTCFLAGS=""
-      ;;
-  *)
-      if test "x$LTFLAGS" = "x"; then
-          LTFLAGS='--silent'
-      fi
-      my_libtool=`$apr_config --apr-libtool`
-      LIBTOOL="$my_libtool \$(LTFLAGS)"
-      libtoolversion=`$my_libtool --version`
-      case $libtoolversion in
-          *1.[[45]]* | *[[2-9]].[[0-9]]*)
-              SH_LIBTOOL='$(LIBTOOL)'
-              SHLTCFLAGS="-prefer-pic"
-              LTCFLAGS="-prefer-non-pic -static"
-              ;;
-          *)
-              SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
-              SHLTCFLAGS=""
-              LTCFLAGS=""
-              ;;
-      esac
-      ;;
+if test "x$LTFLAGS" = "x"; then
+    LTFLAGS='--silent'
+fi
+my_libtool=`$apr_config --apr-libtool`
+LIBTOOL="$my_libtool \$(LTFLAGS)"
+libtoolversion=`$my_libtool --version`
+case $libtoolversion in
+    *1.[[45]]* | *[[2-9]].[[0-9]]*)
+        SH_LIBTOOL='$(LIBTOOL)'
+        SHLTCFLAGS="-prefer-pic"
+        LTCFLAGS="-prefer-non-pic -static"
+        ;;
+    *)
+        SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
+        SHLTCFLAGS=""
+        LTCFLAGS=""
+        ;;
 esac
 APACHE_SUBST(SHLTCFLAGS)
 APACHE_SUBST(LTCFLAGS)
 
+echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
+
 case $host in
   *-apple-aux3*)
       APR_SETVAR(APACHE_MPM, [prefork])
       APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
       ;;
-  *os2-emx*)
-      APR_SETVAR(APACHE_MPM, [mpmt_os2])
-      APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
-      ;;
   *-linux-*)
       case `uname -r` in
         2.[[2-9]]* ) 
index 591baa9773eb69ff559fced6dc94511bdd75e5d4..555c101733e8c2fcabf27bbf5b37029927a808da 100644 (file)
@@ -73,7 +73,7 @@
 
     <p>The error log is usually written to a file (typically
     <code>error_log</code> on Unix systems and
-    <code>error.log</code> on Windows and OS/2). On Unix systems it
+    <code>error.log</code> on Windows). On Unix systems it
     is also possible to have the server send errors to
     <code>syslog</code> or <a href="#piped">pipe them to a
     program</a>.</p>
index 137acf4a00836e9fad02570b3f8e4c45d557e1a4..9e182f142ad020d94f456f9d59c06fda107aa2c9 100644 (file)
@@ -1016,7 +1016,7 @@ in case of an error</description>
 <name>ErrorLog</name>
 <description>Location where the server will log errors</description>
 <syntax> ErrorLog <var>file-path</var>|syslog[:<var>facility</var>]</syntax>
-<default>ErrorLog logs/error_log (Unix) ErrorLog logs/error.log (Windows and OS/2)</default>
+<default>ErrorLog logs/error_log (Unix) ErrorLog logs/error.log (Windows)</default>
 <contextlist><context>server config</context><context>virtual host</context>
 </contextlist>
 
index d5c3a61c5adf7a226292e18783c052c15b1ec029..8613d9ca66bad7d6938423f0cc1e87a48f8d01d4 100644 (file)
@@ -774,8 +774,8 @@ indexing</description>
       <dd>This returns the <code>Last-Modified</code> and <code>ETag</code>
       values for the listed directory in the HTTP header. It is only valid
       if the operating system and file system return appropriate stat()
-      results. Some Unix systems do so, as do OS2's JFS and Win32's
-      NTFS volumes. OS2 and Win32 FAT volumes, for example, do not.
+      results. Some Unix systems do so, as do Win32's
+      NTFS volumes. Win32 FAT volumes, for example, do not.
       Once this feature is enabled, the client or proxy can track
       changes to the list of files when they perform a <code>HEAD</code>
       request. Note some operating systems correctly track new and
index c189eceb80b2e518c85f9146a0a58b666c70faf7..7b5df15c765c540e805232c1cb9b2d8e754826cc 100644 (file)
@@ -75,10 +75,7 @@ extern "C" {
  * file with a relative pathname will have this added.
  */
 #ifndef HTTPD_ROOT
-#ifdef OS2
-/** Set default for OS/2 file system */
-#define HTTPD_ROOT "/os2httpd"
-#elif defined(WIN32)
+#if defined(WIN32)
 /** Set default for Windows file system */
 #define HTTPD_ROOT "/apache"
 #elif defined (NETWARE)
@@ -103,13 +100,7 @@ extern "C" {
  * directive.
  */
 #ifndef DOCUMENT_LOCATION
-#ifdef OS2
-/* Set default for OS/2 file system */
-#define DOCUMENT_LOCATION  HTTPD_ROOT "/docs"
-#else
-/* Set default for non OS/2 file system */
 #define DOCUMENT_LOCATION  HTTPD_ROOT "/htdocs"
-#endif
 #endif /* DOCUMENT_LOCATION */
 
 /** Maximum number of dynamically loaded modules */
@@ -122,7 +113,7 @@ extern "C" {
 
 /** The name of the log files */
 #ifndef DEFAULT_ERRORLOG
-#if defined(OS2) || defined(WIN32)
+#if defined(WIN32)
 #define DEFAULT_ERRORLOG "logs/error.log"
 #else
 #define DEFAULT_ERRORLOG "logs/error_log"
@@ -131,12 +122,7 @@ extern "C" {
 
 /** Define this to be what your per-directory security files are called */
 #ifndef DEFAULT_ACCESS_FNAME
-#ifdef OS2
-/* Set default for OS/2 file system */
-#define DEFAULT_ACCESS_FNAME "htaccess"
-#else
 #define DEFAULT_ACCESS_FNAME ".htaccess"
-#endif
 #endif /* DEFAULT_ACCESS_FNAME */
 
 /** The name of the server config file */
@@ -1603,7 +1589,7 @@ AP_DECLARE(char *) ap_make_full_path(apr_pool_t *a, const char *dir, const char
  * Test if the given path has an an absolute path.
  * @param p The pool to allocate from
  * @param dir The directory name
- * @note The converse is not necessarily true, some OS's (Win32/OS2/Netware) have
+ * @note The converse is not necessarily true, some OS's (Win32/Netware) have
  * multiple forms of absolute paths.  This only reports if the path is absolute
  * in a canonical sense.
  */
index 256232b734718a6499c04b69abae91a582c4990f..02fdef4cf37a8367ffc0f76b3b572fd72ca39d4e 100644 (file)
@@ -107,8 +107,8 @@ static int set_group_privs(void)
         else
             name = ap_unixd_config.user_name;
 
-#if !defined(OS2) && !defined(TPF)
-        /* OS/2 and TPF don't support groups. */
+#if !defined(TPF)
+        /* TPF doesn't support groups. */
 
         /*
          * Set the GID before initgroups(), since on some platforms
@@ -129,7 +129,7 @@ static int set_group_privs(void)
                         "and Group %u", name, (unsigned)ap_unixd_config.group_id);
             return -1;
         }
-#endif /* !defined(OS2) && !defined(TPF) */
+#endif /* !defined(TPF) */
     }
     return 0;
 }
@@ -230,7 +230,7 @@ unixd_set_user(cmd_parms *cmd, void *dummy,
 
     ap_unixd_config.user_name = arg;
     ap_unixd_config.user_id = ap_uname2id(arg);
-#if !defined (BIG_SECURITY_HOLE) && !defined (OS2)
+#if !defined (BIG_SECURITY_HOLE)
     if (ap_unixd_config.user_id == 0) {
         return "Error:\tApache has not been designed to serve pages while\n"
                 "\trunning as root.  There are known race conditions that\n"
index 515111cd01cbab78deb45e64e57cbbfd9463c228..f86e3ff2a9d1b3346144925a9e8d54ef5974d784 100644 (file)
@@ -10,14 +10,6 @@ else
   dav_fs_enable=$dav_enable
 fi
 
-case "$host" in
-  *os2*)
-    # OS/2 DLLs must resolve all symbols at build time
-    # and we need some from main DAV module
-    dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
-    ;;
-esac
-
 APACHE_MODULE(dav_fs, DAV provider for the filesystem, $dav_fs_objects, , $dav_fs_enable)
 
 APACHE_MODPATH_FINISH
index bc35ee3c038e31b7de64221865a2ccca32771d6b..7ff2f0f4d0f47d7afab423d50b07fa7d8cb4267f 100644 (file)
@@ -4,14 +4,6 @@ APACHE_MODPATH_INIT(dav/lock)
 
 dav_lock_objects="mod_dav_lock.lo locks.lo"
 
-case "$host" in
-  *os2*)
-    # OS/2 DLLs must resolve all symbols at build time
-    # and we need some from main DAV module
-    dav_lock_objects="$dav_lock_objects ../main/mod_dav.la"
-    ;;
-esac
-
 APACHE_MODULE(dav_lock, DAV provider for generic locking, $dav_lock_objects, , no)
 
 APACHE_MODPATH_FINISH
index ea1d3830c0cbe52618eb70343cb6ec80e8d791f9..d76a1ea6a09d09fc3d51a6170e3618c168e3e232 100644 (file)
@@ -54,7 +54,7 @@
 #include "http_protocol.h"
 #include "ap_config.h"
 
-#if !defined(OS2) && !defined(WIN32) && !defined(NETWARE)
+#if !defined(WIN32) && !defined(NETWARE)
 #include "unixd.h"
 #define MOD_EXIPC_SET_MUTEX_PERMS /* XXX Apache should define something */
 #endif
index 8aaa3e66a2abfcd02ca3054137e0f0cf39404a29..623c74a0cd9e01efd7128d55b84f000efb5a1fc9 100644 (file)
@@ -3053,7 +3053,7 @@ static int include_fixup(request_rec *r)
         r->handler = "default-handler";
     }
     else
-#if defined(OS2) || defined(WIN32) || defined(NETWARE)
+#if defined(WIN32) || defined(NETWARE)
     /* These OS's don't support xbithack. This is being worked on. */
     {
         return DECLINED;
index c809fb56c75640640de81b84f7e686d108b82728..1d4a16370e75d9bf14816dd10aa2d2b61796f8fc 100644 (file)
@@ -390,12 +390,7 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
 #endif
 
 #ifdef DEBUG_CGI
-#ifdef OS2
-    /* Under OS/2 need to use device con. */
-    FILE *dbg = fopen("con", "w");
-#else
     FILE *dbg = fopen("/dev/tty", "w");
-#endif
     int i;
 #endif
 
index 6eabbfedb2e51382b3987b1ef4087e561efed2fc..84b33bcdba3a16b44f3e3f3c9aa7b59f8e45a9c8 100644 (file)
@@ -1366,7 +1366,7 @@ static int cgid_handler(request_rec *r)
         return log_scripterror(r, conf, HTTP_FORBIDDEN, 0,
                                "attempt to include NPH CGI script");
 
-#if defined(OS2) || defined(WIN32)
+#if defined(WIN32)
 #error mod_cgid does not work on this platform.  If you teach it to, look
 #error at mod_cgi.c for required code in this path.
 #else
index 291ec9bc7392d4e31998260a14d1377356543c01..6e19da7cc4ec420d02f32d8fa2baea3fedb05773 100644 (file)
@@ -437,10 +437,8 @@ static int status_handler(request_rec *r)
                        count, kbcount);
 
 #ifdef HAVE_TIMES
-            /* Allow for OS/2 not having CPU stats */
-            if (ts || tu || tcu || tcs)
-                ap_rprintf(r, "CPULoad: %g\n",
-                           (tu + ts + tcu + tcs) / tick / up_time * 100.);
+            ap_rprintf(r, "CPULoad: %g\n",
+                       (tu + ts + tcu + tcs) / tick / up_time * 100.);
 #endif
 
             ap_rprintf(r, "Uptime: %ld\n", (long) (up_time));
@@ -461,13 +459,11 @@ static int status_handler(request_rec *r)
             ap_rputs("</dt>\n", r);
 
 #ifdef HAVE_TIMES
-            /* Allow for OS/2 not having CPU stats */
             ap_rprintf(r, "<dt>CPU Usage: u%g s%g cu%g cs%g",
                        tu / tick, ts / tick, tcu / tick, tcs / tick);
 
-            if (ts || tu || tcu || tcs)
-                ap_rprintf(r, " - %.3g%% CPU load</dt>\n",
-                           (tu + ts + tcu + tcs) / tick / up_time * 100.);
+            ap_rprintf(r, " - %.3g%% CPU load</dt>\n",
+                       (tu + ts + tcu + tcs) / tick / up_time * 100.);
 #endif
 
             if (up_time > 0) {
index 4d4eec35ef43cef7c2921bf3781e3b30af04d2e2..d27635202524cdc047aa469cbf044e1f3c3fc9ea 100644 (file)
@@ -3779,13 +3779,11 @@ static int apply_rewrite_cond(rewritecond_entry *p, rewrite_ctx *ctx)
         break;
 
     case CONDPAT_FILE_LINK:
-#if !defined(OS2)
         if (   apr_stat(&sb, input, APR_FINFO_MIN | APR_FINFO_LINK,
                         r->pool) == APR_SUCCESS
             && sb.filetype == APR_LNK) {
             rc = 1;
         }
-#endif
         break;
 
     case CONDPAT_FILE_DIR:
index f6e3e5dc5f268243dfb3760fcd59baa97c0bf488..7ad377013241f8a1c5fd48e2adee41c1d0648215 100644 (file)
@@ -64,7 +64,7 @@
 #include "http_config.h"
 #include "http_request.h"
 
-#if !defined(WIN32) && !defined(OS2) && !defined(NETWARE)
+#if !defined(WIN32) && !defined(NETWARE)
 #define HAVE_UNIX_SUEXEC
 #endif
 
index 5cbdfd4b1ebba4538d979bf823a9ce8f97cd79ed..bf2880dfdc2af14e6202c0e2272bdbaa2a64c12b 100644 (file)
@@ -22,21 +22,6 @@ proxy_fdpass_objs="mod_proxy_fdpass.lo"
 proxy_ajp_objs="mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo ajp_utils.lo"
 proxy_balancer_objs="mod_proxy_balancer.lo"
 
-case "$host" in
-  *os2*)
-    # OS/2 DLLs must resolve all symbols at build time and
-    # these sub-modules need some from the main proxy module
-    proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
-    proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
-    proxy_http_objs="$proxy_http_objs mod_proxy.la"
-    proxy_fcgi_objs="$proxy_fcgi_objs mod_proxy.la"
-    proxy_scgi_objs="$proxy_scgi_objs mod_proxy.la"
-    proxy_fdpass_objs="$proxy_fdpass_objs mod_proxy.la"
-    proxy_ajp_objs="$proxy_ajp_objs mod_proxy.la"
-    proxy_balancer_objs="$proxy_balancer_objs mod_proxy.la"
-    ;;
-esac
-
 APACHE_MODULE(proxy_connect, Apache proxy CONNECT module, $proxy_connect_objs, , $proxy_mods_enable)
 APACHE_MODULE(proxy_ftp, Apache proxy FTP module, $proxy_ftp_objs, , $proxy_mods_enable)
 APACHE_MODULE(proxy_http, Apache proxy HTTP module, $proxy_http_objs, , $proxy_mods_enable)
index 31880911b0ebd327006ac7565a27e9fe15350f3c..5f98b6a8cb1b71c13378a8c8257cda7af8a44507 100644 (file)
@@ -1,10 +1,6 @@
 AC_MSG_CHECKING(for target platform)
 
 case $host in
-*pc-os2-emx*)
-  OS="os2"
-  OS_DIR=$OS
-  ;;
 bs2000*)
   OS="unix"
   OS_DIR=$OS
diff --git a/os/os2/Makefile.in b/os/os2/Makefile.in
deleted file mode 100644 (file)
index fba4972..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-
-LTLIBRARY_NAME    = libos.la
-LTLIBRARY_SOURCES = util_os2.c
-
-include $(top_srcdir)/build/ltlib.mk
diff --git a/os/os2/config.m4 b/os/os2/config.m4
deleted file mode 100644 (file)
index b62d214..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-if test "$OS" = "os2" ; then
-  APR_ADDTO(CFLAGS, [-DOS2 -O2])
-fi
diff --git a/os/os2/core.mk b/os/os2/core.mk
deleted file mode 100644 (file)
index 639417e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# Some rules for making a shared core dll on OS/2
-
-os2core: httpd.dll $(CORE_IMPLIB)
-       $(LIBTOOL) --mode=link gcc -Zstack 512 $(LDFLAGS) $(EXTRA_LDFLAGS) -o httpd $(CORE_IMPLIB)
-
-httpd.dll: $(PROGRAM_DEPENDENCIES) $(CORE_IMPLIB)
-       $(LINK) -Zdll $(EXTRA_LDFLAGS) -s -o $@ server/exports.lo modules.lo $(PROGRAM_DEPENDENCIES) $(AP_LIBS) server/ApacheCoreOS2.def
diff --git a/os/os2/core_header.def b/os/os2/core_header.def
deleted file mode 100644 (file)
index ec3703a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-LIBRARY httpd INITINSTANCE
-DESCRIPTION "Apache Server Core"
-DATA NONSHARED
-
-EXPORTS
-  "main"
-
-; One for mod_dav from socket library
-  "_swaps"
-
-; And some more for mod_unique_id
-  "gethostname"
-  "gethostbyname"
-  "_swapl"
-  "h_errno"
-  "inet_ntoa"
-
-; mod_proxy needs this one
-  "inet_addr"
diff --git a/os/os2/os.h b/os/os2/os.h
deleted file mode 100644 (file)
index 085dacf..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file os2/os.h
- * @brief This file in included in all Apache source code. It contains definitions
- * of facilities available on _this_ operating system (HAVE_* macros),
- * and prototypes of OS specific functions defined in os.c or os-inline.c
- *
- * @defgroup APACHE_OS_OS2 os2
- * @ingroup  APACHE_OS
- * @{
- */
-
-#ifndef APACHE_OS_H
-#define APACHE_OS_H
-
-#define PLATFORM "OS/2"
-
-/* going away shortly... */
-#define HAVE_DRIVE_LETTERS
-#define HAVE_UNC_PATHS
-#define CASE_BLIND_FILESYSTEM
-
-#endif   /* ! APACHE_OS_H */
-/** @} */
diff --git a/os/os2/util_os2.c b/os/os2/util_os2.c
deleted file mode 100644 (file)
index 9156fb3..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define INCL_DOS
-#define INCL_DOSERRORS
-#include <os2.h>
-#include "ap_config.h"
-#include "httpd.h"
-#include "http_log.h"
-#include "os.h"
-#include <sys/time.h>
-#include <sys/signal.h>
-#include <ctype.h>
-#include <string.h>
-#include "apr_strings.h"
-
-
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
-    const request_rec *r,
-    apr_proc_t *newproc, const char *progname,
-    const char * const *args,
-    const char * const *env,
-    apr_procattr_t *attr, apr_pool_t *p)
-{
-    return apr_proc_create(newproc, progname, args, env, attr, p);
-}
index 97bb9b39b91fc3f293cf5ae3ae915c33c9ee7e82..1de07db65d3017c27b2ea51e8cbf97af0b6ae4f6 100644 (file)
@@ -1,6 +1,5 @@
 
-CLEAN_TARGETS = gen_test_char test_char.h \
-       ApacheCoreOS2.def httpd.exp export_files \
+CLEAN_TARGETS = gen_test_char test_char.h httpd.exp export_files \
        exports.c export_vars.h
 
 SUBDIRS = mpm
@@ -70,12 +69,6 @@ exports.c: export_files
 export_vars.h: export_files
        $(AWK) -f $(top_srcdir)/build/make_var_export.awk `cat $?` > $@
 
-# Rule to make def file for OS/2 core dll
-ApacheCoreOS2.def: exports.c export_vars.h $(top_srcdir)/os/$(OS_DIR)/core_header.def
-       cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
-       $(CPP) $< $(ALL_CPPFLAGS) $(ALL_INCLUDES) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/  "\1"/' >> $@
-       $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | grep "^[a-z]" | sed -e 's/^\(.*\)$$/  "\1"/' >> $@
-
 # Rule to make exp file for AIX DSOs
 httpd.exp: exports.c export_vars.h
        @echo "#! ." > $@
index d363ee7f8802285efd77e7feefe66dd4a41231a3..3c42e2040c82fedfc0308616b434090c24c52b48 100644 (file)
@@ -1723,8 +1723,8 @@ AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd,
     return errmsg;
 }
 
-/* XXX: Bogus - need to do this differently (at least OS2/Netware suffer
- * the same problem!!!
+/* XXX: Bogus - need to do this differently (at least Netware suffers
+ * the same problem!!!)
  * We use this in <DirectoryMatch> and <FilesMatch>, to ensure that
  * people don't get bitten by wrong-cased regex matches
  */
index 59947d5888c3a21e579a0b7df299da4d6bb28ed5..16d0c7ceb03153b289a0036d186509f66fb0e662 100644 (file)
@@ -62,14 +62,14 @@ int main(int argc, char *argv[])
             printf("\n    ");
 
         /* escape_shell_cmd */
-#if defined(WIN32) || defined(OS2)
-        /* Win32/OS2 have many of the same vulnerable characters
+#if defined(WIN32)
+        /* Win32 has many of the same vulnerable characters
          * as Unix sh, plus the carriage return and percent char.
          * The proper escaping of these characters varies from unix
-         * since Win32/OS2 use carets or doubled-double quotes,
+         * since Win32 uses carets or doubled-double quotes,
          * and neither lf nor cr can be escaped.  We escape unix
          * specific as well, to assure that cross-compiled unix
-         * applications behave similiarly when invoked on win32/os2.
+         * applications behave similiarly when invoked on win32.
          *
          * Rem please keep in-sync with apr's list in win32/filesys.c
          */
index 751676e0a0da68c0279185cf949caae72f8e20e5..0e588054a515dd11a2d54920e19ecb5d3006d895 100644 (file)
@@ -198,7 +198,7 @@ AP_DECLARE(gid_t) ap_gname2id(const char *name)
 #ifndef HAVE_INITGROUPS
 int initgroups(const char *name, gid_t basegid)
 {
-#if defined(QNX) || defined(MPE) || defined(_OSD_POSIX) || defined(TPF) || defined(__TANDEM) || defined(OS2) || defined(WIN32) || defined(NETWARE)
+#if defined(QNX) || defined(MPE) || defined(_OSD_POSIX) || defined(TPF) || defined(__TANDEM) || defined(WIN32) || defined(NETWARE)
 /* QNX and MPE do not appear to support supplementary groups. */
     return 0;
 #else /* ndef QNX */
index 3491bdd7557966774347bfed6ccd86441d7e98fd..fa7aecffb1b522a9081c8512e0663726456a1ede 100644 (file)
@@ -529,8 +529,8 @@ AP_CORE_DECLARE(void) ap_parse_uri(request_rec *r, const char *uri)
         r->uri = r->parsed_uri.path ? r->parsed_uri.path
                  : apr_pstrdup(r->pool, "/");
 
-#if defined(OS2) || defined(WIN32)
-        /* Handle path translations for OS/2 and plug security hole.
+#if defined(WIN32)
+        /* Handle path translations and plug security hole.
          * This will prevent "http://www.wherever.com/..\..\/" from
          * returning a directory for the root drive.
          */
@@ -540,7 +540,7 @@ AP_CORE_DECLARE(void) ap_parse_uri(request_rec *r, const char *uri)
             for (x = r->uri; (x = strchr(x, '\\')) != NULL; )
                 *x = '/';
         }
-#endif /* OS2 || WIN32 */
+#endif /* WIN32 */
     }
     else {
         r->args = NULL;
index f34f9f5723f4ff1aa948854456365b977d65f275..45a8f64222819f1ccbec54e0ceabc6dc3838635f 100644 (file)
@@ -822,7 +822,7 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r)
 
                 /* We will never skip '0' element components, e.g. plain old
                  * <Directory >, and <Directory "/"> are classified as zero
-                 * so that Win32/Netware/OS2 etc all pick them up.
+                 * so that Win32/Netware etc all pick them up.
                  * Otherwise, skip over the mismatches.
                  */
                 if (entry_core->d_components
index d476e54dbb18da635b81e1176a67f173c6e5b755..78ef22fa71e8c7149f43cdd72d800d8b3bb008b5 100644 (file)
@@ -71,7 +71,7 @@
  */
 #define TEST_CHAR(c, f)        (test_char_table[(unsigned)(c)] & (f))
 
-/* Win32/NetWare/OS2 need to check for both forward and back slashes
+/* Win32/NetWare need to check for both forward and back slashes
  * in ap_getparents() and ap_escape_url.
  */
 #ifdef CASE_BLIND_FILESYSTEM
@@ -910,11 +910,11 @@ AP_DECLARE(apr_status_t) ap_pcfg_openfile(ap_configfile_t **ret_cfg,
         return status;
 
     if (finfo.filetype != APR_REG &&
-#if defined(WIN32) || defined(OS2) || defined(NETWARE)
+#if defined(WIN32) || defined(NETWARE)
         strcasecmp(apr_filepath_name_get(name), "nul") != 0) {
 #else
         strcmp(name, "/dev/null") != 0) {
-#endif /* WIN32 || OS2 */
+#endif /* WIN32 */
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
                      "Access to file %s denied by server: not a regular file",
                      name);
@@ -1489,9 +1489,9 @@ AP_DECLARE(char *) ap_escape_shell_cmd(apr_pool_t *p, const char *str)
     s = (const unsigned char *)str;
     for (; *s; ++s) {
 
-#if defined(OS2) || defined(WIN32)
+#if defined(WIN32)
         /*
-         * Newlines to Win32/OS2 CreateProcess() are ill advised.
+         * Newlines to Win32 CreateProcess() are ill advised.
          * Convert them to spaces since they are effectively white
          * space to most applications
          */
index 707c1b53dff2b9160c066475e939bcc5c3fa3262..14678ec310ec01e5cdd29014c9bedc6f5d8ce30f 100644 (file)
 #include "apr_date.h"           /* For apr_date_parse_http() */
 #include "util_ebcdic.h"
 
-#ifdef OS2
-#define INCL_DOS
-#include <os2.h>
-#endif
-
 /*
  * Various utility functions which are common to a whole lot of
  * script-type extensions mechanisms, and might as well be gathered
@@ -122,7 +117,7 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r)
     conn_rec *c = r->connection;
     const char *rem_logname;
     char *env_path;
-#if defined(WIN32) || defined(OS2)
+#if defined(WIN32)
     char *env_temp;
 #endif
     const char *host;
@@ -200,21 +195,6 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r)
     }
 #endif
 
-#ifdef OS2
-    if ((env_temp = getenv("COMSPEC")) != NULL) {
-        apr_table_addn(e, "COMSPEC", env_temp);
-    }
-    if ((env_temp = getenv("ETC")) != NULL) {
-        apr_table_addn(e, "ETC", env_temp);
-    }
-    if ((env_temp = getenv("DPATH")) != NULL) {
-        apr_table_addn(e, "DPATH", env_temp);
-    }
-    if ((env_temp = getenv("PERLLIB_PREFIX")) != NULL) {
-        apr_table_addn(e, "PERLLIB_PREFIX", env_temp);
-    }
-#endif
-
     apr_table_addn(e, "SERVER_SIGNATURE", ap_psignature("", r));
     apr_table_addn(e, "SERVER_SOFTWARE", ap_get_server_banner());
     apr_table_addn(e, "SERVER_NAME",
index 87a9a7d43dfac63f899d4b7434507a540180bb9b..d2c213e342e514da631f68ab824e1cb46cbe9daa 100644 (file)
@@ -490,7 +490,7 @@ if ($opt_i or $opt_e) {
     my @cmds = ();
     my $f;
     foreach $f (@args) {
-        #  ack all potential gcc, hp/ux, win32+os2+aix and os/x extensions
+        #  ack all potential gcc, hp/ux, win32aix and os/x extensions
         if ($f !~ m#(\.so$|\.la$|\.sl$|\.dll$|\.dylib$|)#) {
             error("file $f is not a shared object");
             exit(1);
index 6eff391392830bb8af7a0d2a5f64e830a997725e..fa61e78e3bfba7565b472b3b3eae4c4d54d60500 100644 (file)
@@ -148,7 +148,7 @@ int main(int argc, const char * const argv[])
         exit_error(rv, "apr_proc_detach");
     }
 
-#if defined(WIN32) || defined(OS2) || defined(NETWARE)
+#if defined(WIN32) || defined(NETWARE)
 
 #error "Please implement me."
 
index 2cf2549e27922a92b7191d44e0e40ba3c04c97f4..d772807ae8c8588e732a7cc11430c92411e778b0 100644 (file)
@@ -118,17 +118,11 @@ static void usage(const char *argv0, const char *reason)
             "{<rotation time in seconds>|<rotation size>(B|K|M|G)} "
             "[offset minutes from UTC]\n\n",
             argv0);
-#ifdef OS2
-    fprintf(stderr,
-            "Add this:\n\nTransferLog \"|%s.exe /some/where 86400\"\n\n",
-            argv0);
-#else
     fprintf(stderr,
             "Add this:\n\nTransferLog \"|%s /some/where 86400\"\n\n",
             argv0);
     fprintf(stderr,
             "or \n\nTransferLog \"|%s /some/where 5M\"\n\n", argv0);
-#endif
     fprintf(stderr,
             "to httpd.conf. The generated name will be /some/where.nnnn "
             "where nnnn is the\nsystem time at which the log nominally "