Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!think!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!agate!shelby!portia.stanford.edu!portia!name From: name@portiaStanford.EDU (tony cooper) Newsgroups: comp.unix.aux Subject: How do you read symbols in /dev/kmem when nlist won't work Keywords: kernel Message-ID: <1990Jun6.003947.27323@portia.Stanford.EDU> Date: 6 Jun 90 00:39:47 GMT Sender: news@portia.Stanford.EDU (USENET News System) Reply-To: name@portiaStanford.EDU (tony cooper) Organization: Stanford University - AIR Lines: 19 nlist is declared in A/UX starting as: struct nlist { /* symbol table entry */ char n_name[8]; /* symbol name */ Well n_name is restricted to 8 bytes so names must be 7 bytes long or less. So how do you read sysmbols that are longer than 7 characters? There are plenty of symbols that are longer. Most other UNIXs declare char *n_name so they don't have this problem. The only source code example I have is xload. But it reads the symbol avenrun which is 7 characters. Other A/UX programs can read longer sysmbols eg netstat reads symbols longer than 7 such as icmpstat and rthashsize. (But most symbol reading programs read short symbols only). Any ideas? Tony Cooper tony@popserver.stanford.edu