GENDERS_ISNODE(3)
π GENDERS_ISNODE(3) π
okay bestie, welcome to libgenders β this is the manual page for genders_isnode, genders_isattr, and genders_isattrval, aka the node, attribute, and value check routines. they're in the LIBGENDERS crew and honestly? they're little icons. let's get into it π
β¨ NAME β¨
genders_isnode, genders_isattr, genders_isattrval β the node, attribute, and value check routines. yes, all three, one page, they're a package deal π«Ά
β¨ 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);
β¨ DESCRIPTION β¨
genders_isnode() β it tests whether the node that node points at is listed in the genders file. and if node is NULL? no worries, it just tests the current node instead. lowkey convenient.
genders_isattr() β it tests whether the attribute that attr points at is listed for some node in the genders file.
genders_isattrval() β it tests whether the attribute attr is equal to the value val for some node in the genders file. it's giving "are these two a thing?" π
β¨ RETURN VALUES β¨
for genders_isnode(): if node is listed in the genders file, 1 comes back. if it's not listed, 0 comes back. no in-between, we love a binary queen π
for genders_isattr(): if attr is listed in the genders file, 1 comes back. if it's not listed, 0 comes back.
for genders_isattrval(): if attr=val is listed in the genders file, 1 comes back. if it's not listed, 0 comes back.
π and on error? all three of them return-1, 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 live ingenders.h.
β¨ ERRORS β¨
GENDERS_ERR_NULLHANDLEβ thehandleparameter isNULL. bestie, the genders handle has to be created withgenders_handle_create(3)first, you can't just rock up empty-handed πGENDERS_ERR_NOTLOADEDβgenders_load_data(3)has not been called to load genders data. no data, no vibes.GENDERS_ERR_PARAMETERSβ an incorrect parameter has been passed in. wrong parameter, blocked π«GENDERS_ERR_MAGICβhandlehas an incorrect magic number. eitherhandledoes not point to a genders handle, orhandlehas been destroyed bygenders_handle_destroy(3). it's giving haunted β¨
β¨ FILES β¨
/usr/include/genders.h
β¨ SEE ALSO β¨
libgenders(3), genders_handle_create(3), genders_load_data(3), genders_errnum(3), genders_strerror(3)
and that's the whole page, bestie. you ate that π
this one came from LLNL, dated August 2003, and it's the GENDERS_ISNODE(3) page from LIBGENDERS β periodt πβ¨π
π¦ 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