e_os.h (100928) | e_os.h (100936) |
---|---|
1/* e_os.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 100 unchanged lines hidden (view full) --- 109/* The following is used becaue of the small stack in some 110 * Microsoft operating systems */ 111#if defined(WIN16) || defined(MSDOS) 112# define MS_STATIC static 113#else 114# define MS_STATIC 115#endif 116 | 1/* e_os.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 100 unchanged lines hidden (view full) --- 109/* The following is used becaue of the small stack in some 110 * Microsoft operating systems */ 111#if defined(WIN16) || defined(MSDOS) 112# define MS_STATIC static 113#else 114# define MS_STATIC 115#endif 116 |
117#if defined(_WIN32) && !defined(WIN32) && !defined(__CYGWIN32__) | 117#if defined(_WIN32) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_UWIN) |
118# define WIN32 119#endif 120 | 118# define WIN32 119#endif 120 |
121#if (defined(WIN32) || defined(WIN16)) && !defined(__CYGWIN32__) | 121#if (defined(WIN32) || defined(WIN16)) && !defined(__CYGWIN32__) && !defined(_UWIN) |
122# ifndef WINDOWS 123# define WINDOWS 124# endif 125# ifndef MSDOS 126# define MSDOS 127# endif 128#endif 129 --- 7 unchanged lines hidden (view full) --- 137#if !defined(WINNT) 138#define WIN_CONSOLE_BUG 139#endif 140#else 141#define get_last_sys_error() errno 142#define clear_sys_error() errno=0 143#endif 144 | 122# ifndef WINDOWS 123# define WINDOWS 124# endif 125# ifndef MSDOS 126# define MSDOS 127# endif 128#endif 129 --- 7 unchanged lines hidden (view full) --- 137#if !defined(WINNT) 138#define WIN_CONSOLE_BUG 139#endif 140#else 141#define get_last_sys_error() errno 142#define clear_sys_error() errno=0 143#endif 144 |
145#if defined(WINDOWS) && !defined(__CYGWIN32__) | 145#if defined(WINDOWS) && !defined(__CYGWIN32__) && !defined(_UWIN) 146 |
146#define get_last_socket_error() WSAGetLastError() 147#define clear_socket_error() WSASetLastError(0) 148#define readsocket(s,b,n) recv((s),(b),(n),0) 149#define writesocket(s,b,n) send((s),(b),(n),0) 150#define EADDRINUSE WSAEADDRINUSE 151#elif defined(MAC_OS_pre_X) 152#define get_last_socket_error() errno 153#define clear_socket_error() errno=0 --- 24 unchanged lines hidden (view full) --- 178# define MS_CALLBACK 179# define MS_FAR 180#endif 181 182#ifdef NO_STDIO 183# define NO_FP_API 184#endif 185 | 147#define get_last_socket_error() WSAGetLastError() 148#define clear_socket_error() WSASetLastError(0) 149#define readsocket(s,b,n) recv((s),(b),(n),0) 150#define writesocket(s,b,n) send((s),(b),(n),0) 151#define EADDRINUSE WSAEADDRINUSE 152#elif defined(MAC_OS_pre_X) 153#define get_last_socket_error() errno 154#define clear_socket_error() errno=0 --- 24 unchanged lines hidden (view full) --- 179# define MS_CALLBACK 180# define MS_FAR 181#endif 182 183#ifdef NO_STDIO 184# define NO_FP_API 185#endif 186 |
186#if (defined(WINDOWS) || defined(MSDOS)) && !defined(__CYGWIN32__) | 187#if (defined(WINDOWS) || defined(MSDOS)) && !defined(__CYGWIN32__) && !defined(_UWIN) |
187 188# ifndef S_IFDIR 189# define S_IFDIR _S_IFDIR 190# endif 191 192# ifndef S_IFMT 193# define S_IFMT _S_IFMT 194# endif --- 290 unchanged lines hidden --- | 188 189# ifndef S_IFDIR 190# define S_IFDIR _S_IFDIR 191# endif 192 193# ifndef S_IFMT 194# define S_IFMT _S_IFMT 195# endif --- 290 unchanged lines hidden --- |