patch-2.1.31 linux/fs/pipe.c
Next file: linux/fs/proc/kmsg.c
Previous file: linux/fs/open.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed Apr 2 17:43:22 1997
- Orig file:
v2.1.30/linux/fs/pipe.c
- Orig date:
Sat Jan 25 13:46:13 1997
diff -u --recursive --new-file v2.1.30/linux/fs/pipe.c linux/fs/pipe.c
@@ -228,25 +228,28 @@
return POLLOUT | POLLWRNORM;
}
-static void pipe_read_release(struct inode * inode, struct file * filp)
+static int pipe_read_release(struct inode * inode, struct file * filp)
{
PIPE_READERS(*inode)--;
wake_up_interruptible(&PIPE_WAIT(*inode));
+ return 0;
}
-static void pipe_write_release(struct inode * inode, struct file * filp)
+static int pipe_write_release(struct inode * inode, struct file * filp)
{
PIPE_WRITERS(*inode)--;
wake_up_interruptible(&PIPE_WAIT(*inode));
+ return 0;
}
-static void pipe_rdwr_release(struct inode * inode, struct file * filp)
+static int pipe_rdwr_release(struct inode * inode, struct file * filp)
{
if (filp->f_mode & FMODE_READ)
PIPE_READERS(*inode)--;
if (filp->f_mode & FMODE_WRITE)
PIPE_WRITERS(*inode)--;
wake_up_interruptible(&PIPE_WAIT(*inode));
+ return 0;
}
static int pipe_read_open(struct inode * inode, struct file * filp)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov