dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / kernel / fs / sockfs / sock_notsupp.c
blob9228a3e78ef73d0cd6f18a338c40e813894e9b19
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #include <sys/types.h>
28 #include <sys/param.h>
29 #include <sys/stropts.h>
30 #include <sys/socket.h>
31 #include <sys/socketvar.h>
32 #include <sys/socket_proto.h>
35 /*ARGSUSED*/
36 int
37 sock_accept_notsupp(sock_lower_handle_t low1, sock_lower_handle_t low2,
38 sock_upper_handle_t upper, struct cred *cr)
40 return (EOPNOTSUPP);
43 /*ARGSUSED*/
44 int
45 sock_bind_notsupp(sock_lower_handle_t handle, struct sockaddr *name,
46 socklen_t namelen, struct cred *cr)
48 return (EOPNOTSUPP);
51 /*ARGSUSED*/
52 int
53 sock_listen_notsupp(sock_lower_handle_t handle, int backlog,
54 struct cred *cr)
56 return (EOPNOTSUPP);
59 /*ARGSUSED*/
60 int
61 sock_connect_notsupp(sock_lower_handle_t handle,
62 const struct sockaddr *name, socklen_t namelen, sock_connid_t *conp,
63 struct cred *cr)
65 return (EOPNOTSUPP);
68 /*ARGSUSED*/
69 int
70 sock_getsockname_notsupp(sock_lower_handle_t handle, struct sockaddr *sa,
71 socklen_t *len, struct cred *cr)
73 return (EOPNOTSUPP);
76 /*ARGSUSED*/
77 int
78 sock_getpeername_notsupp(sock_lower_handle_t handle, struct sockaddr *addr,
79 socklen_t *addrlen, struct cred *cr)
81 return (EOPNOTSUPP);
84 /*ARGSUSED*/
85 int
86 sock_getsockopt_notsupp(sock_lower_handle_t handle, int level,
87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr)
89 return (EOPNOTSUPP);
92 /*ARGSUSED*/
93 int
94 sock_setsockopt_notsupp(sock_lower_handle_t handle, int level,
95 int option_name, const void *optval, socklen_t optlen, struct cred *cr)
97 return (EOPNOTSUPP);
100 /*ARGSUSED*/
102 sock_send_notsupp(sock_lower_handle_t handle, mblk_t *mp,
103 struct msghdr *msg, struct cred *cr)
105 return (EOPNOTSUPP);
108 /*ARGSUSED*/
110 sock_senduio_notsupp(sock_lower_handle_t handle, struct uio *uiop,
111 struct msghdr *msg, struct cred *cr)
113 return (EOPNOTSUPP);
116 /*ARGSUSED*/
118 sock_recvuio_notsupp(sock_lower_handle_t handle, struct uio *uiop,
119 struct msghdr *msg, struct cred *cr)
121 return (EOPNOTSUPP);
124 /*ARGSUSED*/
125 short
126 sock_poll_notsupp(sock_lower_handle_t handle, short events, int anyyet,
127 cred_t *cred)
129 return (EOPNOTSUPP);
132 /*ARGSUSED*/
134 sock_shutdown_notsupp(sock_lower_handle_t handle, int how, struct cred *cr)
136 return (EOPNOTSUPP);
139 /*ARGSUSED*/
140 void
141 sock_clr_flowctrl_notsupp(sock_lower_handle_t proto_handle)
145 /*ARGSUSED*/
147 sock_ioctl_notsupp(sock_lower_handle_t handle, int cmd, intptr_t arg,
148 int mode, int32_t *rvalp, cred_t *cred)
150 return (EOPNOTSUPP);
153 /* ARGSUSED */
155 sock_close_notsupp(sock_lower_handle_t proto_handle, int flags, cred_t *cr)
157 return (EOPNOTSUPP);
160 sock_downcalls_t sock_down_notsupp = {
161 NULL,
162 sock_accept_notsupp,
163 sock_bind_notsupp,
164 sock_listen_notsupp,
165 sock_connect_notsupp,
166 sock_getpeername_notsupp,
167 sock_getsockname_notsupp,
168 sock_getsockopt_notsupp,
169 sock_setsockopt_notsupp,
170 sock_send_notsupp,
171 sock_senduio_notsupp,
172 sock_recvuio_notsupp,
173 sock_poll_notsupp,
174 sock_shutdown_notsupp,
175 sock_clr_flowctrl_notsupp,
176 sock_ioctl_notsupp,
177 sock_close_notsupp,