patch-pre2.0.9 linux/fs/read_write.c
Next file: linux/include/asm-alpha/bitops.h
Previous file: linux/fs/nfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 29 15:43:55 1996
- Orig file:
pre2.0.8/linux/fs/read_write.c
- Orig date:
Fri May 17 15:32:18 1996
diff -u --recursive --new-file pre2.0.8/linux/fs/read_write.c linux/fs/read_write.c
@@ -100,7 +100,7 @@
return 0;
}
-asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count)
+asmlinkage int sys_read(unsigned int fd,char * buf,int count)
{
int error;
struct file * file;
@@ -112,7 +112,7 @@
return -EBADF;
if (!file->f_op || !file->f_op->read)
return -EINVAL;
- if (!count)
+ if (count <= 0)
return 0;
error = locks_verify_area(FLOCK_VERIFY_READ,inode,file,file->f_pos,count);
if (error)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this