diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-05-06 17:51:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:13:03 -0400 |
commit | a6ea4cceed18edebe1eb6001cb9e0f88cd741a6c (patch) | |
tree | 4a747a92c9bd7a8703004603ee9e91f8bfb7e95a /arch/um/drivers/net_user.c | |
parent | a263672424e591067e42e1d8371e56927fe73af8 (diff) |
uml: rename os_{read_write}_file_k back to os_{read_write}_file
Rename os_{read_write}_file_k back to os_{read_write}_file, delete
the originals and their bogus infrastructure, and fix all the callers.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/net_user.c')
-rw-r--r-- | arch/um/drivers/net_user.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/um/drivers/net_user.c b/arch/um/drivers/net_user.c index 8bc6688c4f0f..3503cff867c3 100644 --- a/arch/um/drivers/net_user.c +++ b/arch/um/drivers/net_user.c | |||
@@ -63,7 +63,7 @@ void read_output(int fd, char *output, int len) | |||
63 | } | 63 | } |
64 | 64 | ||
65 | *output = '\0'; | 65 | *output = '\0'; |
66 | ret = os_read_file_k(fd, &remain, sizeof(remain)); | 66 | ret = os_read_file(fd, &remain, sizeof(remain)); |
67 | 67 | ||
68 | if (ret != sizeof(remain)) { | 68 | if (ret != sizeof(remain)) { |
69 | expected = sizeof(remain); | 69 | expected = sizeof(remain); |
@@ -73,7 +73,7 @@ void read_output(int fd, char *output, int len) | |||
73 | 73 | ||
74 | while(remain != 0){ | 74 | while(remain != 0){ |
75 | expected = (remain < len) ? remain : len; | 75 | expected = (remain < len) ? remain : len; |
76 | ret = os_read_file_k(fd, output, expected); | 76 | ret = os_read_file(fd, output, expected); |
77 | if (ret != expected) { | 77 | if (ret != expected) { |
78 | str = "data"; | 78 | str = "data"; |
79 | goto err; | 79 | goto err; |
@@ -94,7 +94,7 @@ int net_read(int fd, void *buf, int len) | |||
94 | { | 94 | { |
95 | int n; | 95 | int n; |
96 | 96 | ||
97 | n = os_read_file_k(fd, buf, len); | 97 | n = os_read_file(fd, buf, len); |
98 | 98 | ||
99 | if(n == -EAGAIN) | 99 | if(n == -EAGAIN) |
100 | return 0; | 100 | return 0; |
@@ -122,7 +122,7 @@ int net_write(int fd, void *buf, int len) | |||
122 | { | 122 | { |
123 | int n; | 123 | int n; |
124 | 124 | ||
125 | n = os_write_file_k(fd, buf, len); | 125 | n = os_write_file(fd, buf, len); |
126 | 126 | ||
127 | if(n == -EAGAIN) | 127 | if(n == -EAGAIN) |
128 | return 0; | 128 | return 0; |