From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,90412519ad661ddc X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,90412519ad661ddc X-Google-Attributes: gidfee84,public From: Greg Sylvain Subject: Re: DU 4.0: difference between nlist(3) vs. knlist(3) Date: 1998/12/17 Message-ID: <3679581A.8A1131FF@mindspring.com>#1/1 X-Deja-AN: 423343919 Distribution: all Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Landmark Systems Mime-Version: 1.0 Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Thanks for the reply Megan, But I'm trying to examine the running kernel, that's why I tried using knlist first. I'm trying to get stats on IPC (msginfo, shminfo and seminfo symbols) usage. The program runs just fine if I call nlist with the BOOTEDFILE that getsysinfo returns, but the program crashes when I use knlist. Both required root to open /dev/kmem. Any ideas ? Thanks again, greg Megan wrote: > In comp.sys.dec you write: > > >Hi, > > >Could someone tell me the difference between these two libc calls, other > >than the parametric difference ? > > nlist is for use with a compiled program... knlist is specifically for > examining the running kernel > > Megan Gentry > Former RT-11 Developer > > +--------------------------------+-------------------------------------+ > | Megan Gentry, EMT/B, PP-ASEL | Internet (work): gentry!zk3.dec.com | > | Unix Support Engineering Group | (home): mbg!world.std.com | > | Compaq Computer Corporation | addresses need '@' in place of '!' | > | 110 Spitbrook Rd. ZK03-2/T43 | URL: http://world.std.com/~mbg/ | > | Nashua, NH 03062 | "pdp-11 programmer - some assembler | > | (603) 884 1055 | required." - mbg | > +--------------------------------+-------------------------------------+