lkml.org 
[lkml]   [2004]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] task name handling in proc fs
Mike Kravetz <kravetz@us.ibm.com> wrote:
>
> --- linux-2.6.7/fs/proc/array.c Wed Jun 16 05:19:36 2004
> +++ linux-2.6.7.ptest/fs/proc/array.c Thu Jul 1 17:44:14 2004
> @@ -97,14 +97,14 @@
> name++;
> i--;
> *buf = c;
> - if (!c)
> + if (!*buf)
> break;
> - if (c == '\\') {
> - buf[1] = c;
> + if (*buf == '\\') {
> + buf[1] = *buf;
> buf += 2;
> continue;
> }
> - if (c == '\n') {
> + if (*buf == '\n') {
> buf[0] = '\\';
> buf[1] = 'n';
> buf += 2;

What is this code for?
-
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/

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