GETHOSTENT(3P)
π¦ GETHOSTENT(3P) β the POSIX Programmer's Manual page, bestie edition π¦
okay so real quick β this whole thing lives in the POSIX Programmer's Manual (that's the manual name, iykyk), and it's page GETHOSTENT(3P) of it. it's giving β¨ standard, it's giving β¨ portable, and I'm about to explain all of it like we're texting at 2am.
πΈ PROLOG πΈ
okay bestie, before literally anything else, hear me out:
this manual page is part of the POSIX Programmer's Manual. no cap.
but also β and this is the part that matters β the Linux implementation of this interface may differ. like, consult the corresponding Linux manual page for details of Linux behavior. or, plot twist, the interface may not be implemented on Linux <em>at all</em> π.
so yeah. vibe check: read the Linux page too. don't just trust this one and then come crying to me. π
π NAME π
gethostent β network host database functions π«Ά
(that's it. that's the name. short, iconic, does exactly what it says on the tin.)
β¨ SYNOPSIS β¨
here's the whole thing, copy-paste-able, character for character:
#include <netdb.h>
struct hostent *gethostent(void);
see that? that's the entire signature. no arguments. zero. a whole function with no parameters, and honestly? main character energy π.
π DESCRIPTION π
so like... this page doesn't really describe anything itself. it just points you somewhere else:
Refer to endhostent().
that's the whole description. fr fr. it's giving "I'm not gonna explain, go ask my friend endhostent()" π
and honestly, valid. go read that one, it's got the actual deets.
π COPYRIGHT π
okay legal moment, but make it cute, because we <em>do</em> respect the paperwork around here:
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 here's the important bit, so pay attention π β 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. so like, if this page and the Standard are beefing, the Standard wins. periodt. π₯
the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
also, 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. (not me. not the Standard. the <em>conversion</em>. the pipeline did it. π) to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page, bestie!! π
this masterpiece dropped courtesy of IEEE/The Open Group, dated 2017, and it's page GETHOSTENT(3P) of the POSIX Programmer's Manual. go drink some water, then go read endhostent() like I told you. mwah ππ¦π
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms