patch-2.0.21-2.1.0 linux/fs/pipe.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Sat Sep 28 23:52:55 1996
- Orig file:
lx2.0/v2.0.21/linux/fs/pipe.c
- Orig date:
Sun Jul 7 20:27:04 1996
diff -u --recursive --new-file lx2.0/v2.0.21/linux/fs/pipe.c linux/fs/pipe.c
@@ -27,7 +27,8 @@
/* in case of paging and multiple read/write on the same pipe. (FGC) */
-static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count)
+static long pipe_read(struct inode * inode, struct file * filp,
+ char * buf, unsigned long count)
{
int chars = 0, size = 0, read = 0;
char *pipebuf;
@@ -76,7 +77,8 @@
return 0;
}
-static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count)
+static long pipe_write(struct inode * inode, struct file * filp,
+ const char * buf, unsigned long count)
{
int chars = 0, free = 0, written = 0;
char *pipebuf;
@@ -124,17 +126,20 @@
return written;
}
-static int pipe_lseek(struct inode * inode, struct file * file, off_t offset, int orig)
+static long long pipe_lseek(struct inode * inode, struct file * file,
+ long long offset, int orig)
{
return -ESPIPE;
}
-static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count)
+static long bad_pipe_r(struct inode * inode, struct file * filp,
+ char * buf, unsigned long count)
{
return -EBADF;
}
-static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count)
+static long bad_pipe_w(struct inode * inode, struct file * filp,
+ const char * buf, unsigned long count)
{
return -EBADF;
}
@@ -214,7 +219,8 @@
* the open() code hasn't guaranteed a connection (O_NONBLOCK),
* and we need to act differently until we do get a writer..
*/
-static int connect_read(struct inode * inode, struct file * filp, char * buf, int count)
+static long connect_read(struct inode * inode, struct file * filp,
+ char * buf, unsigned long count)
{
if (PIPE_EMPTY(*inode) && !PIPE_WRITERS(*inode))
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov