X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=e_os.h;h=e76fb43a4d45a7c7515d9f59c7ebe0a8bd736c29;hp=1db29f601cdbd7657adda3ca338b654557d44ebb;hb=4cff10dcbfbd979d1557cc8b7e3fa2f19525deb0;hpb=0e97f1e1a7f43be3a5e5c6256fe6bcb90caf9e01 diff --git a/e_os.h b/e_os.h index 1db29f601c..e76fb43a4d 100644 --- a/e_os.h +++ b/e_os.h @@ -10,6 +10,7 @@ #ifndef HEADER_E_OS_H # define HEADER_E_OS_H +# include # include # include @@ -25,13 +26,6 @@ extern "C" { #endif -/* Used to checking reference counts, most while doing perl5 stuff :-) */ -# if defined(OPENSSL_NO_STDIO) -# if defined(REF_PRINT) -# error "REF_PRINT requires stdio" -# endif -# endif - /* * Format specifier for printing size_t. Original conundrum was to * get it working with -Wformat [-Werror], which can be considered @@ -59,21 +53,6 @@ extern "C" { * stand for in ILP32 and LP64 */ # endif -# if !defined(NDEBUG) && !defined(OPENSSL_NO_STDIO) -# define REF_ASSERT_ISNT(test) \ - (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0) -# else -# define REF_ASSERT_ISNT(i) -# endif -# ifdef REF_PRINT -# define REF_PRINT_COUNT(a, b) \ - fprintf(stderr, "%p:%4d:%s\n", b, b->references, a) -# else -# define REF_PRINT_COUNT(a, b) -# endif - -# define OPENSSL_CONF "openssl.cnf" - # ifndef DEVRANDOM /* * set this to a comma-separated list of 'random' device files to try out. By @@ -91,7 +70,6 @@ extern "C" { # endif # if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI) -# define NO_SYS_PARAM_H # define NO_CHMOD # define NO_SYSLOG # endif @@ -113,7 +91,6 @@ extern "C" { # endif # ifdef WIN32 -# define NO_SYS_UN_H # undef get_last_sys_error # undef clear_sys_error # define get_last_sys_error() GetLastError() @@ -129,10 +106,6 @@ extern "C" { # ifdef __DJGPP__ # include # include -# include -# include -# include -# include # define _setmode setmode # define _O_TEXT O_TEXT # define _O_BINARY O_BINARY @@ -153,7 +126,6 @@ extern "C" { # if !defined(WINNT) && !defined(__DJGPP__) # define NO_SYSLOG # endif -# define NO_DIRENT # ifdef WINDOWS # if !defined(_WIN32_WCE) && !defined(_WIN32_WINNT) @@ -203,14 +175,6 @@ static __inline unsigned int _strlen31(const char *str) } # endif # include -# if defined(_MSC_VER) && _MSC_VER<=1200 && defined(_MT) && defined(isspace) - /* compensate for bug in VC6 ctype.h */ -# undef isspace -# undef isdigit -# undef isalnum -# undef isupper -# undef isxdigit -# endif # if defined(_MSC_VER) && !defined(_WIN32_WCE) && !defined(_DLL) && defined(stdin) # if _MSC_VER>=1300 && _MSC_VER<1600 # undef stdin @@ -270,6 +234,12 @@ extern FILE *_imp___iob; # else /* The non-microsoft world */ +# if defined(OPENSSL_SYS_VXWORKS) +# include +# else +# include +# endif + # ifdef OPENSSL_SYS_VMS # define VMS 1 /* @@ -311,9 +281,6 @@ extern FILE *_imp___iob; */ # define EXIT(n) exit((n) ? (((n) << 3) | 2 | 0x10000000 | 0x35a000) : 1) -# define NO_SYS_PARAM_H -# define NO_SYS_UN_H - # define DEFAULT_HOME "SYS$LOGIN:" # else @@ -323,9 +290,7 @@ extern FILE *_imp___iob; # else # include # endif -# ifndef NO_SYS_TYPES_H -# include -# endif +# include # ifdef OPENSSL_SYS_WIN32_CYGWIN # include # include