Differences between version 5 and predecessor to the previous major change of gethostname(2).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Friday, February 21, 2003 5:47:52 pm | by PerryLorier | Revert |
Older page: | version 4 | Last edited on Monday, December 30, 2002 4:14:49 am | by PerryLorier | Revert |
@@ -13,9 +13,9 @@
!!ERRORS
;[EINVAL]: ''len'' is negative or, on Linux/i386, ''len'' is smaller than the actual size. (In this last case glibc 2.1 uses [NAMETOOLONG].)
;[EFAULT]: ''name'' is an invalid address.
-;[NAMETOOLONG
]: ''len'' is smaller than the length of the hostname
+;[ENAMETOOLONG
]: ''len'' is smaller than the length of the hostname
!!CONFORMING TO
SVr4, 4.4BSD (this function first appeared in 4.2BSD). POSIX.1 does not define these functions, but ISO/IEC 9945-1:1990 mentions them in B.4.4.1.