discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ANN: TimeMon 4.0 ported to GNUstep


From: Gregory John Casamento
Subject: Re: ANN: TimeMon 4.0 ported to GNUstep
Date: Tue, 25 Jan 2005 07:27:01 -0800 (PST)

Chris,

--- Chris Vetter <cbv@gmx.net> wrote:

> > > The problem is most likely that it can't read the /proc/stat file.  Are
> > > you
> > Yup, I dont have such a thing. There is a /proc on FreeBSD 4.X but that
> 
> As I said before: Using /proc to read system stati is evil_TM.
> There are standard library calls that will give the same functionality,
> after all.
> 
> Almost every UNIX I know of has /proc, but each implementation differs, eg.
> Solaris, AIX and HP/UX (bless you) use binary, not textual, files.
> 
> So, I say again: using /proc is evil_TM.

Yes, it is indeed evil(tm) on some level.  I will try to reduce the evilness.
:)

First make it work... then make it portable...  do both at the same time, if
possible. :)
 
> > will be going away in FreeBSD 5.X
> 
> Correct, it's gone.
> 
> > > If you let me know what OS you are using, I will try to implement an
> > > appropriate way to get the CPU stats.
> > Thanks, that wold be great - i could probably help if I knew
> > what stats you were after. There has to be an API for them
> > somewhere. The OS is FreeBSD, and it shoul.d really be done in
> > a /proc-less way if possible.
> 
> man systat and/or
> man libkvm or
> man kvm

None of these are available on Linux, or at least, not on my dist.

> depending on the system you're using. At least BSD'ish systems
> support kvm, Solaris included.
> 
> > BTW why the #import warnings though ?
> 
> Because #import support was supposed to "go away" in GCC 3.somthing.
> 
> -- 
> Chris

GJC

=====
Gregory John Casamento 
-- CEO/President Open Logic Corp. (A MD Corp.)
## Maintainer of Gorm (IB Equiv.) for GNUstep.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]