Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54322
b: refs/heads/master
c: fda83a9
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 7, 2007
1 parent d9a797c commit 1cf01af
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77f6af778dc23514d897f4fdc7935329285ecb1b
refs/heads/master: fda83a99b2b49016b9d7ed562745969db25c4ef9
4 changes: 2 additions & 2 deletions trunk/arch/um/drivers/chan_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int generic_read(int fd, char *c_out, void *unused)
{
int n;

n = os_read_file(fd, c_out, sizeof(*c_out));
n = os_read_file_k(fd, c_out, sizeof(*c_out));

if(n == -EAGAIN)
return 0;
Expand All @@ -111,7 +111,7 @@ int generic_read(int fd, char *c_out, void *unused)

int generic_write(int fd, const char *buf, int n, void *unused)
{
return os_write_file(fd, buf, n);
return os_write_file_k(fd, buf, n);
}

int generic_window_size(int fd, void *unused, unsigned short *rows_out,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/drivers/cow_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static inline int cow_file_size(char *file, unsigned long long *size_out)

static inline int cow_write_file(int fd, void *buf, int size)
{
return(os_write_file(fd, buf, size));
return(os_write_file_k(fd, buf, size));
}

#endif
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/um/drivers/net_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void read_output(int fd, char *output, int len)

while(remain != 0){
expected = (remain < len) ? remain : len;
ret = os_read_file(fd, output, expected);
ret = os_read_file_k(fd, output, expected);
if (ret != expected) {
str = "data";
goto err;
Expand All @@ -94,7 +94,7 @@ int net_read(int fd, void *buf, int len)
{
int n;

n = os_read_file(fd, buf, len);
n = os_read_file_k(fd, buf, len);

if(n == -EAGAIN)
return 0;
Expand Down Expand Up @@ -122,7 +122,7 @@ int net_write(int fd, void *buf, int len)
{
int n;

n = os_write_file(fd, buf, len);
n = os_write_file_k(fd, buf, len);

if(n == -EAGAIN)
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ int read_cow_bitmap(int fd, void *buf, int offset, int len)
if(err < 0)
return(err);

err = os_read_file(fd, buf, len);
err = os_read_file_k(fd, buf, len);
if(err < 0)
return(err);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int load_initrd(char *filename, void *buf, int size)
printk("Opening '%s' failed - err = %d\n", filename, -fd);
return(-1);
}
n = os_read_file(fd, buf, size);
n = os_read_file_k(fd, buf, size);
if(n != size){
printk("Read of %d bytes from '%s' failed, err = %d\n", size,
filename, -n);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/physmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void physmem_forget_descriptor(int fd)
panic("physmem_forget_descriptor - failed to seek "
"to %lld in fd %d, error = %d\n",
offset, fd, -err);
err = os_read_file(fd, addr, PAGE_SIZE);
err = os_read_file_k(fd, addr, PAGE_SIZE);
if(err < 0)
panic("physmem_forget_descriptor - failed to read "
"from fd %d to 0x%p, error = %d\n",
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/sys-i386/bugs.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static char token(int fd, char *buf, int len, char stop)
ptr = buf;
end = &buf[len];
do {
n = os_read_file(fd, ptr, sizeof(*ptr));
n = os_read_file_k(fd, ptr, sizeof(*ptr));
c = *ptr++;
if(n != sizeof(*ptr)){
if(n == 0)
Expand Down

0 comments on commit 1cf01af

Please sign in to comment.