* Re: DU 4.0: difference between nlist(3) vs. knlist(3)
@ 1998-12-17 5:00 Greg Sylvain
0 siblings, 0 replies; 3+ messages in thread
From: Greg Sylvain @ 1998-12-17 5:00 UTC (permalink / raw)
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 |
> +--------------------------------+-------------------------------------+
^ permalink raw reply [flat|nested] 3+ messages in thread
* DU 4.0: difference between nlist(3) vs. knlist(3)
@ 1998-12-17 5:00 Greg Sylvain
1998-12-17 5:00 ` Greg Sylvain
0 siblings, 1 reply; 3+ messages in thread
From: Greg Sylvain @ 1998-12-17 5:00 UTC (permalink / raw)
Hi,
Could someone tell me the difference between these two libc calls, other
than the parametric difference ?
I have a C++ program (compiled with gcc 2.7.2.1) which, when compiled
with knlist() it crashes after three calls to knlist(), but when
compiled with nlist() it runs fine.
Thanks in advance for any suggestions,
greg
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DU 4.0: difference between nlist(3) vs. knlist(3)
1998-12-17 5:00 Greg Sylvain
@ 1998-12-17 5:00 ` Greg Sylvain
0 siblings, 0 replies; 3+ messages in thread
From: Greg Sylvain @ 1998-12-17 5:00 UTC (permalink / raw)
To: Greg Sylvain
Hello again,
To follow-up:
I only crash when I'm running knlist() as root and it crashes when
exiting main at the symbol cma_reinit_malloc. (Originally, I was running as
root to open /dev/kmem, but I comment that out and root privaledge isn't
neccessary just to get the name list, but I receive a SIGSEGV from the OS
??)
Greg Sylvain wrote:
> Hi,
>
> Could someone tell me the difference between these two libc calls, other
> than the parametric difference ?
>
> I have a C++ program (compiled with gcc 2.7.2.1) which, when compiled
> with knlist() it crashes after three calls to knlist(), but when
> compiled with nlist() it runs fine.
>
> Thanks in advance for any suggestions,
> greg
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-12-17 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-17 5:00 DU 4.0: difference between nlist(3) vs. knlist(3) Greg Sylvain
-- strict thread matches above, loose matches on Subject: below --
1998-12-17 5:00 Greg Sylvain
1998-12-17 5:00 ` Greg Sylvain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox