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

From: Tim Jansen (tim@tjansen.de)
Date: Mon Nov 05 2001 - 18:35:54 EST


On Monday 05 November 2001 23:59, Erik Andersen wrote:
> Come now, it really isn't that difficult:
> if (sscanf(line, "%4u %4u %llu %s", &major, &minor, &size, name) == 4)
> {
> add_partition(name, size, major, minor);
> }

But how can the user know this without looking into the kernel? Compare it to
/proc/mounts. Proc mounts escapes spaces and other special characters in
strings with an octal encoding (so spaces are replaced by '\040').

bye...
-
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/



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:27 EST