1/*
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 13 unchanged lines hidden (view full) ---
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_ioctl.c 116174 2003-06-10 21:44:29Z obrien $");
31
32#include <sys/param.h>
33#include <sys/proc.h>
34#include <sys/file.h>
35#include <sys/filedesc.h>
36#include <sys/fcntl.h>
37#include <sys/socket.h>
38#include <sys/socketvar.h>
--- 75 unchanged lines hidden (view full) ---
114#if defined(DEBUG_SVR4)
115 if (fp->f_type == DTYPE_SOCKET) {
116 struct socket *so = fp->f_data;
117 DPRINTF(("<<< IN: so_state = 0x%x\n", so->so_state));
118 }
119#endif
120
121 switch (cmd & 0xff00) {
122 case SVR4_tIOC:
123 DPRINTF(("ttold\n"));
124 fun = svr4_ttold_ioctl;
125 break;
126
127 case SVR4_TIOC:
128 DPRINTF(("term\n"));
129 fun = svr4_term_ioctl;
130 break;
131
132 case SVR4_STR:
133 DPRINTF(("stream\n"));
--- 35 unchanged lines hidden ---
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 13 unchanged lines hidden (view full) ---
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_ioctl.c 116174 2003-06-10 21:44:29Z obrien $");
31
32#include <sys/param.h>
33#include <sys/proc.h>
34#include <sys/file.h>
35#include <sys/filedesc.h>
36#include <sys/fcntl.h>
37#include <sys/socket.h>
38#include <sys/socketvar.h>
--- 75 unchanged lines hidden (view full) ---
114#if defined(DEBUG_SVR4)
115 if (fp->f_type == DTYPE_SOCKET) {
116 struct socket *so = fp->f_data;
117 DPRINTF(("<<< IN: so_state = 0x%x\n", so->so_state));
118 }
119#endif
120
121 switch (cmd & 0xff00) {
122 case SVR4_tIOC:
123 DPRINTF(("ttold\n"));
124 fun = svr4_ttold_ioctl;
125 break;
126
127 case SVR4_TIOC:
128 DPRINTF(("term\n"));
129 fun = svr4_term_ioctl;
130 break;
131
132 case SVR4_STR:
133 DPRINTF(("stream\n"));
--- 35 unchanged lines hidden ---