SAFE_INIT_ID_RANGE_LIST(3)
πΈ NAME πΈ
safe_init_id_range_list, safe_destroy_id_range_list β create and destroy id range lists. This is the SAFE_INIT_ID_RANGE_LIST(3) manual page, section 3, and it's literally the setup-and-cleanup bestie duo. Periodt.
β¨ SYNOPSIS β¨
#include "safe_id_range_list.h"
struct safe_id_range_list;
typedef struct safe_id_range_list safe_id_range_list;
int safe_init_id_range_list(safe_id_range_list list);
void safe_destroy_id_range_list(safe_id_range_list list);
π¦ DESCRIPTION π¦
Okay so safe_init_id_range_list initializes a safe_id_range_list structure. This function must be called before the function can be used β don't skip the setup era, bestie. Slay the initialization.
safe_destroy_id_range_list frees the memory used by a safe_id_range_list data structure, and it should be called after all uses of the safe_id_range_list structure are complete. Cleanup queen behavior only. π
π Parameters π
listβ thesafe_id_range_listto operate on. The value must be non-NULL. NoNULLshenanigans, okay? π
π₯ RETURN VALUE π₯
safe_init_id_range_list returns 0 on success and -1 on failure.
safe_destroy_id_range_list returns nothing. In the case of an error, errno is set appropriately. Noted, bestie.
π ERRORS π
EINVALβ thelistparameter wasNULL.ENOMEMβsafe_init_id_range_listfailed to allocate memory.
If you see these, it's giving "read the error and fix the setup." π«Ά
π AUTHOR π
James A. Kupsch β author, icon, legend.
π SEE ALSO π
http://research.cs.wisc.edu/mist/safefile
mwah π this page is dated 2011-07-26 and lives under SAFE_INIT_ID_RANGE_LIST(3) β go forth and init/destroy responsibly, bestie π«Άβ¨
π¦ where this page comes from
- nixos 26.05: safefile 1.0.5
- nixpkgs unstable: safefile 1.0.5
- Copyright 2007-2008 James A. Kupsch
- Copyright 2007-2008, 2011 James A. Kupsch
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms