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

Tim Jansen
2001-11-05T23:33:33Z

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