summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-14 11:04:06 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-14 11:04:06 +0000
commit1d14ab3ff6a554ad76514dd6ab7007fcdb478a37 (patch)
tree76d737949c1c790e542a3ed44450aa6761e6d777 /sys/kern
parent71f76dd0db566ca751d290bf40f5babf7ebbf9d9 (diff)
More generic arguments to soo_stat.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c4
-rw-r--r--sys/kern/sys_socket.c10
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index adf489456ea..ceac7e51684 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.24 2001/05/14 10:51:26 art Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.25 2001/05/14 11:04:04 art Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -520,7 +520,7 @@ sys_fstat(p, v, retval)
break;
case DTYPE_SOCKET:
- error = soo_stat((struct socket *)fp->f_data, &ub);
+ error = soo_stat(fp, &ub, p);
break;
#ifndef OLD_PIPE
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
index 1d51c9349fa..e90ca720c5e 100644
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_socket.c,v 1.5 2001/03/01 20:54:34 provos Exp $ */
+/* $OpenBSD: sys_socket.c,v 1.6 2001/05/14 11:04:04 art Exp $ */
/* $NetBSD: sys_socket.c,v 1.13 1995/08/12 23:59:09 mycroft Exp $ */
/*
@@ -185,10 +185,12 @@ soo_select(fp, which, p)
}
int
-soo_stat(so, ub)
- register struct socket *so;
- register struct stat *ub;
+soo_stat(fp, ub, p)
+ struct file *fp;
+ struct stat *ub;
+ struct proc *p;
{
+ struct socket *so = (struct socket *)fp->f_data;
bzero((caddr_t)ub, sizeof (*ub));
ub->st_mode = S_IFSOCK;