Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!nmt.edu!schlake From: schlake@nmt.edu (Schlake) Newsgroups: comp.sys.hp Subject: $bozoword in /hp-ux Message-ID: <1991Mar7.044007.8938@nmt.edu> Date: 7 Mar 91 04:40:07 GMT Organization: New Mexico Tech Lines: 62 Ok, here is a good question for any HPUX gurus out there. I was looking for information on sockets, so I did an 'nm /hp-ux' looking for the structures where relavent info is kept. Upon perusal of the file I saw this: ... ac_hlt | 1052480|extern|code |$CODE$ actest | 1052500|extern|code |$CODE$ $bozoword | 1421312|static|data |$DATA$ iodc_write_buffer | 1421376|extern|data |$DATA$ dump_iodc_buffer | 1052672|extern|entry |$CODE$ ... 1421376-1421312=64 (I checked for other variables in the area) Obviously not a 'word' word, so its gotta be a text string. I wrote a quick program to print out the value contained by $bozoword: #include #include #include int kmem; off_t off; struct nlist nl[] = { { "$bozoword" }, "" }; int main() { char bozoword[64]; register int i; if ((kmem = open ("/dev/kmem", 0)) == -1) { perror ("/dev/kmem"); exit (1); } if (nlist ("/hp-ux", nl) == -1) { fprintf (stderr, "nlist() failed\n"); exit (1); } off = nl[0].n_value; lseek(kmem, off, 0); read(kmem, &bozoword, sizeof(bozoword)); for(i=0;i<64;i++) { printf("/dev/kmem->$bozoword[%d] = 0x%x\n",i,(int)bozoword[i]); } } What I got was all NULL's (actually 0x0). What's up? We called our HP service Rep (about something else, not this) and mentioned it to him. He said write to it and see what happens. :) Anyone else out there got any better ideas? Schlake