00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00024 #if !defined(GLOBUS_TYPES_H)
00025 #define GLOBUS_TYPES_H 1
00026
00027 #include "globus_config.h"
00028
00029 #include <stdlib.h>
00030 #include <stdint.h>
00031
00032 #if (!defined(_WIN32)) || (defined(__CYGWIN__) || defined(__MINGW32__))
00033 #include <sys/types.h>
00034 #endif
00035
00036 #if defined(_WIN32) && !defined(__CYGWIN__)
00037 #include <winsock2.h>
00038 #include <ws2tcpip.h>
00039 #else
00040 #include <sys/socket.h>
00041 #endif
00042
00048 typedef size_t globus_size_t;
00049
00050 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
00051
00056 typedef long globus_ssize_t;
00057 #else
00058 typedef ssize_t globus_ssize_t;
00059 #endif
00060
00068 typedef socklen_t globus_socklen_t;
00069
00070 #if defined(_WIN32)
00071
00072 struct iovec
00073 {
00074 unsigned long iov_len;
00075 char * iov_base;
00076 };
00077 #endif
00078
00085 typedef unsigned char globus_byte_t;
00086
00093 typedef int globus_bool_t;
00094
00099 typedef uint32_t globus_result_t;
00100 typedef int64_t globus_off_t;
00101 #define GLOBUS_OFF_T_FORMAT PRId64
00102
00107 #define GLOBUS_TRUE 1
00108
00112 #define GLOBUS_FALSE 0
00113
00119 #define GLOBUS_NULL NULL
00120
00126 #define GLOBUS_SUCCESS 0
00127
00133 #define GLOBUS_FAILURE -1
00134
00135 #endif