pike.git / src / acconfig.h

version» Context lines:

pike.git/src/acconfig.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   */      #ifndef MACHINE_H   #define MACHINE_H    - /* We must define this *always* */ - #ifndef POSIX_SOURCE - #define POSIX_SOURCE 1 - #endif -  - /* Get more declarations in GNU libc. */ - #ifndef _GNU_SOURCE - #define _GNU_SOURCE - #endif -  - /* Get more declarations from AIX libc. */ - #ifndef _ALL_SOURCE - #define _ALL_SOURCE - #endif -  +    /* Building as a library? */   #undef LIBPIKE      /* Where's the master.pike file installed? */   #define DEFAULT_MASTER "@prefix@/lib/pike/master.pike"      /* Define this if you want run time self tests */   #undef PIKE_DEBUG      /* Define this if you want some extra (possibly verbose) run time self tests */
pike.git/src/acconfig.h:60:      /* Define this if you want dmalloc to keep track of freed memory. */   #undef DMALLOC_TRACK_FREE      /* With this, dmalloc will trace malloc(3) calls */   #undef ENCAPSULATE_MALLOC      /* With this, dmalloc will report leaks made by malloc(3) calls */   #undef REPORT_ENCAPSULATED_MALLOC    - /* Define this to enable atomic svalues */ - #undef ATOMIC_SVALUE + /* Define this to simulate dynamic module loading with static modules. */ + #undef USE_SEMIDYNAMIC_MODULES    - /* Define this to enable the internal Pike security system */ - #undef PIKE_SECURITY -  - /* Define this to enable the internal bignum conversion */ - #undef AUTO_BIGNUM -  - /* Define this to enable experimental code for multicpu machines */ - #undef PIKE_RUN_UNLOCKED -  - /* Define this if you want to enable the shared nodes mode of the optimizer. */ - #undef SHARED_NODES -  - /* Define this if you want to enable the new type checker code. */ - #undef NEW_ARG_CHECK -  +    /* Define this to use the new keypair loop. */   #undef PIKE_MAPPING_KEYPAIR_LOOP    - /* Define this to get portable dumped bytecode. */ - #undef PIKE_PORTABLE_BYTECODE -  +    /* Enable profiling */   #undef PROFILING      /* Enable internal profiling */   #undef INTERNAL_PROFILING    -  + /* Enable machine code stack frames */ + #undef MACHINE_CODE_STACK_FRAMES +    /* If possible, the expansion for a "#define short" to avoid that bison    * uses short everywhere internally. */   #undef BISON_SHORT_EXPANSION      /* The following USE_* are used by smartlink */   /* Define this if your ld sets the run path with -rpath */   #undef USE_RPATH      /* Define this if your ld sets the run path with -R */   #undef USE_R      /* Define this if your ld sets the run path with -YP, */   #undef USE_YP_      /* Define this if your ld sets the run path with +b */   #undef USE_PLUS_b      /* Define this if your ld uses -rpath, but your cc wants -Wl,-rpath, */   #undef USE_Wl    -  + /* Define this if your ld uses Darwin-style -rpath, but your cc wants -Wl,-rpath, */ + #undef USE_Wl_rpath_darwin +    /* Define this if your ld uses -R, but your cc wants -Wl,-R */   #undef USE_Wl_R      /* Define this if your ld uses -rpath, but your cc -Qoption,ld,-rpath (icc) */   #undef USE_Qoption      /* Define this if your ld uses -YP, , but your cc wants -Xlinker -YP, */   #undef USE_XLINKER_YP_      /* Define this if your ld doesn't have an option to set the run path */   #undef USE_LD_LIBRARY_PATH      /* Define this on OS X to get two-level namespace support in ld */   #undef USE_OSX_TWOLEVEL_NAMESPACE    - /* Define if your tcc supports #pragma TenDRA longlong type allow. */ - #undef HAVE_PRAGMA_TENDRA_LONGLONG -  - /* Define if your tcc supports #pragma TenDRA set longlong type : long long. */ - #undef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE -  - /* The worlds most stringent C compiler? */ - #ifdef __TenDRA__ - /* We want to be able to use 64bit arithmetic */ - #ifdef HAVE_PRAGMA_TENDRA_LONGLONG - #pragma TenDRA longlong type allow - #endif /* HAVE_PRAGMA_TENDRA_LONGLONG */ - #ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE - #pragma TenDRA set longlong type : long long - #endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */ -  - #ifdef _NO_LONGLONG - #undef _NO_LONGLONG - #endif /* _NO_LONGLONG */ - #endif /* __TenDRA__ */ -  +    @TOP@      /* Define this if your compiler attempts to use _chkstk, but libc contains    * __chkstk. */   #undef HAVE_BROKEN_CHKSTK    -  + /* Define if you have a working getcwd(3) (ie one that returns a malloc()ed +  * buffer if the first argument is NULL). +  * +  * Define to 1 if the second argument being 0 causes getcwd(3) to allocate +  * a buffer of suitable size (ie never fail with ERANGE). +  * +  * Define to 0 if the second argument MUST be > 0. +  */ + #undef HAVE_WORKING_GETCWD +    /* Define for solaris */   #undef SOLARIS      /* Define if the closedir function returns void instead of int. */   #undef VOID_CLOSEDIR    -  + /* Number of args to mkdir() */ + #define MKDIR_ARGS 2 +    /* Define to 'int' if <sys/time.h> doesn't */   #undef time_t      /* Define to 'short' if <sys/types.h> doesn't */   #undef pri_t      /* Define to 'int' if <sys/types.h> doesn't */   #undef uid_t      /* Define to 'int' if <sys/types.h> doesn't */
pike.git/src/acconfig.h:240:      /* If so, is it restricted to user and system time? */   #undef GETRUSAGE_RESTRICTED      /* Solaris has rusage as an ioctl on procfs */   #undef GETRUSAGE_THROUGH_PROCFS      /* So has True64, but no useful information in prstatus_t */   #undef GETRUSAGE_THROUGH_PROCFS_PRS    - /* Define if you have infnan */ - #undef HAVE_INFNAN -  +    /* Define if you have _isnan */   #undef HAVE__ISNAN    -  + /* Define if you have isfinite */ + #undef HAVE_ISFINITE +    /* Define if you have fork */   #undef HAVE_FORK    - /* Define if you have isspace */ - #undef HAVE_ISSPACE -  +    /* Define if you have fpsetmask */   #undef HAVE_FPSETMASK      /* Define if you have fpsetround */   #undef HAVE_FPSETROUND      /* Define if you have isless */   #undef HAVE_ISLESS      /* Define if you have isunordered */
pike.git/src/acconfig.h:297:      /* Define if you have gethrtime */   #undef HAVE_GETHRTIME      /* Can we make our own gethrtime? */   #undef OWN_GETHRTIME      /* ... by using the RDTSC instruction? */   #undef OWN_GETHRTIME_RDTSC    - /* Define if you have a working, 8-bit-clean memcmp */ - #undef HAVE_MEMCMP -  +    /* Define if it is possible to allocate PROT_EXEC memory with mmap */   #undef MEXEC_USES_MMAP      /* Define if you have gethostname */   #undef HAVE_GETHOSTNAME    - /* Define if you have memmove. */ - #ifndef __CHECKER__ - #undef HAVE_MEMMOVE - #endif -  - /* Define if you have memmem. */ - #undef HAVE_MEMMEM -  - /* Define if you have memset. */ - #undef HAVE_MEMSET -  - /* Define if you have memcpy. */ - #undef HAVE_MEMCPY -  - /* Define if you have strcoll */ - #undef HAVE_STRCOLL -  +    /* Define this if you have dlopen */   #undef HAVE_DLOPEN    - /* Define if you have ldexp. */ - #undef HAVE_LDEXP -  +    /* Define if you have rint. */   #undef HAVE_RINT    - /* Define if you have frexp. */ - #undef HAVE_FREXP -  +    /* Define if your signals are one-shot */   #undef SIGNAL_ONESHOT      /* Define this if eval_instruction gets large on your platform. */   #undef PIKE_SMALL_EVAL_INSTRUCTION    - /* Define if you have gcc-style computed goto, and want to use them. */ - #undef HAVE_COMPUTED_GOTO -  +    /* Define this to use machine code */   #undef PIKE_USE_MACHINE_CODE    -  + /* Define this if NULL ptr is not exactly 0 on your plaform. */ + #undef PIKE_NULL_IS_SPECIAL +    /* Define if you have the RDTSC instruction */   #undef HAVE_RDTSC      /* Define this to one of the available bytecode methods. */   #undef PIKE_BYTECODE_METHOD      /* You have gcc-type function attributes? */   #undef HAVE_FUNCTION_ATTRIBUTES      /* You have cl-type __declspec? */
pike.git/src/acconfig.h:384:   /* How to extract a char and an unsigned char from a char * */   #undef EXTRACT_CHAR_BY_CAST   #undef EXTRACT_UCHAR_BY_CAST      /* Do you have IEEE floats and/or doubles (either big or little endian) ? */   #undef FLOAT_IS_IEEE_BIG   #undef FLOAT_IS_IEEE_LITTLE   #undef DOUBLE_IS_IEEE_BIG   #undef DOUBLE_IS_IEEE_LITTLE    - /* Define this if strtol exists, and doesn't cut at 0x7fffffff */ - #undef HAVE_WORKING_STRTOL -  +    /* The rest of this file is just to eliminate warnings */      /* define if declaration of strchr is missing */   #undef STRCHR_DECL_MISSING      /* define if declaration of malloc is missing */   #undef MALLOC_DECL_MISSING      /* define if declaration of getpeername is missing */   #undef GETPEERNAME_DECL_MISSING
pike.git/src/acconfig.h:422:      /* The byteorder your machine use, most use 4321, PC use 1234 */   #define PIKE_BYTEORDER 0      /* What alignment do pointers need */   #define PIKE_POINTER_ALIGNMENT 4      /* Assembler prefix for general purpose registers */   #undef PIKE_CPU_REG_PREFIX    - /* Number of possible filedesriptors */ - #define MAX_OPEN_FILEDESCRIPTORS 1024 -  +    /* define this if #include <time.h> provides an external int timezone */   #undef HAVE_EXTERNAL_TIMEZONE    -  + /* define this if #include <time.h> provides an external int altzone */ + #undef HAVE_EXTERNAL_ALTZONE +    /* define this if your struct tm has a tm_gmtoff */   #undef STRUCT_TM_HAS_GMTOFF      /* define this if your struct tm has a __tm_gmtoff */   #undef STRUCT_TM_HAS___TM_GMTOFF      /* Define if you have struct timeval */   #undef HAVE_STRUCT_TIMEVAL      /* Define if you have struct sockaddr_in6 */
pike.git/src/acconfig.h:512:      /* Define if you have the pthread_yield_np function. */   #undef HAVE_PTHREAD_YIELD_NP      /* Hack for stupid glibc linuxthreads */   #undef HAVE_PTHREAD_INITIAL_THREAD_BOS      /* Define if your OS has the union wait. */   #undef HAVE_UNION_WAIT    - /* Define if you have isgraph */ - #undef HAVE_ISGRAPH -  +    /* Define if your cpp supports the ANSI concatenation operator ## */   #undef HAVE_ANSI_CONCAT      /* Define if you don't have F_SETFD, or it doesn't work */   #undef HAVE_BROKEN_F_SETFD      /* Define if your thread implementation doesn't propagate euid & egid. */   #undef HAVE_BROKEN_LINUX_THREAD_EUID      /* Define if your cpp supports K&R-style concatenation */
pike.git/src/acconfig.h:560:      /* Define if your compiler has a symbol __func__ */   #undef HAVE_WORKING___FUNC__      /* Define if your compiler has a symbol __FUNCTION__ */   #undef HAVE_WORKING___FUNCTION__      /* The last argument to accept() is an ACCEPT_SIZE_T * */   #define ACCEPT_SIZE_T int    - /* Can we compile in MMX support? */ - #undef TRY_USE_MMX -  +    /* Define if you have the <sys/resource.h> header file. */   #undef HAVE_SYS_RESOURCE_H      /* set this to the modifier type string to print size_t, like "" or "l" */   #undef PRINTSIZET      /* set this to the modifier type string to print ptrdiff_t, like "" or "l" */   #undef PRINTPTRDIFFT      /* set this to the modifier type string to print off_t if that type exists */   #undef PRINTOFFT      /* set this to the modifier type string to print INT64 if that type exists */   #undef PRINTINT64    - /* Define if the compiler understand union initializations. */ - #undef HAVE_UNION_INIT -  +    /* Define when binary --disable-binary is used. */   #undef DISABLE_BINARY      /* Define to the size of the overhead for a malloc'ed block. (Slightly    * too much is better than slightly too little.) */   #undef PIKE_MALLOC_OVERHEAD      /* Define to the page size (handled efficiently by malloc). */   #undef PIKE_MALLOC_PAGE_SIZE   
pike.git/src/acconfig.h:646:   #define HAVE_MALLINFO      #if defined (HAVE_MALLOC_H) && defined (HAVE_STRUCT_MALLINFO)   #include <malloc.h>   #else /* HAVE_MALLOC_H && HAVE_STRUCT_MALLINFO */      #ifndef MALLINFO_FIELD_TYPE   #define MALLINFO_FIELD_TYPE size_t   #endif /* MALLINFO_FIELD_TYPE */    - #ifdef HAVE_STDDEF_H +    /* Needed for size_t. */   #include <stddef.h> - #endif +       /* dlmalloc definition of struct mallinfo. */   struct mallinfo {    MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */    MALLINFO_FIELD_TYPE ordblks; /* number of free chunks */    MALLINFO_FIELD_TYPE smblks; /* always 0 */    MALLINFO_FIELD_TYPE hblks; /* always 0 */    MALLINFO_FIELD_TYPE hblkhd; /* space in mmapped regions */    MALLINFO_FIELD_TYPE usmblks; /* maximum total allocated space */    MALLINFO_FIELD_TYPE fsmblks; /* always 0 */    MALLINFO_FIELD_TYPE uordblks; /* total allocated space */    MALLINFO_FIELD_TYPE fordblks; /* total free space */    MALLINFO_FIELD_TYPE keepcost; /* releasable (via malloc_trim) space */   };      #endif /* HAVE_USR_INCLUDE_MALLOC_H */      #endif      #endif /* MACHINE_H */