Subject: lib/2049: Incorrect cross-references in gethostname(3)
To: None <gnats-bugs@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 02/08/1996 02:20:36
>Number:         2049
>Category:       lib
>Synopsis:       Incorrect cross-references in gethostname(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb  8 02:35:01 1996
>Last-Modified:
>Originator:     Mike Long <mike.long@analog.com>
>Organization:
	/usr/lib/news/organization: No such file or directory
>Release:        960206
>Environment:
	
System: NetBSD azathoth 1.1A NetBSD 1.1A (AZATHOTH) #3: Tue Feb 6 02:38:59 EST 1996 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386


>Description:
	gethostname(3) refers to sysctl(2), which does not exist.
It could also use a reference to sysctl(8), so that it matches
gethostid(3).

>How-To-Repeat:
	man gethostname
	man 2 sysctl

>Fix:
	Apply this patch:

*** src/lib/libc/gen/gethostname.3~        Fri Oct 13 20:47:12 1995
--- src/lib/libc/gen/gethostname.3 Tue Feb  6 23:56:25 1996
***************
*** 85,90 ****
  .El
  .Sh SEE ALSO
! .Xr sysctl 2
  .Xr gethostid 3
  .Sh BUGS
  Host names are limited to
--- 85,91 ----
  .El
  .Sh SEE ALSO
! .Xr sysctl 3
  .Xr gethostid 3
+ .Xr sysctl 8
  .Sh BUGS
  Host names are limited to

>Audit-Trail:
>Unformatted: