cvs commit: apache-1.3/src/include ap_mmn.h http_config.h
coar99/01/06 11:14:52 Modified:src CHANGES src/include ap_mmn.h http_config.h Log: If we tried to check the version number of a module compiled before 1 January 1999, we'd be looking in the wrong places for the filename and version numbers because the magic cookie insertion changed their offsets. This fixes that, at the cost of making any modules compiled between 1 January 1999 and 6 January 1999 unreadable. Balancing a span of five days against six months makes this seem reasonable. Revision ChangesPath 1.1205+5 -0 apache-1.3/src/CHANGES Index: CHANGES === RCS file: /home/cvs/apache-1.3/src/CHANGES,v retrieving revision 1.1204 retrieving revision 1.1205 diff -u -r1.1204 -r1.1205 --- CHANGES 1999/01/05 08:17:25 1.1204 +++ CHANGES 1999/01/06 19:14:49 1.1205 @@ -1,5 +1,10 @@ Changes with Apache 1.3.4 + *) Moved the MODULE_MAGIC_COOKIE from before the versions and + filename to the end of the STANDARD_MODULE_STUFF. Its + presence at the beginning prevented reporting of the filename + for modules compiled before 1 January 1999. [Ken Coar] + *) SECURITY: ap_os_is_filename_valid() has been added to Win32 to detect and prevent access to special DOS device file names. [Paul Sutton, Ken Parzygnat] 1.20 +4 -1 apache-1.3/src/include/ap_mmn.h Index: ap_mmn.h === RCS file: /home/cvs/apache-1.3/src/include/ap_mmn.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- ap_mmn.h 1999/01/05 08:17:27 1.19 +++ ap_mmn.h 1999/01/06 19:14:51 1.20 @@ -196,12 +196,15 @@ * - added MODULE_MAGIC_COOKIE to identify module structs * 19990103 (1.3.4-dev) - added ap_array_pstrcat() * 19990105 (1.3.4-dev) - added ap_os_is_filename_valid() to Win32 + * 19990106 (1.3.4-dev) - Move MODULE_MAGIC_COOKIE to the end of the + *STANDARD_MODULE_STUFF macro so the version + *numbers and file name remain at invariant offsets */ #define MODULE_MAGIC_COOKIE 0x41503133UL /* "AP13" */ #ifndef MODULE_MAGIC_NUMBER_MAJOR -#define MODULE_MAGIC_NUMBER_MAJOR 19990105 +#define MODULE_MAGIC_NUMBER_MAJOR 19990106 #endif #define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */ #define MODULE_MAGIC_NUMBER MODULE_MAGIC_NUMBER_MAJOR/* backward compat */ 1.100 +8 -8 apache-1.3/src/include/http_config.h Index: http_config.h === RCS file: /home/cvs/apache-1.3/src/include/http_config.h,v retrieving revision 1.99 retrieving revision 1.100 diff -u -r1.99 -r1.100 --- http_config.h 1999/01/01 20:27:47 1.99 +++ http_config.h 1999/01/06 19:14:51 1.100 @@ -186,10 +186,6 @@ */ typedef struct module_struct { -unsigned long magic;/* Magic Cookie to identify a module structure; - * It's mainly important for the DSO facility - * (see also mod_so). - */ int version; /* API version, *not* module version; * check that module is compatible with this * version of the server. @@ -202,11 +198,15 @@ */ const char *name; - void *dynamic_load_handle; struct module_struct *next; +unsigned long magic;/* Magic Cookie to identify a module structure; + * It's mainly important for the DSO facility + * (see also mod_so). + */ + /* init() occurs after config parsing, but before any children are * forked. * Modules should not rely on the order in which create_server_config @@ -285,13 +285,13 @@ * signal an error). See src/include/ap_mmn.h for MMN version history. */ -#define STANDARD_MODULE_STUFFMODULE_MAGIC_COOKIE, \ - MODULE_MAGIC_NUMBER_MAJOR, \ +#define STANDARD_MODULE_STUFFMODULE_MAGIC_NUMBER_MAJOR, \ MODULE_MAGIC_NUMBER_MINOR, \ -1, \ __FILE__, \ + NULL, \ NULL, \ - NULL + MODULE_MAGIC_COOKIE /* Generic accessors for other modules to get at their own module-specific * data
cvs commit: apache-1.3/src/os/tpf TPFExport os.h
manoj 99/01/06 13:57:08 Modified:htdocs/manual install-tpf.html readme-tpf.html src Configure Makefile.tmpl src/os/tpf TPFExport os.h Log: Submitted by: Joe Moenich <[EMAIL PROTECTED]> Reviewed by: Manoj Kasichainula <[EMAIL PROTECTED]> Various TPF tweaks, simplifying installation, etc. Revision ChangesPath 1.3 +0 -6 apache-1.3/htdocs/manual/install-tpf.html Index: install-tpf.html === RCS file: /home/cvs/apache-1.3/htdocs/manual/install-tpf.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- install-tpf.html 1998/11/04 19:31:50 1.2 +++ install-tpf.html 1999/01/06 21:56:57 1.3 @@ -101,12 +101,6 @@ document lists the modules that have been tested on TPF. -Overlay src/Makefile.tmpl with src/Makefile.tpf: -cp Makefile.tpf Makefile.tmpl - -Overlay src/main/Makefile.tmpl with src/main/Makefile.tpf: - cp main/Makefile.tpf main/Makefile.tmpl - Set the TPF environment variables: . os/tpf/TPFExport 1.3 +0 -15 apache-1.3/htdocs/manual/readme-tpf.html Index: readme-tpf.html === RCS file: /home/cvs/apache-1.3/htdocs/manual/readme-tpf.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- readme-tpf.html 1998/11/04 19:31:50 1.2 +++ readme-tpf.html 1999/01/06 21:56:57 1.3 @@ -49,21 +49,6 @@ - -Automatically Generated Files - - Some files that are automatically generated by Makefile on other platforms - are included in the src/os/tpf directory... - - test_char.h - uri_delims.h - - - These files could not be automatically created for TPF because the - Makefile platform is not the same as the run-time platform. - (That is, you don't run Makefile on TPF itself.) - - What's Available in this Version 1.320 +1 -0 apache-1.3/src/Configure Index: Configure === RCS file: /home/cvs/apache-1.3/src/Configure,v retrieving revision 1.319 retrieving revision 1.320 diff -u -u -r1.319 -r1.320 --- Configure 1999/01/04 04:11:38 1.319 +++ Configure 1999/01/06 21:57:01 1.320 @@ -609,6 +609,7 @@ CFLAGS="$CFLAGS -DTPF -DCHARSET_EBCDIC -D_POSIX_SOURCE" DEF_WANTHSREGEX=yes LIBS="$LIBS" + SUBTARGET="target_compile_only" ;; *-sni-sysv4*) OS='SVR4' 1.108 +3 -0 apache-1.3/src/Makefile.tmpl Index: Makefile.tmpl === RCS file: /home/cvs/apache-1.3/src/Makefile.tmpl,v retrieving revision 1.107 retrieving revision 1.108 diff -u -u -r1.107 -r1.108 --- Makefile.tmpl 1998/12/01 23:59:54 1.107 +++ Makefile.tmpl 1999/01/06 21:57:02 1.108 @@ -30,6 +30,9 @@ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \ -o $(TARGET) buildmark.o $(OBJS) $(REGLIB) $(LIBS) +target_compile_only: subdirs modules.o + $(CC) -c $(INCLUDES) $(CFLAGS) buildmark.c + target_shared: lib$(TARGET).ep $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \ -o $(TARGET) -DSHARED_CORE_BOOTSTRAP main/http_main.c 1.2 +3 -22 apache-1.3/src/os/tpf/TPFExport Index: TPFExport === RCS file: /home/cvs/apache-1.3/src/os/tpf/TPFExport,v retrieving revision 1.1 retrieving revision 1.2 diff -u -u -r1.1 -r1.2 --- TPFExport 1998/11/03 22:06:30 1.1 +++ TPFExport 1999/01/06 21:57:04 1.2 @@ -1,26 +1,7 @@ #!/bin/sh echo " Setting TPF/c89 environment variables" -TZ=EST5EDT -PATH="$PATH:/usr/sbin:/usr/share/lib/terminfo/:.:/etc:$HOME" -NLSPATH=/usr/lpp/tcpip/usr/lib/nls/msg/%L:/usr/lib/nls/msg/%L/%N -LIBPATH=/usr/lib -LANG=C -export TZ PATH NLSPATH LANG -# Commands Reference -# umask g=rx,o=x -umask 022 -export _C89_CCMODE=1 -export _C89_CVERSION="0x2104" -export _C89_PVERSION="0x1108" -export _C89_CNAME="CBCDRVR" -export _C89_PNAME="EDCPRLK" -export _C89_PMSGS="EDCPMSGE" -export _C89_CLIB_PREFIX="TSCTEST.OSV2R4M0" -export _C89_PLIB_PREFIX="SHARE.CEE180" -export _C89_INCDIRS="/u/tpf41/currentmaint/include /u/tpf41/currentmaint/include/oco //DD:SYSLIB //'SHARE.CEE180.SCEEH.NET.H' //'SHARE.CEE180.SCEEH.H' //'SHARE.CEE180.SCEEH.NETINET.H'" -export _C89_SSYSLIB=SHARE.CEE180.SCEEMAC -export _C89_WORK_UNIT="VIO" -export _BPX_SHAREAS=YES -export PATH NLSPATH LIBPATH +export _C89_CCMODE=1 +# replace the following with the location of your TPF in