patch-2.1.4 linux/fs/proc/array.c
Next file: linux/fs/proc/inode.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Sun Oct 13 21:11:19 1996
- Orig file:
v2.1.3/linux/fs/proc/array.c
- Orig date:
Sat Sep 28 23:31:52 1996
diff -u --recursive --new-file v2.1.3/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -92,7 +92,7 @@
if (p + count1 > sizeof(struct user))
count1 = sizeof(struct user)-p;
pnt = (char *) &dump + p;
- memcpy_tofs(buf,(void *) pnt, count1);
+ copy_to_user(buf,(void *) pnt, count1);
buf += count1;
p += count1;
count -= count1;
@@ -106,7 +106,7 @@
count--;
read++;
}
- memcpy_tofs(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count);
+ copy_to_user(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count);
read += count;
file->f_pos += read;
return read;
@@ -147,7 +147,7 @@
buf++; p++; count--; read++;
}
pnt = (char *)prof_buffer + p - sizeof(unsigned int);
- memcpy_tofs(buf,(void *)pnt,count);
+ copy_to_user(buf,(void *)pnt,count);
read += count;
file->f_pos += read;
return read;
@@ -936,7 +936,7 @@
i = len-column;
if (i > count)
i = count;
- memcpy_tofs(destptr, line+column, i);
+ copy_to_user(destptr, line+column, i);
destptr += i; count -= i;
column += i;
if (column >= len) {
@@ -1115,7 +1115,7 @@
}
if (start != NULL) {
/* We have had block-adjusting processing! */
- memcpy_tofs(buf, start, length);
+ copy_to_user(buf, start, length);
file->f_pos += length;
count = length;
} else {
@@ -1127,7 +1127,7 @@
if (count + file->f_pos > length)
count = length - file->f_pos;
end = count + file->f_pos;
- memcpy_tofs(buf, (char *) page + file->f_pos, count);
+ copy_to_user(buf, (char *) page + file->f_pos, count);
file->f_pos = end;
}
free_page(page);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov