GENDERS_ISNODE(3)
π GENDERS_ISNODE β bestie's guide to node/attr/value check routines π
ok so this is GENDERS_ISNODE(3) from the LIBGENDERS crew, and it's literally three lil check-in routines that answer the question "hey, is this a thing in the genders file?" π
They live in section 3 of the manual, they're part of libgenders, and they're your new besties. Let's go π
β¨ NAME β¨
genders_isnode, genders_isattr, genders_isattrval β node, attribute, value check routines
Like, the trio. The girlies. The vibe check squad. π«Ά
πΈ SYNOPSIS πΈ
#include <genders.h>
int genders_isnode(genders_t handle, const char *node);
int genders_isattr(genders_t handle, const char *attr);
int genders_isattrval(genders_t handle, const char *attr, const char
*val);
ok first of all? #include <genders.h>. Always. Non-negotiable. Periodt. β¨
π¦ DESCRIPTION π¦
genders_isnode() β this one tests if the node pointed to by node is listed in the genders file. and if node is NULL? bestie, it just tests the current node instead. main character energy honestly π
genders_isattr() β tests if the attribute pointed to by attr is listed for some node in the genders file. not a specific one, just... somewhere. it's giving "do you know her" π
genders_isattrval() β tests if the attribute pointed to by attr is equal to the value pointed to by val for some node in the genders file. so like, the full package. the pair. the duo. π
π RETURN VALUES π
For genders_isnode():
- if
nodeis listed in the genders file β1is returned π₯ - if it is not listed β
0is returned π
For genders_isattr():
- if
attris listed in the genders file β1is returned π₯ - if it is not listed β
0is returned π
For genders_isattrval():
- if
attr=valis listed in the genders file β1is returned π₯ - if it is not listed β
0is returned π
and on error? ALL THREE of them return-1, no cap. and an error code gets returned inhandle. you can grab that error code withgenders_errnum(3), and a lil description of it withgenders_strerror(3). the error codes are defined ingenders.h. π
π ERRORS π
GENDERS_ERR_NULLHANDLEβ thehandleparameter isNULL. bestie the handle has to be created withgenders_handle_create(3)first, we can't work with nothing πGENDERS_ERR_NOTLOADEDβgenders_load_data(3)has not been called to load genders data. no data loaded, no answers, sorry babe πGENDERS_ERR_PARAMETERSβ an incorrect parameter has been passed in. wrong girl, wrong vibe, try again πGENDERS_ERR_MAGICβhandlehas an incorrect magic number. this meanshandledoes not point to a genders handle, OR it's been destroyed bygenders_handle_destroy(3). she's gone, she's not coming back π§
π FILES π
/usr/include/genders.h
the sacred text. the blueprint. iykyk β
π SEE ALSO π
go read them, they're all iconic, you'll be obsessed π«Ά
ok that's the whole page bestie, mwah π this one came from LLNL, dated August 2003, and it's GENDERS_ISNODE(3) out of LIBGENDERS. slay, ate, no crumbs. π
β¨
π¦ where this page comes from
- epel 10: libgenders-devel 1.28.1~^20231119git27b915d-5.el10_2 Β· GPL-2.0-only
- fedora 43: libgenders-devel 1.28.1~^20231119git27b915d-5.fc43 Β· GPL-2.0-only
- fedora 43: libgenders-devel 1.28.1~^20231119git27b915d-5.fc43 Β· GPL-2.0-only
- fedora 44: libgenders-devel 1.28.1~^20231119git27b915d-6.fc44 Β· GPL-2.0-only
- fedora 44: libgenders-devel 1.28.1~^20231119git27b915d-6.fc44 Β· GPL-2.0-only
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- Copyright (C) 2007-2019 Lawrence Livermore National Security, LLC
- Copyright (C) 2001-2007 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms