From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1659 invoked by alias); 8 Oct 2003 15:15:26 -0000 Mailing-List: contact xconq7-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: xconq7-owner@sources.redhat.com Received: (qmail 1650 invoked from network); 8 Oct 2003 15:15:25 -0000 Received: from unknown (HELO garm.central.cmich.local) (141.209.15.48) by sources.redhat.com with SMTP; 8 Oct 2003 15:15:25 -0000 Received: from leon.phy.cmich.edu ([141.209.165.20]) by egate1.central.cmich.local with Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Oct 2003 11:15:24 -0400 Received: from localhost (unknown [127.0.0.1]) by leon.phy.cmich.edu (Postfix) with ESMTP id CB89770021 for ; Wed, 8 Oct 2003 11:15:21 -0400 (EDT) Date: Fri, 10 Oct 2003 07:59:00 -0000 From: Eric McDonald To: xconq7@sources.redhat.com Subject: Missing Structs and Functions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 08 Oct 2003 15:15:24.0040 (UTC) FILETIME=[FF1CA880:01C38DAE] X-SW-Source: 2003/txt/msg00490.txt.bz2 Hello, I am starting to work toward allowing some parts of C99 to be used in Xconq (which still conforms to C89). The first two candidates are the snprintf(3) and vsnprintf(3) functions. I have already created config tests for them; now I am wondering where I should provide implementations for systems which are missing them. One idea would be to create a missing.h and missing.c, perhaps in the kernel dir. Then we would include missing.h into the most basic header files. missing.h would contain #ifdef'd definitions of missing structs and prototypes of missing functions. A major motivator for this is that some platforms are missing functions such as gettimeofday(), and we currently have #ifdef'd declarations and implementations scattered across several files in the kernel directory. A single, common header and implementation would address this. Regards, Eric