You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Andrew Wilson <aw...@hyperreal.com> on 1995/12/20 21:28:06 UTC
Additional port for Apache-1.0.0 (fwd)
Woo, early christmas present! From Lynx.com's FAQ:
LynxOS is a proprietary UNIX-like real-time operating
system. LynxOS looks and f eels like UNIX from the
user/programmer point of view. It was developed from the
ground-up with high performance, deterministic hard real-time
response in mind.
I'll upload the patch into for_Apache_1.1.0b1 shortly, but it's
included here for your delectation.
Ay.
Forwarded message:
> From swatt@Lynx.COM Tue Dec 19 18:25:05 1995
> Message-Id: <m0...@shadow.lynx.com>
> Date: Tue, 19 Dec 95 18:24 PST
> From: swatt@Lynx.COM (Steven Watt -- KD6GGD)
> To: apache-bugs@mail.apache.org
> Subject: Additional port for Apache-1.0.0
>
> Greetings!
>
> I've ported Apache-1.0 to LynxOS version 2.3 (and later -- it should still
> work).
>
> I think I've come up with a more-or-less standard way to figure out the
> GMT offset -- see the patch.
>
> Thanks for a great piece of code!
>
> Here's the patch file I generated (unidiffs):
> --------------------Cut here--------------------
> --- apache_1.0.0/src/util.c Sat Nov 18 08:23:01 1995
> +++ apache_1.0.0-lynx/src/util.c Tue Dec 19 17:36:01 1995
> @@ -129,7 +129,27 @@
> return ht_time(p, sec, HTTP_TIME_FORMAT, 1);
> }
>
> +#if defined(LYNXOS)
> +/* This code ought to work for any system that has mktime, localtime, and
> + * gmtime from the ANSI C spec */
> +
> +struct tm *get_gmtoff(long *tz) {
> + time_t tt;
> + struct tm *loc_t;
> + struct tm *gmt_t;
> +
> + tt = time(NULL);
> + loc_t = localtime(&tt);
> + gmt_t = gmtime(&tt);
> +
> + *tz = mktime(loc_t) - mktime(gmt_t);
> +
> + return loc_t;
> +}
> +
> +#else
> /* What a pain in the ass. */
> +
> struct tm *get_gmtoff(long *tz) {
> time_t tt;
> struct tm *t;
> @@ -146,6 +166,7 @@
> return t;
> }
>
> +#endif /* LYNXOS */
>
> /* Match = 0, NoMatch = 1, Abort = -1 */
> /* Based loosely on sections of wildmat.c by Rich Salz
> --- apache_1.0.0/src/conf.h Fri Nov 17 13:33:13 1995
> +++ apache_1.0.0-lynx/src/conf.h Tue Dec 19 17:40:26 1995
> @@ -248,6 +248,14 @@
> #define NEED_INITGROUPS
> #define JMP_BUF sigjmp_buf
>
> +#elif defined(LYNXOS)
> +#undef NO_KILLPG
> +#undef NO_SETSID
> +#define NEED_STRCASECMP
> +#define NEED_STRNCASECMP
> +#define NEED_INITGROUPS
> +#define JMP_BUF jmp_buf
> +
> /* Unknown system - Edit these to match */
> #else
> #ifdef BSD
> --- apache_1.0.0/src/Configuration Sun Nov 19 15:22:48 1995
> +++ apache_1.0.0-lynx/src/Configuration Tue Dec 19 17:35:03 1995
> @@ -49,7 +49,7 @@
> # SETTINGS FOR THE SYSTEM FLAGS. IF YOU DON'T, BAD THINGS WILL HAPPEN.
>
> # For SunOS 4
> -AUX_CFLAGS= -DSUNOS4
> +# AUX_CFLAGS= -DSUNOS4
> # For Solaris 2.
> #AUX_CFLAGS= -DSOLARIS2
> #AUX_LIBS= -lsocket -lnsl
> @@ -98,6 +98,9 @@
> # For QNX
> #AUX_CFLAGS= -DQNX
> #AUX_LFLAGS= -N 0x20000
> +# For LynxOS
> +AUX_CFLAGS= -DLYNXOS
> +EXTRA_LIBS=-lbsd -ldes -lc_p
>
> ################################################################
> # Module configuration
> --
> Steve Watt KD6GGD PP-ASEL Email at home: steve@watt.com
> Lynx Real-Time Systems work: swatt@lynx.com
> 2239 Samaritan Drive +1 408 879 3900 x 162
> San Jose, CA, USA, 95124 Toll-free (US only) 1 800 255 LYNX x 162
>