---
name: "globus_types.h"
section: "3"
platform: "linux"
package: "libglobus-common-doc"
version: "18.14-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_types.h"
---

# globus\_types.h(3)

Common Primitive Types.

## NAME

globus\_types.h - Common Primitive Types.

## SYNOPSIS

`#include 'globus_config.h'`\
 `#include <stdlib.h>`\
 `#include <stdint.h>`\
 `#include <sys/types.h>`\
 `#include <sys/socket.h>`\

### Macros

\#define **GLOBUS\_TRUE**   1\
 True value for globus\_bool\_t.  #define **GLOBUS\_FALSE**   0\
 False value for globus\_bool\_t.  #define **GLOBUS\_NULL**   NULL\
 NULL value.  #define **GLOBUS\_SUCCESS**   0\
 Generic success result

Most Globus API functions return this value to indicate success, or some error constant or globus\_result\_t to indicate an error. " #define **GLOBUS\_FAILURE**   -1\
 Generic failure result

Some Globus API functions without good error handling return this value to indicate some undetermined error occurred. "

### Typedefs

typedef size\_t **globus\_size\_t**\
 Standard size of memory object

The globus\_size\_t is the size of a memory object. It is identical to size\_t in all cases and doesn't need to be used ever. " typedef socklen\_t **globus\_socklen\_t**\
 Size of a socket length parameter.  typedef unsigned char **globus\_byte\_t**\
 Unsigned byte datatype

This is used for byte-addressable arrays of arbitrary data which is not subject to sign extension. " typedef int **globus\_bool\_t**\
 Boolean type.  typedef uint32\_t **globus\_result\_t**\

## Detailed Description

Common Primitive Types.

Defines the macros and typedefs common to all globus\_common components.

## Macro Definition Documentation

### #define GLOBUS\_NULL NULL

NULL value. From back long ago before NULL was standardized? No reason to use this on any modern system.

## Author

Generated automatically by Doxygen for globus\_common from the source code.
