// @{ /** @addtogroup YAPOS */ /* * In this routine we shall try to include the inevitably machine dependant * routines. These include, for the moment : Time, A rudimentary form of * signal handling, OS calls, * * Vitor Santos Costa, February 1987 * */ #include "config.h" #if _WIN32 || defined(__MINGW32__) #if !defined(MINGW_HAS_SECURE_API) #define MINGW_HAS_SECURE_API 1 #endif //#undef _POSIX_ #endif #include "Yap.h" #include "YapHeap.h" #include "YapText.h" #include "Yatom.h" #include "eval.h" #include "yapio.h" // Win32 InputOutput Support #if _WIN32 || defined(__MINGW32__) #include /* Windows */ #include "Shlwapi.h" #include #include #include #ifndef S_ISDIR #define S_ISDIR(x) (((x)&_S_IFDIR) == _S_IFDIR) #endif #endif #ifdef HAVE_UNISTD_H #include #endif #if HAVE_STDARG_H #include #endif #include #if HAVE_SYS_PARAM_Hb #include #endif #if HAVE_STDARG_H #include #endif #if HAVE_CTYPE_H #include #endif #if HAVE_SYS_PARAMS_H #include #endif #if HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #if HAVE_SYS_SELECT_H && !_MSC_VER && !defined(__MINGW32__) #include #endif #if HAVE_STRING_H #include #endif #if HAVE_LIBGEN_H #include #endif #if HAVE_WCTYPE_H #include #endif #if HAVE_LIMITS_H #include #endif #if HAVE_ERRNO_H #include #endif #if HAVE_FCNTL_H #include #endif #if !HAVE_STRNCAT #define strncat(X, Y, Z) strcat(X, Y) #endif #if !HAVE_STRNCPY #define strncpy(X, Y, Z) strcpy(X, Y) #endif #include "iopreds.h" #if HAVE_SIGNAL_H #include #endif #ifdef HAVE_ERRNO_H #include #endif /* CYGWIN seems to include this automatically */ #if HAVE_FENV_H // && !defined(__CYGWIN__) #include #endif #ifdef MPW #define signal sigset #endif /* windows.h does not like absmi.h, this should fix it for now */ #include #if HAVE_SYS_TIME_H && !_MSC_VER #include #endif #if HAVE_UNISTD_H #include #endif #if HAVE_SYS_WAIT_H && !defined(__MINGW32__) && !_MSC_VER #include #endif #if HAVE_STRING_H #include #endif #if HAVE_GETPWNAM #include #endif #include #if HAVE_SYS_STAT_H #include #endif #if HAVE_SYS_TYPES_H #include #endif #if HAVE_FCNTL_H #include #endif #if HAVE_WORDEXP_H #include #endif #if HAVE_GLOB_H #include #endif #if HAVE_LIBGEN_H #include #endif #if defined(HAVE_READLINE_READLINE_H) #include #endif void Yap_InitRandom(void); void Yap_InitTime(int wid); void Yap_InitOSSignals(int wid); void Yap_InitWTime(void);