....
gcc -ansi -O -DHOST_X86 -DTARGET_X86 -DOPSYS_UNIX -DOPSYS_LINUX -D_POSIX_SOURCE -D_BSD_SOURCE -DVRE
GS -DCALLEESAVE=3 -I../../objs -I../../include -I.. -c sysconf.c
In file included from sysconf.c:36:
ml_sysconf.h:24: `_SC_LOGNAME_MAX' undeclared here (not in a function)
ml_sysconf.h:24: initializer element for `values[19].val' is not constant
ml_sysconf.h:28: `_SC_PASS_MAX' undeclared here (not in a function)
ml_sysconf.h:28: initializer element for `values[23].val' is not constant
ml_sysconf.h:34: `_SC_XOPEN_VERSION' undeclared here (not in a function)
ml_sysconf.h:34: initializer element for `values[29].val' is not constant
...
looking at the sources in sysconf.c, the comment says:
/* The following table is generated from all _SC_ values
* in unistd.h. For most systems, this will include
* _SC_ARG_MAX
* _SC_CHILD_MAX
* _SC_CLK_TCK
* _SC_JOB_CONTROL
* _SC_NGROUPS_MAX
* _SC_OPEN_MAX
* _SC_SAVED_IDS
* _SC_STREAM_MAX
* _SC_TZNAME_MAX
* _SC_VERSION
*
* The full POSIX list is given in section 4.8.1 of Std 1003.1b-1993.
*
* The SML string used to look up these values has the same
* form but without the prefix, e.g., to lookup _SC_ARG_MAX,
* use sysconf "ARG_MAX"
*/
static name_val_t values[] = {
#include "ml_sysconf.h"
};
which i guess implies that those things should be standard?
who needs updating, the sml folks
or (this particular release of) linux?
thanks,
-- carlos