[lkml]   [2001]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PROPOSAL: dot-proc interface [was: /proc stuff]
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').

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.127 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site