Loading...
Searching...
No Matches
globus_types.h
Go to the documentation of this file.
/*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(GLOBUS_TYPES_H)
#define GLOBUS_TYPES_H 1
#include "globus_config.h"
#include <stdlib.h>
#include <stdint.h>
#if (!defined(_WIN32)) || (defined(__CYGWIN__) || defined(__MINGW32__))
#include <sys/types.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif
typedef size_t globus_size_t;
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
typedef long globus_ssize_t;
#else
typedef ssize_t globus_ssize_t;
#endif
typedef socklen_t globus_socklen_t;
#if defined(_WIN32)
/* The ordering of the fields must match those in WSABUF */
struct iovec
{
unsigned long iov_len; /* Length in bytes. */
char * iov_base; /* Starting address. */
};
#endif
typedef unsigned char globus_byte_t;
typedef int globus_bool_t;
typedef uint32_t globus_result_t;
typedef int64_t globus_off_t;
#define GLOBUS_OFF_T_FORMAT PRId64
#define GLOBUS_TRUE 1
#define GLOBUS_FALSE 0
#define GLOBUS_NULL NULL
#define GLOBUS_SUCCESS 0
#define GLOBUS_FAILURE -1
#endif /* GLOBUS_TYPES_H */
globus_config.h
Globus Platform Configuration.
globus_byte_t
unsigned char globus_byte_t
Unsigned byte datatypeThis is used for byte-addressable arrays of arbitrary data which is not subject...
Definition globus_types.h:85
globus_socklen_t
socklen_t globus_socklen_t
Size of a socket length parameter.
Definition globus_types.h:68
globus_result_t
uint32_t globus_result_t
Definition globus_types.h:99
globus_bool_t
int globus_bool_t
Boolean type.
Definition globus_types.h:93
globus_size_t
size_t globus_size_t
Standard size of memory objectThe globus_size_t is the size of a memory object. It is identical to si...
Definition globus_types.h:48