[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Where can I get the source code of top?
Thank you for your link.:)
2008/4/6, Andy Ruhl <acruhl%gmail.com@localhost>:
> On Sun, Apr 6, 2008 at 4:37 AM, Kun Niu <haoniukun%gmail.com@localhost> wrote:
> > Dear all,
> > I'm trying to write a utility for system monitor.
> > My netbsd version is 3.1.
> > It needs to gather information about the system cpu usage data like
> > cpu load in user mode, system mode, idle task and so on.
> > On linux, I have the file "/proc/stat".
> > But I don't have it on netbsd.
> > However, I find that top can get the information I want.
> > So which file should I rely on on netbsd?
> > Or where can I get the source code of top for netbsd?
> > Thanks in advance for any hint.
> In the source tree on my box:
> /usr/src/usr.bin/top > ls
> CVS boolean.h getans os.h top.1 username.c
> Configure commands.c layout.h patchlevel.h top.X username.h
> Make.desc.X commands.h loadavg.h screen.c top.c utils.c
> Makefile display.c machine screen.h top.h utils.h
> Makefile.X display.h machine.h sigconv.awk top.local.h version.c
> On the website:
> I think it's probably part of the src.tgz base set.
Main Index |
Thread Index |