]> granicus.if.org Git - apache/commitdiff
axe unmaintained 1.3-era code to support AUX, SunOS, IRIX, Next, Tandem, MPE,
authorJeff Trawick <trawick@apache.org>
Fri, 27 Mar 2009 00:32:22 +0000 (00:32 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 27 Mar 2009 00:32:22 +0000 (00:32 +0000)
LynxOS, QNX, and UnixWare

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758944 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/misc/perf-tuning.xml
docs/manual/programs/htdbm.xml
docs/manual/programs/htpasswd.xml
include/ap_config.h
include/mpm_common.h
modules/arch/unix/mod_unixd.c
modules/generators/mod_status.c
modules/mappers/mod_imagemap.c
server/mpm/prefork/prefork.c
server/mpm_common.c
support/suexec.c

index 5996eea17f0b9ff68d739ae2d4f2b1abbf183cac..52895557c938117879e5dffc5ce7ffb4de0c634c 100644 (file)
           semaphore API allows for a denial of service attack by any
           CGIs running under the same uid as the webserver
           (<em>i.e.</em>, all CGIs, unless you use something like
-          <program>suexec</program> or <code>cgiwrapper</code>). For these
-          reasons this method is not used on any architecture except
-          IRIX (where the previous two are prohibitively expensive
-          on most IRIX boxes).</p>
+          <program>suexec</program> or <code>cgiwrapper</code>).</p>
         </dd>
 
         <dt><code>AcceptMutex pthread</code></dt>
index 0911b16a998d93c063bdb6fb057c5a1e49360c52..5cc2c313dee47a964f5af706b7453d884a826b6b 100644 (file)
 </section>
 
 <section id="restrictions"><title>Restrictions</title>
-    <p>On the Windows and MPE platforms, passwords encrypted with
+    <p>On the Windows platform, passwords encrypted with
     <code>htdbm</code> are limited to no more than <code>255</code>
     characters in length. Longer passwords will be truncated to 255
     characters.</p>
index f342408d38d48b02f663dd7da2e0d504cacb9c5c..86bffcf968148e1bd2957a5b1ba79f1bdd911a5a 100644 (file)
@@ -205,7 +205,7 @@ distribution.</seealso>
 </section>
 
 <section id="restrictions"><title>Restrictions</title>
-    <p>On the Windows and MPE platforms, passwords encrypted with
+    <p>On the Windows platform, passwords encrypted with
     <code>htpasswd</code> are limited to no more than <code>255</code>
     characters in length. Longer passwords will be truncated to 255
     characters.</p>
index f1cc3cac1022a57340c3b3c70f7df470f6e8aaf3..45056372c28fcfdf73bb103056b861fc5bdbf406 100644 (file)
 #include "apache_noprobes.h"
 #endif
 
-/* TODO - We need to put OS detection back to make all the following work */
-
-#if defined(SUNOS4) || defined(IRIX) || defined(NEXT) || defined(AUX3) \
-    || defined (UW) || defined(LYNXOS)
-/* These systems don't do well with any lingering close code; I don't know
- * why -- manoj */
-#define NO_LINGCLOSE
-#endif
-
 /* If APR has OTHER_CHILD logic, use reliable piped logs. */
 #if APR_HAS_OTHER_CHILD
 #define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
index aa6715126180d15d4d7f0f7661275a8a0f525aad..d2d68bde7ad8a71ba103e6d0546f9f28ea0690eb 100644 (file)
@@ -160,7 +160,7 @@ void ap_wait_or_timeout(apr_exit_why_e *status, int *exitcode, apr_proc_t *ret,
  */
 int ap_process_child_status(apr_proc_t *pid, apr_exit_why_e why, int status);
 
-#if defined(TCP_NODELAY) && !defined(MPE)
+#if defined(TCP_NODELAY)
 /**
  * Turn off the nagle algorithm for the specified socket.  The nagle algorithm
  * says that we should delay sending partial packets in the hopes of getting
index 2e3c7a44ca9bc41f8f22f8bcbd9c226a28d8ec76..08446b01eeacb904ddb8d3a2f041bdfb1b699c72 100644 (file)
@@ -170,21 +170,6 @@ unixd_drop_privileges(apr_pool_t *pool, server_rec *s)
         }
     }
 
-#ifdef MPE
-    /* Only try to switch if we're running as MANAGER.SYS */
-    if (geteuid() == 1 && ap_unixd_config.user_id > 1) {
-        GETPRIVMODE();
-        if (setuid(ap_unixd_config.user_id) == -1) {
-            GETUSERMODE();
-            rv = errno;
-            ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
-                        "setuid: unable to change to uid: %ld",
-                        (long) ap_unixd_config.user_id);
-            return rv;
-        }
-        GETUSERMODE();
-    }
-#else
     /* Only try to switch if we're running as root */
     if (!geteuid() && (
 #ifdef _OSD_POSIX
@@ -208,7 +193,6 @@ unixd_drop_privileges(apr_pool_t *pool, server_rec *s)
             return rv;
         }
     }
-#endif
 #endif
 
     return OK;
@@ -326,20 +310,6 @@ AP_DECLARE(int) ap_unixd_setup_child(void)
         }
     }
 
-#ifdef MPE
-    /* Only try to switch if we're running as MANAGER.SYS */
-    if (geteuid() == 1 && ap_unixd_config.user_id > 1) {
-        GETPRIVMODE();
-        if (setuid(ap_unixd_config.user_id) == -1) {
-            GETUSERMODE();
-            ap_log_error(APLOG_MARK, APLOG_ALERT, errno, NULL,
-                        "setuid: unable to change to uid: %ld",
-                        (long) ap_unixd_config.user_id);
-            exit(1);
-        }
-        GETUSERMODE();
-    }
-#else
     /* Only try to switch if we're running as root */
     if (!geteuid() && (
 #ifdef _OSD_POSIX
@@ -360,7 +330,6 @@ AP_DECLARE(int) ap_unixd_setup_child(void)
                          " after software errors");
         }
     }
-#endif
 #endif
     return 0;
 }
index 6e19da7cc4ec420d02f32d8fa2baea3fedb05773..701eba1a09354df543b5eb202963beeba78c442c 100644 (file)
 #include "apr_want.h"
 #include "apr_strings.h"
 
-#ifdef NEXT
-#if (NX_CURRENT_COMPILER_RELEASE == 410)
-#ifdef m68k
-#define HZ 64
-#else
-#define HZ 100
-#endif
-#else
-#include <machine/param.h>
-#endif
-#endif /* NEXT */
-
 #define STATUS_MAXLINE 64
 
 #define KBYTE 1024
index f6741d35b4ed01f74392edc8f5d609835815e229..5a434f722c2895c9362f22ec5e1deb79eb780fab 100644 (file)
 #define IMAP_DEFAULT_DEFAULT "nocontent"
 #define IMAP_BASE_DEFAULT "map"
 
-#ifdef SUNOS4
-double strtod();                /* SunOS needed this */
-#endif
-
 module AP_MODULE_DECLARE_DATA imagemap_module;
 
 typedef struct {
index 0cbacbf7a07f700aaae3f4265b003db7bcee1878..14ecafbe0f9497620cbdbf8683c60f9b16b935a7 100644 (file)
@@ -47,9 +47,6 @@
 #include "ap_mmn.h"
 #include "apr_poll.h"
 
-#ifdef HAVE_BSTRING_H
-#include <bstring.h>            /* for IRIX, FD_SET calls bzero() */
-#endif
 #ifdef HAVE_TIME_H
 #include <time.h>
 #endif
@@ -1455,10 +1452,6 @@ static void prefork_hooks(apr_pool_t *p)
      */
     static const char *const aszSucc[] = {"core.c", NULL};
 
-#ifdef AUX3
-    (void) set42sig();
-#endif
-
     ap_hook_open_logs(prefork_open_logs, NULL, aszSucc, APR_HOOK_REALLY_FIRST);
     /* we need to set the MPM state before other pre-config hooks use MPM query
      * to retrieve it, so register as REALLY_FIRST
index b46281479f92cb1ab1e4363dc639f3bf04211a80..2d365434b84d24eca3c8d4124b1c535b1f2c7722 100644 (file)
@@ -138,7 +138,7 @@ void ap_wait_or_timeout(apr_exit_why_e *status, int *exitcode, apr_proc_t *ret,
     return;
 }
 
-#if defined(TCP_NODELAY) && !defined(MPE)
+#if defined(TCP_NODELAY)
 void ap_sock_disable_nagle(apr_socket_t *s)
 {
     /* The Nagle algorithm says that we should delay sending partial
@@ -198,10 +198,9 @@ 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(__TANDEM) || defined(WIN32) || defined(NETWARE)
-/* QNX and MPE do not appear to support supplementary groups. */
+#if defined(_OSD_POSIX) || defined(WIN32) || defined(NETWARE)
     return 0;
-#else /* ndef QNX */
+#else
     gid_t groups[NGROUPS_MAX];
     struct group *g;
     int index = 0;
@@ -224,7 +223,7 @@ int initgroups(const char *name, gid_t basegid)
     endgrent();
 
     return setgroups(index, groups);
-#endif /* def QNX */
+#endif
 }
 #endif /* def NEED_INITGROUPS */
 
index 59371be0bb8099317730c698ffc4269ddbe91497..a6a82b5ec2ea3ed99602ce051aead46be5d22dc2 100644 (file)
 #include <grp.h>
 #endif
 
-/*
- ***********************************************************************
- * There is no initgroups() in QNX, so I believe this is safe :-)
- * Use cc -osuexec -3 -O -mf -DQNX suexec.c to compile.
- *
- * May 17, 1997.
- * Igor N. Kovalenko -- infoh mail.wplus.net
- ***********************************************************************
- */
-
-#if defined(NEED_INITGROUPS)
-int initgroups(const char *name, gid_t basegid)
-{
-    /* QNX and MPE do not appear to support supplementary groups. */
-    return 0;
-}
-#endif
-
-#if defined(SUNOS4)
-extern char *sys_errlist[];
-#define strerror(x) sys_errlist[(x)]
-#endif
-
 #if defined(PATH_MAX)
 #define AP_MAXPATH PATH_MAX
 #elif defined(MAXPATHLEN)