Re: PROPOSAL: dot-proc interface [was: /proc stuff]

Pascal Schmidt
2001-11-12T13:44:26Z

On Sun, 11 Nov 2001, Jakob Østergaard wrote:

> Now, my program needs to deal with the data, perform operations on it,
> so naturally I need to know what kind of data I'm dealing with. Most likely,
> my software will *expect* some certain type, but if I have no way of verifying
> that my assumption is correct, I will lose sooner or later...

Why not read everything into a 1024-bit signed variable? Will work for
every numeric value in /proc. It's a bit of a hassle to code, but it is
possible. You only need to know the type if you want to write a numerical
value to a file in /proc, and even then the driver behind that /proc entry
should do sanity checks.

--
Ciao, Pascal

-<[ pharao90@tzi.de, netmail 2:241/215.72, home http://cobol.cjb.net/) ]>-