"Fossies" - the Fresh Open Source Software Archive

Member "links-1.03/os_depx.h" (2 Oct 2011, 1405 Bytes) of archive /linux/www/links-1.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "os_depx.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.8_vs_1.03.

    1 #ifndef MAXINT
    2 #ifdef INT_MAX
    3 #define MAXINT INT_MAX
    4 #else
    5 #define MAXINT ((int)((unsigned int)-1 >> 1))
    6 #endif
    7 #endif
    8 
    9 #ifndef MAXLONG
   10 #ifdef LONG_MAX
   11 #define MAXLONG LONG_MAX
   12 #else
   13 #define MAXLONG ((long)((unsigned long)-1L >> 1))
   14 #endif
   15 #endif
   16 
   17 #ifndef SA_RESTART
   18 #define SA_RESTART  0
   19 #endif
   20 
   21 #ifdef __EMX__
   22 #define strcasecmp stricmp
   23 #define strncasecmp strnicmp
   24 #define read _read
   25 #define write _write
   26 #define getcwd _getcwd2
   27 #define chdir _chdir2
   28 #endif
   29 
   30 #ifdef BEOS
   31 #define socket be_socket
   32 #define connect be_connect
   33 #define getpeername be_getpeername
   34 #define getsockname be_getsockname
   35 #define listen be_listen
   36 #define accept be_accept
   37 #define bind be_bind
   38 #define pipe be_pipe
   39 #define read be_read
   40 #define write be_write
   41 #define close be_close
   42 #define select be_select
   43 #define getsockopt be_getsockopt
   44 #ifndef PF_INET
   45 #define PF_INET AF_INET
   46 #endif
   47 #ifndef SO_ERROR
   48 #define SO_ERROR    10001
   49 #endif
   50 #endif
   51 
   52 #if defined(O_SIZE) && defined(__EMX__)
   53 #define HAVE_OPEN_PREALLOC
   54 #endif
   55 
   56 #if defined(__WATCOMC__) && defined(_WCRTLINK)
   57 #define LIBC_CALLBACK   _WCRTLINK
   58 #else
   59 #define LIBC_CALLBACK
   60 #endif
   61 
   62 #if defined(__WATCOMC__) && defined(__LINUX__)
   63 #define SIGNAL_HANDLER __declspec(__cdecl)
   64 #else
   65 #define SIGNAL_HANDLER
   66 #endif
   67 
   68 #if defined(HAVE_HERROR) && defined(__GNUC__) && defined(__hpux)
   69 #undef HAVE_HERROR
   70 #endif
   71 
   72 #ifdef HAVE_MAXINT_CONVERSION_BUG
   73 #undef MAXINT
   74 #define MAXINT 0x7FFFF000
   75 #endif
   76