GLOBUS_ERROR_CONSTRUCT_ERRNO_ERROR(3)

✨ GLOBUS_ERROR_TYPE_ERRNO(3) ✨

okay bestie, welcome to the globus_errno_error_object page from the Library Functions Manual β€” this is the one about Error Construction and honestly? it's giving "build me an errno error object" energy and we're gonna eat πŸ’…


🌸 NAME 🌸

globus_errno_error_object β€” Error Construction

  • Error Construction.

(yeah she says it twice, she's thorough, we love a consistent queen πŸ‘‘)


✨ SYNOPSIS ✨

πŸŽ€ Macros

#define GLOBUS_ERROR_TYPE_ERRNO

πŸŽ€ Construct Error

globus_object_t * globus_error_construct_errno_error
    (globus_module_descriptor_t *base_source, globus_object_t
    *base_cause, const int system_errno)

πŸŽ€ Initialize Error

globus_object_t * globus_error_initialize_errno_error (globus_object_t
    *error, globus_module_descriptor_t *base_source, globus_object_t
    *base_cause, const int system_errno)

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

Error Construction.

Create and initialize a Globus Errno Error object. 🫢

This section defines operations to create and initialize Globus Errno Error objects. Literally that's the whole job. no cap.


πŸ’– MACRO DEFINITION DOCUMENTATION πŸ’–

🌈 #define GLOBUS_ERROR_TYPE_ERRNO

Error type definition ⭐


πŸ’œ FUNCTION DOCUMENTATION πŸ’œ

🧚 globus_object_t * globus_error_construct_errno_error (globus_module_descriptor_t * base_source, globus_object_t * base_cause, const int system_errno)

Allocate and initialize an error of type GLOBUS_ERROR_TYPE_ERRNO πŸ”₯

Parameters

  • base_source β€” Pointer to the originating module.
  • base_cause β€” The error object causing the error. If this is the original error, this parameter may be NULL.
  • system_errno β€” The system errno.

Returns

The resulting error object. It is the user's responsibility to eventually free this object using globus_object_free(). A globus_result_t may be obtained by calling globus_error_put() on this object.

not me reminding you again: you have to free this thing yourself. she will not clean up after you bestie 😭

🧚 globus_object_t * globus_error_initialize_errno_error (globus_object_t * error, globus_module_descriptor_t * base_source, globus_object_t * base_cause, const int system_errno)

Initialize a previously allocated error of type GLOBUS_ERROR_TYPE_ERRNO ✨

Parameters

  • error β€” The previously allocated error object.
  • base_source β€” Pointer to the originating module.
  • base_cause β€” The error object causing the error. If this is the original error this parameter may be NULL.
  • system_errno β€” The system errno.

Returns

The resulting error object. You may have to call globus_error_put() on this object before passing it on. πŸ‘‘


πŸŽ€ AUTHOR πŸŽ€

Generated automatically by Doxygen for globus_common from the source code. (she's an auto-generated icon, she didn't write herself, we respect the process 🫢)


globus_common Β· Version 18.15 Β· globus_err...rror_object(3)

that's the whole page bestie, go forth and construct your errno errors responsibly, mwah πŸ’‹βœ¨πŸ¦‹

πŸ“¦ where this page comes from