jbn@wdl1.UUCP (11/16/85)
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". John Nagle
chuq@sun.uucp (Chuq Von Rospach) (11/21/85)
> 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@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!