diff options
| author | 2001-05-14 10:51:25 +0000 | |
|---|---|---|
| committer | 2001-05-14 10:51:25 +0000 | |
| commit | 90a883e05c30bb1c9af86f6533195a63367d52e6 (patch) | |
| tree | d49c49e8eb956e07b1e1a4e36641b1e5459ded15 /sys/kern/sys_pipe.c | |
| parent | We already have a prototype for pipe_stat in sys/pipe.h (diff) | |
| download | wireguard-openbsd-90a883e05c30bb1c9af86f6533195a63367d52e6.tar.xz wireguard-openbsd-90a883e05c30bb1c9af86f6533195a63367d52e6.zip | |
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; |
