diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-14 10:51:28 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-14 10:51:28 +0000 |
commit | 79a7474f3a12e31e9c0d6d36e0bbd46918bdff21 (patch) | |
tree | 1d65b40721e1dd9578bfae1aa493d0ee47989fe3 /sys/kern/sys_pipe.c | |
parent | b296e0990d987b38fe241c1b0f52cd3f04a94d72 (diff) |
More generic arguments to pipe_stat.
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r-- | sys/kern/sys_pipe.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 4c4574522a5..e687f3e850f 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.27 2001/05/14 10:35:42 art Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.28 2001/05/14 10:51:26 art Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -671,10 +671,13 @@ pipe_select(fp, which, p) } int -pipe_stat(pipe, ub) - struct pipe *pipe; +pipe_stat(fp, ub, p) + struct file *fp; struct stat *ub; + struct proc *p; { + struct pipe *pipe = (struct pipe *)fp->f_data; + bzero((caddr_t)ub, sizeof (*ub)); ub->st_mode = S_IFIFO; ub->st_blksize = pipe->pipe_buffer.size; |