e576bb2002-10-11Martin Nilsson /* || 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. */
1b10db2002-10-08Martin Nilsson 
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #ifndef MACHINE_H #define MACHINE_H
eefb042004-12-29Marcus Agehall /* Building as a library? */ #undef LIBPIKE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Where's the master.pike file installed? */ #define DEFAULT_MASTER "@prefix@/lib/pike/master.pike" /* Define this if you want run time self tests */
71f3a21998-11-22Fredrik Hübinette (Hubbe) #undef PIKE_DEBUG
fda9ae1997-01-28Fredrik Hübinette (Hubbe) 
87eacc2005-02-04Henrik Grubbström (Grubba) /* Define this if you want some extra (possibly verbose) run time self tests */ #undef PIKE_EXTRA_DEBUG
343c592004-03-16Martin Stjernholm /* Define to make Pike do a full cleanup at exit to detect leaks. */ #undef DO_PIKE_CLEANUP
37e9f12002-11-19Henrik Grubbström (Grubba) /* Define this if you want pike to interact with valgrind. */ #undef USE_VALGRIND
cf84342011-05-19Jonas Walldén /* Define this to embed DTrace probes */ #undef USE_DTRACE
106aca1999-02-06Henrik Grubbström (Grubba) /* Define this if you are going to use a memory access checker (like Purify) */ #undef __CHECKER__
8f797a2006-08-05Martin Stjernholm /* Defined if Doug Leas malloc implementation is used. */ #undef USE_DL_MALLOC
61e9a01998-01-25Fredrik Hübinette (Hubbe) /* Define this if you want malloc debugging */ #undef DEBUG_MALLOC
e9670c2001-01-30Fredrik Hübinette (Hubbe) /* Define this if you want checkpoints */ #undef DMALLOC_TRACE
5bfd382008-09-03Henrik Grubbström (Grubba) /* Define this if you want backtraces for C code in your dmalloc output. */ #undef DMALLOC_C_STACK_TRACE
000aab2004-10-22Henrik Grubbström (Grubba) /* Define this if you want dmalloc to keep track of freed memory. */ #undef DMALLOC_TRACK_FREE
f6b9e52001-03-12Fredrik Hübinette (Hubbe) /* 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
859fc32014-01-06Henrik Grubbström (Grubba) /* Define this to simulate dynamic module loading with static modules. */ #undef USE_SEMIDYNAMIC_MODULES
df9b622001-05-27Henrik Grubbström (Grubba) /* Define this to use the new keypair loop. */ #undef PIKE_MAPPING_KEYPAIR_LOOP
fdcf1c2002-10-04Henrik Grubbström (Grubba) /* Enable profiling */ #undef PROFILING /* Enable internal profiling */ #undef INTERNAL_PROFILING
2cbc492017-02-21Martin Karlgren /* Enable machine code stack frames */ #undef MACHINE_CODE_STACK_FRAMES
42de022005-10-13Martin Stjernholm /* If possible, the expansion for a "#define short" to avoid that bison * uses short everywhere internally. */ #undef BISON_SHORT_EXPANSION
b5c6f42000-10-28Henrik Grubbström (Grubba) /* The following USE_* are used by smartlink */
d1e3fe1999-03-06Henrik Grubbström (Grubba) /* 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
2d3c2b2000-06-16Henrik Grubbström (Grubba) /* Define this if your ld sets the run path with -YP, */ #undef USE_YP_
b5c6f42000-10-28Henrik Grubbström (Grubba) /* Define this if your ld sets the run path with +b */ #undef USE_PLUS_b
d1e3fe1999-03-06Henrik Grubbström (Grubba) /* Define this if your ld uses -rpath, but your cc wants -Wl,-rpath, */ #undef USE_Wl
ed245f2017-08-04William Welliver /* Define this if your ld uses Darwin-style -rpath, but your cc wants -Wl,-rpath, */ #undef USE_Wl_rpath_darwin
69e31d1999-05-12Henrik Grubbström (Grubba) /* Define this if your ld uses -R, but your cc wants -Wl,-R */ #undef USE_Wl_R
d4fc872003-01-16David Hedbor /* Define this if your ld uses -rpath, but your cc -Qoption,ld,-rpath (icc) */ #undef USE_Qoption
2d3c2b2000-06-16Henrik Grubbström (Grubba) /* Define this if your ld uses -YP, , but your cc wants -Xlinker -YP, */ #undef USE_XLINKER_YP_
d1e3fe1999-03-06Henrik Grubbström (Grubba) /* Define this if your ld doesn't have an option to set the run path */ #undef USE_LD_LIBRARY_PATH
5c9e1d2008-08-19Jonas Wallden /* Define this on OS X to get two-level namespace support in ld */ #undef USE_OSX_TWOLEVEL_NAMESPACE
fdcf1c2002-10-04Henrik Grubbström (Grubba) @TOP@ /* Define this if your compiler attempts to use _chkstk, but libc contains * __chkstk. */ #undef HAVE_BROKEN_CHKSTK
a8a8132002-09-13Martin Stjernholm 
2eb8ce2018-04-30Henrik Grubbström (Grubba) /* 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. */
70f06d2018-04-23Henrik Grubbström (Grubba) #undef HAVE_WORKING_GETCWD
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define for solaris */ #undef SOLARIS /* Define if the closedir function returns void instead of int. */ #undef VOID_CLOSEDIR
2b48562018-04-23Henrik Grubbström (Grubba) /* Number of args to mkdir() */ #define MKDIR_ARGS 2
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define to 'int' if <sys/time.h> doesn't */ #undef time_t
550b7f1999-07-08Fredrik Hübinette (Hubbe) /* Define to 'short' if <sys/types.h> doesn't */ #undef pri_t
1e577b1999-07-15Fredrik Hübinette (Hubbe) /* Define to 'int' if <sys/types.h> doesn't */ #undef uid_t /* Define to 'int' if <sys/types.h> doesn't */ #undef gid_t /* Define to 'int' if <sys/types.h> doesn't */ #undef pid_t
eecf6b2000-06-29Henrik Grubbström (Grubba) /* Define to 'unsigned long' if <sys/types.h> or <stddef.h> doesn't */
1e577b1999-07-15Fredrik Hübinette (Hubbe) #undef size_t
eecf6b2000-06-29Henrik Grubbström (Grubba) /* Define to 'long' if <sys/types.h> of <stddef.h> doesn't */ #undef ptrdiff_t
1e577b1999-07-15Fredrik Hübinette (Hubbe) /* Define to 'long' if <sys/types.h> doesn't */ #undef off_t
61d3cf1998-02-27Marcus Comstedt /* Define to 'int' if <signal.h> doesn't */ #undef sig_atomic_t
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define as the return type of signal handlers (int or void). */ #undef RETSIGTYPE
71b44e1998-06-05Fredrik Hübinette (Hubbe) /* define this if igonoring SIGFPE helps with core dumps */ #undef IGNORE_SIGFPE
ad7f211999-12-05Mirar (Pontus Hagland) /* define if you want to use double precision floats instead of single */ #undef WITH_DOUBLE_PRECISION_SVALUE /* define if you want to use long double precision floats */ #undef WITH_LONG_DOUBLE_PRECISION_SVALUE
3c6eaa2002-04-12Martin Stjernholm /* define to the type of pike floats */ #undef FLOAT_TYPE /* define to the size of pike floats */ #undef SIZEOF_FLOAT_TYPE
b875ff2001-03-04Mirar (Pontus Hagland) /* force this type upon ints */ #undef WITH_LONG_INT #undef WITH_LONG_LONG_INT #undef WITH_INT_INT
3c6eaa2002-04-12Martin Stjernholm /* define to the type of pike primitive ints */ #undef INT_TYPE /* define to the size of pike primitive ints */ #undef SIZEOF_INT_TYPE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* If using the C implementation of alloca, define if you know the
83591e1998-09-05Henrik Grubbström (Grubba)  * direction of stack growth for your system; otherwise it will be * automatically deduced at run-time. * STACK_DIRECTION > 0 => grows toward higher addresses * STACK_DIRECTION < 0 => grows toward lower addresses * STACK_DIRECTION = 0 => direction of growth unknown * * Also used by Pike's runtime C-stack checker.
fda9ae1997-01-28Fredrik Hübinette (Hubbe)  */ #undef STACK_DIRECTION
fcf0732000-03-28Fredrik Hübinette (Hubbe) /* Define this to the number of KB in the initial stack, * currently this is 1 Mb on FreeBSD, 2Mb on Linux and * unlimited (undefined) everywhere else */ #undef Pike_INITIAL_STACK_SIZE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* 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
76aa1f2000-03-25Fredrik Hübinette (Hubbe) /* So has True64, but no useful information in prstatus_t */ #undef GETRUSAGE_THROUGH_PROCFS_PRS
8c5a892001-06-12Henrik Grubbström (Grubba) /* Define if you have _isnan */ #undef HAVE__ISNAN
2cb2892015-07-23Jonas Walldén /* Define if you have isfinite */ #undef HAVE_ISFINITE
05030b1998-11-18Marcus Comstedt /* Define if you have fork */ #undef HAVE_FORK
e261f01998-07-22Fredrik Hübinette (Hubbe) /* Define if you have fpsetmask */ #undef HAVE_FPSETMASK
9ef1ee2000-03-28Henrik Grubbström (Grubba) /* Define if you have fpsetround */ #undef HAVE_FPSETROUND
e1184f2001-01-24Marcus Comstedt /* Define if you have isless */ #undef HAVE_ISLESS
5d4cf62004-01-12Marcus Comstedt /* Define if you have isunordered */
4a141f2004-01-12Marcus Comstedt #undef HAVE_ISUNORDERED
5d4cf62004-01-12Marcus Comstedt 
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if you have crypt. */ #undef HAVE_CRYPT
83591e1998-09-05Henrik Grubbström (Grubba) /* Define if you have ualarm. */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef HAVE_UALARM
4499d52003-03-06Henrik Grubbström (Grubba) /* Define if your ualarm takes two args. */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef UALARM_TAKES_TWO_ARGS
4499d52003-03-06Henrik Grubbström (Grubba) /* Define if your ptrace takes four args. */ #undef PTRACE_TAKES_FOUR_ARGS
d574b82003-03-27Henrik Grubbström (Grubba) /* Define if argument 3 to ptrace is a pointer type. */ #undef PTRACE_ADDR_TYPE_IS_POINTER
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if gettimeofday takes to arguments */ #undef GETTIMEOFDAY_TAKES_TWO_ARGS
87076a2003-02-24Henrik Grubbström (Grubba) /* Define if realloc(NULL, SZ) works. */ #undef HAVE_WORKING_REALLOC_NULL
025dd32003-02-11Martin Stjernholm /* Define if gethrvtime works (i.e. even without ptime). */ #undef HAVE_WORKING_GETHRVTIME
bbc16c2000-08-29Mirar (Pontus Hagland) /* 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
569a8b2005-05-30Henrik Grubbström (Grubba) /* Define if it is possible to allocate PROT_EXEC memory with mmap */ #undef MEXEC_USES_MMAP
9649491998-02-27Fredrik Hübinette (Hubbe) /* Define if you have gethostname */ #undef HAVE_GETHOSTNAME
de16081997-06-03Fredrik Hübinette (Hubbe) /* Define this if you have dlopen */ #undef HAVE_DLOPEN
de263c2017-04-22Henrik Grubbström (Grubba) /* Define if you have rint. */ #undef HAVE_RINT
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if your signals are one-shot */ #undef SIGNAL_ONESHOT
d7a0b22004-10-21Henrik Grubbström (Grubba) /* Define this if eval_instruction gets large on your platform. */ #undef PIKE_SMALL_EVAL_INSTRUCTION
f822262001-07-16Fredrik Hübinette (Hubbe) /* Define this to use machine code */ #undef PIKE_USE_MACHINE_CODE
6311e92017-07-01Tobias S. Josefowitz /* Define this if NULL ptr is not exactly 0 on your plaform. */ #undef PIKE_NULL_IS_SPECIAL
2cf5272010-10-17Artur Skawina /* Define if you have the RDTSC instruction */ #undef HAVE_RDTSC
ef6d662002-04-07Martin Stjernholm /* Define this to one of the available bytecode methods. */ #undef PIKE_BYTECODE_METHOD
2e89072000-08-21Henrik Grubbström (Grubba) /* You have gcc-type function attributes? */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef HAVE_FUNCTION_ATTRIBUTES
7e2ee22001-07-08Henrik Grubbström (Grubba) /* You have cl-type __declspec? */
2e89072000-08-21Henrik Grubbström (Grubba) #undef HAVE_DECLSPEC
46a4ce2004-11-09Henrik Grubbström (Grubba) /* Your va_list is a state pointer? */ #undef VA_LIST_IS_STATE_PTR
f6249c2008-03-29Martin Stjernholm /* Defined if va_copy exists in stdarg.h. */ #undef HAVE_VA_COPY
4ff8002004-03-12Henrik Grubbström (Grubba) /* Does your compiler grock 'volatile' */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #define VOLATILE volatile
4ff8002004-03-12Henrik Grubbström (Grubba) /* Define to empty if your compiler doesn't support C99's restrict keyword. */ #undef restrict
6a2ad71999-04-25Henrik Grubbström (Grubba) /* Define this if your compiler doesn't allow cast of void * to function pointer */ #undef NO_CAST_TO_FUN
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* How to extract a char and an unsigned char from a char * */ #undef EXTRACT_CHAR_BY_CAST #undef EXTRACT_UCHAR_BY_CAST
5ff14f1998-05-25Marcus Comstedt /* 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
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* 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 /* define if declaration of gethostname is missing */ #undef GETHOSTNAME_DECL_MISSING /* define if declaration of popen is missing */ #undef POPEN_DECL_MISSING /* define if declaration of getenv is missing */ #undef GETENV_DECL_MISSING
17a0802000-08-20Henrik Grubbström (Grubba) /* define if you are using crypt.c. */ #undef USE_CRYPT_C
5027721998-01-08Fredrik Hübinette (Hubbe) /* Define if we can declare 'extern char **environ' */ #undef DECLARE_ENVIRON
a8a8132002-09-13Martin Stjernholm /* The byteorder your machine use, most use 4321, PC use 1234 */
71f3a21998-11-22Fredrik Hübinette (Hubbe) #define PIKE_BYTEORDER 0
fda9ae1997-01-28Fredrik Hübinette (Hubbe) 
b2d7f32003-10-30Henrik Grubbström (Grubba) /* What alignment do pointers need */ #define PIKE_POINTER_ALIGNMENT 4
6a36472000-12-19Marcus Comstedt 
7a64042001-08-15Marcus Comstedt /* Assembler prefix for general purpose registers */ #undef PIKE_CPU_REG_PREFIX
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* define this if #include <time.h> provides an external int timezone */ #undef HAVE_EXTERNAL_TIMEZONE
8ea5872018-04-03Henrik Grubbström (Grubba) /* define this if #include <time.h> provides an external int altzone */ #undef HAVE_EXTERNAL_ALTZONE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* define this if your struct tm has a tm_gmtoff */ #undef STRUCT_TM_HAS_GMTOFF
4b2ccc2002-03-21Henrik Grubbström (Grubba) /* define this if your struct tm has a __tm_gmtoff */ #undef STRUCT_TM_HAS___TM_GMTOFF
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if you have struct timeval */ #undef HAVE_STRUCT_TIMEVAL
486dbe2003-04-23Marcus Comstedt /* Define if you have struct sockaddr_in6 */ #undef HAVE_STRUCT_SOCKADDR_IN6
6cbfe42009-03-17Henrik Grubbström (Grubba) /* Define this if you have a struct iovec */ #undef HAVE_STRUCT_IOVEC /* Define this if you have a struct msghdr */ #undef HAVE_STRUCT_MSGHDR /* Define this if you have a struct msghdr with 'msg_control' member */ #undef HAVE_STRUCT_MSGHDR_MSG_CONTROL /* Define this if you have a struct msghdr with 'msg_accrights' member */ #undef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS
4eac6b2006-06-28Martin Stjernholm /* Define this to the max value of an unsigned short unless <limits.h> does.. */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef USHRT_MAX /* Define these if you are going to use threads */
53ffab1999-08-10Martin Stjernholm #undef PIKE_THREADS
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef _REENTRANT #undef _THREAD_SAFE /* Define this if you want the UNIX taste of threads */ #undef _UNIX_THREADS /* Define this if you want the POSIX taste of threads */ #undef _MIT_POSIX_THREADS /* Define this if you want the SGI sproc taste of threads */ #undef _SGI_SPROC_THREADS
c1d2c71997-01-31Fredrik Hübinette (Hubbe) #undef _SGI_MP_SOURCE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) 
b1f4eb1998-01-13Fredrik Hübinette (Hubbe) /* Define this if you have Windows NT threads */ #undef NT_THREADS
4eac6b2006-06-28Martin Stjernholm /* Use DDLs for dynamically linked modules on NT. */ #undef USE_DLL
40fb6d2003-01-05Henrik Grubbström (Grubba) /* Define this if your THREAD_T type is a pointer type. */ #undef PIKE_THREAD_T_IS_POINTER
01185d2003-04-01Martin Stjernholm /* Define to the flag to get an error checking mutex, if supported. */ #undef PIKE_MUTEX_ERRORCHECK
5377b91997-02-01Henrik Grubbström (Grubba) 
01185d2003-04-01Martin Stjernholm /* Define to the flag to get a recursive mutex, if supported. */ #undef PIKE_MUTEX_RECURSIVE
a3c9a72000-10-13Fredrik Hübinette (Hubbe) 
01185d2003-04-01Martin Stjernholm /* Define this if your pthreads have pthread_condattr_default */ #undef HAVE_PTHREAD_CONDATTR_DEFAULT
a3c9a72000-10-13Fredrik Hübinette (Hubbe) 
3bd5ab1998-08-31Henrik Grubbström (Grubba) /* Define this if you need to use &pthread_condattr_default in cond_init() */ #undef HAVE_PTHREAD_CONDATTR_DEFAULT_AIX
c7117f1997-04-10Fredrik Hübinette (Hubbe) /* Define if you have the pthread_attr_setstacksize function. */ #undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
71ac9e1999-08-29Fredrik Hübinette (Hubbe) /* Define if you have the pthread_atfork function. */ #undef HAVE_PTHREAD_ATFORK
c7117f1997-04-10Fredrik Hübinette (Hubbe) /* Define if you have the pthread_cond_init function. */ #undef HAVE_PTHREAD_COND_INIT /* Define if you have the pthread_yield function. */ #undef HAVE_PTHREAD_YIELD
a5259a2003-11-25Jonas Wallden /* Define if you have the pthread_yield_np function. */ #undef HAVE_PTHREAD_YIELD_NP
752e101999-04-30Fredrik Hübinette (Hubbe) /* Hack for stupid glibc linuxthreads */ #undef HAVE_PTHREAD_INITIAL_THREAD_BOS
bd775d1998-05-17Henrik Grubbström (Grubba) /* Define if your OS has the union wait. */ #undef HAVE_UNION_WAIT
cf3ba01997-09-12Henrik Grubbström (Grubba) /* Define if your cpp supports the ANSI concatenation operator ## */ #undef HAVE_ANSI_CONCAT
5539c51998-06-08Henrik Grubbström (Grubba) /* Define if you don't have F_SETFD, or it doesn't work */ #undef HAVE_BROKEN_F_SETFD
4bfe262000-05-20Henrik Grubbström (Grubba) /* Define if your thread implementation doesn't propagate euid & egid. */ #undef HAVE_BROKEN_LINUX_THREAD_EUID
cf3ba01997-09-12Henrik Grubbström (Grubba) /* Define if your cpp supports K&R-style concatenation */ #undef HAVE_KR_CONCAT
9649491998-02-27Fredrik Hübinette (Hubbe) /* Use poll() instead of select() ? */ #undef HAVE_AND_USE_POLL
1846722004-02-04Henrik Grubbström (Grubba) /* Enable use of /dev/epoll on Linux. */ #undef WITH_EPOLL
a05b632004-03-10Henrik Grubbström (Grubba) /* Define to the poll device (eg "/dev/poll") */ #undef PIKE_POLL_DEVICE
d561d61999-03-07Fredrik Hübinette (Hubbe) /* This works on Solaris or any UNIX where * waitpid can report ECHILD when running more than one at once * (or any UNIX where waitpid actually works) */ #undef USE_WAIT_THREAD /* This works on Linux or any UNIX where * waitpid works or where threads and signals bugs in * less annoying ways than Solaris. */ #undef USE_SIGCHILD
e0212b1998-04-13Henrik Grubbström (Grubba) /* Enable tracing of the compiler */ #undef YYDEBUG
6ba8441998-07-11Henrik Grubbström (Grubba) /* Define if your compiler has a symbol __func__ */ #undef HAVE_WORKING___FUNC__ /* Define if your compiler has a symbol __FUNCTION__ */ #undef HAVE_WORKING___FUNCTION__
5f4f991998-08-07Henrik Grubbström (Grubba) /* The last argument to accept() is an ACCEPT_SIZE_T * */ #define ACCEPT_SIZE_T int
7cccc52000-12-27Mirar (Pontus Hagland) /* Define if you have the <sys/resource.h> header file. */ #undef HAVE_SYS_RESOURCE_H
de9dbe2001-07-01Martin Stjernholm /* 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
e170f12006-07-05Martin Stjernholm /* set this to the modifier type string to print off_t if that type exists */ #undef PRINTOFFT
fcb4c12003-02-14Martin Stjernholm /* set this to the modifier type string to print INT64 if that type exists */ #undef PRINTINT64
5c9db42002-01-27Martin Stjernholm /* Define when binary --disable-binary is used. */ #undef DISABLE_BINARY
38c2d62002-11-24Martin Stjernholm /* 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
247f732007-06-10Martin Stjernholm /* PIKE_YES if the number reported by fallback_get_cpu_time (rusage.c) * is thread local, PIKE_NO if it isn't, PIKE_UNKNOWN if it couldn't * be established. */ #undef FB_CPU_TIME_IS_THREAD_LOCAL
83b1842003-02-08Martin Stjernholm 
fda9ae1997-01-28Fredrik Hübinette (Hubbe) @BOTTOM@
5da06f2003-06-26Tomas Nilsson /* Define to the size of the c-stack for new threads */ #undef PIKE_THREAD_C_STACK_SIZE
9649491998-02-27Fredrik Hübinette (Hubbe) /* NT stuff */ #undef HAVE_GETSYSTEMTIMEASFILETIME #undef HAVE_LOADLIBRARY #undef HAVE_FREELIBRARY #undef HAVE_GETPROCADDRESS #undef DL_EXPORT
9b15e02000-12-22Fredrik Hübinette (Hubbe) #undef USE_MY_WIN32_DLOPEN
9649491998-02-27Fredrik Hübinette (Hubbe) 
e1aa662002-09-03Henrik Grubbström (Grubba) /* CygWin kludge. */ #if defined(HAVE_UNISTD_H) && defined(HAVE_WINDOWS_H) #undef HAVE_WINDOWS_H #undef HAVE_WINBASE_H #undef HAVE_WINSOCK_H #undef HAVE_WINSOCK2_H
82f4752002-10-04Xavier Beaudouin #undef HAVE_FD_FLOCK
e1aa662002-09-03Henrik Grubbström (Grubba) #endif /* HAVE_SYS_UNISTD_H && HAVE_WINDOWS_H */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* How to set a socket non-blocking */ #undef USE_IOCTL_FIONBIO
bdfb861997-12-22Fredrik Hübinette (Hubbe) #undef USE_IOCTLSOCKET_FIONBIO
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef USE_FCNTL_O_NDELAY #undef USE_FCNTL_FNDELAY #undef USE_FCNTL_O_NONBLOCK
29c1832001-02-02Fredrik Hübinette (Hubbe) /* How well is OOB TCP working? * -1 = unknown * 0 = doesn't seem to be working at all * 1 = very limited functionality * 2 = should be working as long as you are cautious * 3 = works excellently */ #define PIKE_OOB_WORKS -1
16e0492012-03-08Henrik Grubbström (Grubba) /* dlmalloc has mallinfo. */ #if defined(USE_DL_MALLOC) && !defined(HAVE_MALLINFO) #define HAVE_MALLINFO
de507e2012-03-14Henrik Grubbström (Grubba)  #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 */
bcc15b2012-03-14Henrik Grubbström (Grubba) /* Needed for size_t. */ #include <stddef.h>
de507e2012-03-14Henrik Grubbström (Grubba) /* 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 */
16e0492012-03-08Henrik Grubbström (Grubba) #endif
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #endif /* MACHINE_H */