globus_types.h(3)
π globus_types.h β NAME π
globus_types.h β Common Primitive Types. That's it, that's the whole vibe. It's a header, bestie, and it's the one every other globus_common thing is built on top of. π«Ά
This one lives in the Library Functions Manual, section 3, iykyk.
β¨ SYNOPSIS β¨
Okay so to even get in the door you gotta pull in the config header plus the usual suspects. Copy these exactly, no freestyling:
#include 'globus_config.h'
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>
π Macros
#define GLOBUS_TRUE 1β the true value forglobus_bool_t. Like, yes. Correct. Slay. π#define GLOBUS_FALSE 0β the false value forglobus_bool_t. The no. The nope. The not-it. π#define GLOBUS_NULL NULLβ a NULL value. That's the whole job. πΈ#define GLOBUS_SUCCESS 0β the 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. So like β if you see a 0, you ate. If you don't, something's giving error energy. π
#define GLOBUS_FAILURE -1β the generic failure result.
Some Globus API functions without good error handling return this value to indicate some undetermined error occurred. Undetermined. Vague. Mysterious. Not telling you what happened. π
π¦ 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. Ever. Not once. It's giving legacy, and honestly? Respect. But just use size_t. π
typedef socklen_t globus_socklen_tβ size of a socket length parameter. Socket girlies, this one's for you. π§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. Raw bytes, no sign drama, no negativity. β¨
typedef int globus_bool_tβ boolean type. It's anintunderneath, we don't talk about it. πtypedef uint32_t globus_result_tβ the result type.uint32_t, and that's all the page says, so that's all I'm saying. Periodt. π
π Detailed Description
Common Primitive Types.
Defines the macros and typedefs common to all globus_common components. It's the group chat everyone's in. π
π 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.
Real talk: the manpage itself is telling you to skip this one. It's a historical artifact, a little museum piece. Use NULL. That's the tea. β
π Author
Generated automatically by Doxygen for globus_common from the source code. Not a human, not a bestie, just a doc generator doing its little thing. π€β¨
And that's a wrap, babe. This page came to you from globus_common, Version 18.15, and yes, it's the globus_types.h(3) page, mwah. π Now go compile something iconic. π¦π
π¦ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 Β· Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 Β· Apache-2.0
- fedora 44: globus-common-doc 18.15-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 Β· Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms