e_os.h (89837) | e_os.h (100928) |
---|---|
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 * --- 68 unchanged lines hidden (view full) --- 77#endif 78 79#ifndef DEVRANDOM 80/* set this to your 'random' device if you have one. 81 * My default, we will try to read this file */ 82#define DEVRANDOM "/dev/urandom" 83#endif 84 | 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 * --- 68 unchanged lines hidden (view full) --- 77#endif 78 79#ifndef DEVRANDOM 80/* set this to your 'random' device if you have one. 81 * My default, we will try to read this file */ 82#define DEVRANDOM "/dev/urandom" 83#endif 84 |
85#if defined(VXWORKS) 86# define NO_SYS_PARAM_H 87# define NO_CHMOD 88# define NO_SYSLOG 89#endif 90 |
|
85#if defined(__MWERKS__) && defined(macintosh) 86# if macintosh==1 87# ifndef MAC_OS_GUSI_SOURCE 88# define MAC_OS_pre_X 89# define NO_SYS_TYPES_H 90 typedef long ssize_t; 91# endif 92# define NO_SYS_PARAM_H --- 50 unchanged lines hidden (view full) --- 143#define writesocket(s,b,n) send((s),(b),(n),0) 144#define EADDRINUSE WSAEADDRINUSE 145#elif defined(MAC_OS_pre_X) 146#define get_last_socket_error() errno 147#define clear_socket_error() errno=0 148#define closesocket(s) MacSocket_close(s) 149#define readsocket(s,b,n) MacSocket_recv((s),(b),(n),true) 150#define writesocket(s,b,n) MacSocket_send((s),(b),(n)) | 91#if defined(__MWERKS__) && defined(macintosh) 92# if macintosh==1 93# ifndef MAC_OS_GUSI_SOURCE 94# define MAC_OS_pre_X 95# define NO_SYS_TYPES_H 96 typedef long ssize_t; 97# endif 98# define NO_SYS_PARAM_H --- 50 unchanged lines hidden (view full) --- 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 154#define closesocket(s) MacSocket_close(s) 155#define readsocket(s,b,n) MacSocket_recv((s),(b),(n),true) 156#define writesocket(s,b,n) MacSocket_send((s),(b),(n)) |
157#elif defined(VMS) 158#define get_last_socket_error() errno 159#define clear_socket_error() errno=0 160#define ioctlsocket(a,b,c) ioctl(a,b,c) 161#define closesocket(s) close(s) 162#define readsocket(s,b,n) recv((s),(b),(n),0) 163#define writesocket(s,b,n) send((s),(b),(n),0) |
|
151#else 152#define get_last_socket_error() errno 153#define clear_socket_error() errno=0 154#define ioctlsocket(a,b,c) ioctl(a,b,c) 155#define closesocket(s) close(s) 156#define readsocket(s,b,n) read((s),(b),(n)) 157#define writesocket(s,b,n) write((s),(b),(n)) 158#endif --- 184 unchanged lines hidden (view full) --- 343# define SHUTDOWN(fd) MacSocket_close(fd) 344# define SHUTDOWN2(fd) MacSocket_close(fd) 345 346# else 347 348# ifndef NO_SYS_PARAM_H 349# include <sys/param.h> 350# endif | 164#else 165#define get_last_socket_error() errno 166#define clear_socket_error() errno=0 167#define ioctlsocket(a,b,c) ioctl(a,b,c) 168#define closesocket(s) close(s) 169#define readsocket(s,b,n) read((s),(b),(n)) 170#define writesocket(s,b,n) write((s),(b),(n)) 171#endif --- 184 unchanged lines hidden (view full) --- 356# define SHUTDOWN(fd) MacSocket_close(fd) 357# define SHUTDOWN2(fd) MacSocket_close(fd) 358 359# else 360 361# ifndef NO_SYS_PARAM_H 362# include <sys/param.h> 363# endif |
351# ifndef MPE | 364# ifdef VXWORKS 365# include <time.h> 366# elif !defined(MPE) |
352# include <sys/time.h> /* Needed under linux for FD_XXX */ 353# endif 354 355# include <netdb.h> 356# if defined(VMS) && !defined(__DECC) 357# include <socket.h> 358# include <in.h> 359# include <inet.h> --- 110 unchanged lines hidden --- | 367# include <sys/time.h> /* Needed under linux for FD_XXX */ 368# endif 369 370# include <netdb.h> 371# if defined(VMS) && !defined(__DECC) 372# include <socket.h> 373# include <in.h> 374# include <inet.h> --- 110 unchanged lines hidden --- |