Module Name: src Committed By: kre Date: Fri Sep 20 15:52:12 UTC 2024
Modified Files: src/include: unistd.h Log Message: The gethostname() function is (from when it was added to POSIX) a base function, not an XSI optional extension, so it should be made visible whenever _POSIX_C_SOURCE is >= 200112 (Posix Issue 6), and not only for _XOPEN_SOURCE >= 600 (which would be for an XSI function added then). Move the prototype for gethostname() to the right section of the file. Note this makes the visibility of gethostname() wider, it will remain visible everywhere it was visible before - the only conceivable issue would be if someone was abusing the name in a context where they shouldn't be. (Some non NetBSD application, as all of NetBSD is compiled with _NetBSD_SOURCE defined, everything tends to be visible, so no change at all for the NetBSD source tree). Issue pointed out by Thomas Klausner (wiz@) To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168 src/include/unistd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.