[6009] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 7.1H: manpage inet(3n)

daemon@ATHENA.MIT.EDU (vanharen@ATHENA.MIT.EDU)
Tue Sep 11 17:12:37 1990

From: vanharen@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Tue, 11 Sep 90 17:12:12 EDT

System name:		fries
Type and version:	CVAXSTAR 7.1H (2 update(s) to same version)
Display type:		SM

What were you trying to do?
	Use the "inet_ntoa" function as described on the manpage.

What's wrong:
	The manpage neglects to mention that you have to include
	<sys/types.h>.  This is necessary, since <sys/socket.h> uses
	caddr_t and u_short, and <netinet/in.h> uses u_short also.

What should have happened:
	It should say so.  And, it should be included before
	<sys/socket.h> and the rest.

Please describe any relevant documentation references:
	man 3n inet

Fix:
	Apply the patch below, please.

*** /usr/man/man3/inet.3n       Sat Jul 21 15:52:55 1990
--- /tmp/inet.3n        Tue Sep 11 17:08:14 1990
***************
*** 10,15 ****
--- 10,16 ----
  inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Internet address manipulation routines
  .SH SYNOPSIS
  .nf
+ .B "#include <sys/types.h>
  .B "#include <sys/socket.h>
  .B "#include <netinet/in.h>
  .B "#include <arpa/inet.h>
	

home help back first fref pref prev next nref lref last post