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

Pascal Schmidt (pleasure.and.pain@web.de)
Mon, 12 Nov 2001 14:43:41 +0100 (CET)


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/) ]>-

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/