Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 71592 invoked from network); 13 Feb 2008 21:04:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 21:04:37 -0000 Received: (qmail 95151 invoked by uid 500); 13 Feb 2008 21:04:31 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 94837 invoked by uid 500); 13 Feb 2008 21:04:30 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 94828 invoked by uid 99); 13 Feb 2008 21:04:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 13:04:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [82.165.239.108] (HELO ottawa.entertain-me.com) (82.165.239.108) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 21:03:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ottawa.entertain-me.com (Postfix) with ESMTP id A526885706B for ; Wed, 13 Feb 2008 16:04:05 -0500 (EST) X-Virus-Scanned: amavisd-new at entertain-me.com Received: from ottawa.entertain-me.com ([127.0.0.1]) by localhost (ottawa.entertain-me.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RQ7cJRyOex0H for ; Wed, 13 Feb 2008 16:04:04 -0500 (EST) Received: from [192.168.3.2] (pool-71-191-34-18.washdc.fios.verizon.net [71.191.34.18]) by ottawa.entertain-me.com (Postfix) with ESMTP id D2AED857068 for ; Wed, 13 Feb 2008 16:04:04 -0500 (EST) Subject: Returning large objects from a user implemented hook From: David Carter To: modules-dev@httpd.apache.org Content-Type: text/plain Date: Wed, 13 Feb 2008 16:04:04 -0500 Message-Id: <1202936644.18651.15.camel@winnipeg.entertain-me.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-40.el5) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm trying to implement a hook in a module I'm developing that will allow languages such as PHP to access it. Part of the information I need to pass back will be in the form of 64 byte data blocks. As I see it, these are my options: 1. Return the block as the return value. Compiler complains, as it should. 2. Pass in a pointer to memory that will contain the data. This segfaults. 3. Allocate memory and return a pointer. Wouldn't this segfault as well? 4. ??? Suggestions? Not all of life fits in an integer :) TIA, Dave