This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Missing Structs and Functions
- From: Eric McDonald <mcdonald at phy dot cmich dot edu>
- To: xconq7 at sources dot redhat dot com
- Date: Wed, 8 Oct 2003 11:15:21 -0400 (EDT)
- Subject: Missing Structs and Functions
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