Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 19928 invoked by uid 6000); 3 Feb 1998 03:42:20 -0000 Received: (qmail 19752 invoked from network); 3 Feb 1998 03:42:15 -0000 Received: from lacrosse.redhat.com (root@207.175.42.154) by taz.hyperreal.org with SMTP; 3 Feb 1998 03:42:15 -0000 Received: (from uucp@localhost) by lacrosse.redhat.com (8.8.7/8.8.7) with UUCP id WAA15761 for new-httpd@apache.org; Mon, 2 Feb 1998 22:39:38 -0500 Received: from localhost (gafton@localhost) by localhost.localnet (8.8.7/8.8.7) with SMTP id WAA26375 for ; Mon, 2 Feb 1998 22:36:22 -0500 X-Authentication-Warning: localhost.localnet: gafton owned process doing -bs Date: Mon, 2 Feb 1998 22:36:22 -0500 (EST) From: Cristian Gafton X-Sender: gafton@localhost.localnet To: new-httpd@apache.org Subject: Re: apache/linux modules In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Mon, 2 Feb 1998, Alexei Kosut wrote: > That actually requires some changes to the Apache API - we can't load a > module unless we know the name of its module record symbol (e.g. > "includes_module"). We could try to guess it from the name of the file, I > guess, like we do for Configuration. Now this is a development thread :-) I propose to have the modules shared objects named like mod-NAME.so. Each module exports a symbol (struct module) named "module". We load all the .so files and try to resolve in each module the "module" symbol. We then fill in the preloaded_modules and prelinked_modules arrays with relevant information and proceed further. We could have the modules ecport a version symbol ("mod_version") and try to dlsym() that symbol also and compare it with the current server version to be sure that the module was compiled for this version of apache. > I support sticking Sameer's module in the standard distribution. That > sounds good to me. That would be a definite step forward in this direction. Cristian -- ---------------------------------------------------------------------- Cristian Gafton -- gafton@redhat.com -- Red Hat Software, Inc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UNIX is user friendly. It's just selective about who its friends are.