This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]