Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174223973
D36283.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36283.diff
View Options
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -335,7 +335,8 @@
}
ub->st_uid = so->so_cred->cr_uid;
ub->st_gid = so->so_cred->cr_gid;
- error = so->so_proto->pr_sense(so, ub);
+ if (so->so_proto->pr_sense)
+ error = so->so_proto->pr_sense(so, ub);
SOCK_UNLOCK(so);
return (error);
}
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -47,7 +47,6 @@
#include <sys/rmlock.h>
#include <sys/socketvar.h>
#include <sys/systm.h>
-#include <sys/stat.h> /* XXXGL: remove */
#include <machine/atomic.h>
@@ -175,17 +174,6 @@
return (EOPNOTSUPP);
}
-/*
- * This isn't really a ``null'' operation, but it's the default one and
- * doesn't do anything destructive.
- */
-static int
-pr_sense_notsupp(struct socket *so, struct stat *sb)
-{
- sb->st_blksize = so->so_snd.sb_hiwat;
- return (0);
-}
-
static int
pr_shutdown_notsupp(struct socket *so)
{
@@ -246,7 +234,6 @@
NOTSUPP(pr_rcvd);
NOTSUPP(pr_rcvoob);
NOTSUPP(pr_send);
- NOTSUPP(pr_sense);
NOTSUPP(pr_shutdown);
NOTSUPP(pr_sockaddr);
NOTSUPP(pr_sosend);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 2, 12:10 PM (13 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40081428
Default Alt Text
D36283.diff (1 KB)
Attached To
Mode
D36283: sockets: for stat(2) on a socket don't report hiwat as block size
Attached
Detach File
Event Timeline
Log In to Comment