GETNETBYADDR(3POSIX)

✨ getnetbyaddr β€” the network database functions, bestie edition ✨

okay so this page lives in the POSIX Programmer's Manual (yes, the whole POSIX Programmer's Manual, it's a vibe) πŸ’…


🌸 PROLOG 🌸

okay real talk before we get into it β€” this manual page is part of the POSIX Programmer's Manual. and like, heads up: the Linux implementation of this interface may differ (so pls go consult the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface may not be implemented on Linux at all. it's giving "it depends" 😭


πŸ‘‘ NAME πŸ‘‘

getnetbyaddr, getnetbyname, getnetent β€” network database functions πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <netdb.h>

struct netent *getnetbyaddr(uint32_t net, int type);
struct netent *getnetbyname(const char *name);
struct netent *getnetent(void);

πŸ’– DESCRIPTION πŸ’–

bestie. refer to endnetent(). that's it. that's the description. the whole thing. not me gatekeeping the actual docs 😭 go read that one, it's got the lore πŸ”₯


portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. πŸ’œ

and in the event of any discrepancy between this version and the original IEEE and The Open Group Standard β€” the original IEEE and The Open Group Standard is the referee document, periodt. no cap. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format πŸ™ˆ (blame the converter, not the standards body, fr fr). to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


and that's the whole page, bestie 🫢 this lil rewrite came to you courtesy of IEEE/The Open Group, dated 2017, filed under GETNETBYADDR(3POSIX). slay, stay curious, and go read endnetent() for the actual tea πŸ“βœ¨