summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-02-18 20:43:07 +0000
committerwollman <wollman@FreeBSD.org>1997-02-18 20:43:07 +0000
commit348a992441e4cfa6fff7a76bd128868ccc008872 (patch)
tree42867fb3be45df5695638f4334b3466cd51c6e75 /sys/kern/uipc_sockbuf.c
parenta7fe8a4f0755bc16cc827cc40c168fbaf65f9dee (diff)
downloadFreeBSD-src-348a992441e4cfa6fff7a76bd128868ccc008872.zip
FreeBSD-src-348a992441e4cfa6fff7a76bd128868ccc008872.tar.gz
uipc_mbuf.c: do a better job of counting how often we have to wait
for memory, or are denied a cluster. uipc_socket2.c: define some generic ``operation-not-supported'' entry points for pr_usrreqs.
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 463b4bb..2d753dd7 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -971,7 +971,42 @@ struct pr_usrreqs pru_oldstyle = {
* supported by a protocol. Fill in as needed.
*/
int
+pru_accept_notsupp(struct socket *so, struct mbuf *nam)
+{
+ return EOPNOTSUPP;
+}
+
+int
pru_connect2_notsupp(struct socket *so1, struct socket *so2)
{
return EOPNOTSUPP;
}
+
+int
+pru_listen_notsupp(struct socket *so)
+{
+ return EOPNOTSUPP;
+}
+
+int
+pru_rcvd_notsupp(struct socket *so, int flags)
+{
+ return EOPNOTSUPP;
+}
+
+int
+pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags)
+{
+ return EOPNOTSUPP;
+}
+
+/*
+ * This isn't really a ``null'' operation, but it's the default one
+ * and doesn't do anything destructive.
+ */
+int
+pru_sense_null(struct socket *so, struct stat *sb)
+{
+ sb->st_blksize = so->so_snd.sb_hiwat;
+ return 0;
+}
OpenPOWER on IntegriCloud