projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't free ioctl cmds
[unix-history]
/
usr
/
src
/
sys
/
kern
/
uipc_usrreq.c
diff --git
a/usr/src/sys/kern/uipc_usrreq.c
b/usr/src/sys/kern/uipc_usrreq.c
index
8a32aaf
..
acca526
100644
(file)
--- a/
usr/src/sys/kern/uipc_usrreq.c
+++ b/
usr/src/sys/kern/uipc_usrreq.c
@@
-3,7
+3,7
@@
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)uipc_usrreq.c 6.1
6
(Berkeley) %G%
+ * @(#)uipc_usrreq.c 6.1
7
(Berkeley) %G%
*/
#include "param.h"
*/
#include "param.h"
@@
-41,6
+41,8
@@
uipc_usrreq(so, req, m, nam, rights)
register struct socket *so2;
int error = 0;
register struct socket *so2;
int error = 0;
+ if (req == PRU_CONTROL)
+ return (EOPNOTSUPP);
if (req != PRU_SEND && rights && rights->m_len) {
error = EOPNOTSUPP;
goto release;
if (req != PRU_SEND && rights && rights->m_len) {
error = EOPNOTSUPP;
goto release;
@@
-208,11
+210,6
@@
uipc_usrreq(so, req, m, nam, rights)
unp_drop(unp, ECONNABORTED);
break;
unp_drop(unp, ECONNABORTED);
break;
-/* SOME AS YET UNIMPLEMENTED HOOKS */
- case PRU_CONTROL:
- return (EOPNOTSUPP);
-
-/* END UNIMPLEMENTED HOOKS */
case PRU_SENSE:
((struct stat *) m)->st_blksize = so->so_snd.sb_hiwat;
if (so->so_type == SOCK_STREAM && unp->unp_conn != 0) {
case PRU_SENSE:
((struct stat *) m)->st_blksize = so->so_snd.sb_hiwat;
if (so->so_type == SOCK_STREAM && unp->unp_conn != 0) {