patch-2.0.21-2.1.0 linux/drivers/char/ftape/kernel-interface.c
Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/char/cyclades.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Mon Sep 30 10:43:38 1996
- Orig file:
lx2.0/v2.0.21/linux/drivers/char/ftape/kernel-interface.c
- Orig date:
Fri May 31 13:54:08 1996
diff -u --recursive --new-file lx2.0/v2.0.21/linux/drivers/char/ftape/kernel-interface.c linux/drivers/char/ftape/kernel-interface.c
@@ -61,10 +61,10 @@
static void ftape_close(struct inode *ino, struct file *filep);
static int ftape_ioctl(struct inode *ino, struct file *filep,
unsigned int command, unsigned long arg);
-static int ftape_read(struct inode *ino, struct file *fp, char *buff,
- int req_len);
-static int ftape_write(struct inode *ino, struct file *fp, const char *buff,
- int req_len);
+static long ftape_read(struct inode *ino, struct file *fp,
+ char *buff, unsigned long req_len);
+static long ftape_write(struct inode *ino, struct file *fp,
+ const char *buff, unsigned long req_len);
static struct file_operations ftape_cdev =
{
@@ -310,13 +310,14 @@
/* Read from tape device
*/
-static int ftape_read(struct inode *ino, struct file *fp, char *buff, int req_len)
+static long ftape_read(struct inode *ino, struct file *fp,
+ char *buff, unsigned long req_len)
{
TRACE_FUN(5, "ftape_read");
int result = -EIO;
int old_sigmask;
- TRACEi(5, "called with count:", req_len);
+ TRACEi(5, "called with count:", (int) req_len);
if (!busy_flag || MINOR(ino->i_rdev) != ftape_unit || ftape_failure) {
TRACE(1, "failed: not busy, failure or wrong unit");
TRACE_EXIT;
@@ -333,13 +334,14 @@
/* Write to tape device
*/
-static int ftape_write(struct inode *ino, struct file *fp, const char *buff, int req_len)
+static long ftape_write(struct inode *ino, struct file *fp,
+ const char *buff, unsigned long req_len)
{
TRACE_FUN(8, "ftape_write");
int result = -EIO;
int old_sigmask;
- TRACEi(5, "called with count:", req_len);
+ TRACEi(5, "called with count:", (int) req_len);
if (!busy_flag || MINOR(ino->i_rdev) != ftape_unit || ftape_failure) {
TRACE(1, "failed: not busy, failure or wrong unit");
TRACE_EXIT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov