netstat / YP incompatibility

Chuq Von Rospach chuq at sun.uucp
Fri Nov 22 05:06:22 AEST 1985


> Index:	ucb/netstat/*.c 4.2BSD
> 
> Description:
> 	When compiled with SUN yellow pages code present, dumps core.
> 
> Cause:
> 	Use of word "socket" as a variable name ("struct socket socket")
> 	clashes with use of word "socket" as name of a system call,
> 	causing call to "socket" inside yellow pages library to transfer
> 	control to a data object, generally resulting in nonproductive
> 	program behavior.
> 
> Fix:
> 	Find all occurences of the variable "socket" and change them to
> 	something else, such as "wsocket".
> 

In the vanilla NFS distribution we ship to vendors, the structure is renamed
"struct socket s" to avoid this. The file involved is "ucb/netstat/inet.c".
If you use the version shipped on the NFS tape you won't have a problem.
-- 
:From catacombs of Castle Tarot:        Chuq Von Rospach 
sun!chuq at decwrl.DEC.COM                 {hplabs,ihnp4,nsc,pyramid}!sun!chuq

Let us now take the sacre oath. As of now, he is no longer an elephant!



More information about the Comp.bugs.4bsd.ucb-fixes mailing list