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 191919 2009-05-08 20:06:37Z ed $"); |
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> 39#include <sys/systm.h> 40 41#include <compat/svr4/svr4.h> 42#include <compat/svr4/svr4_types.h> 43#include <compat/svr4/svr4_util.h> 44#include <compat/svr4/svr4_signal.h> 45#include <compat/svr4/svr4_proto.h> 46#include <compat/svr4/svr4_stropts.h> 47#include <compat/svr4/svr4_ioctl.h> 48#include <compat/svr4/svr4_termios.h> |
49#include <compat/svr4/svr4_filio.h> 50#include <compat/svr4/svr4_sockio.h> 51 52#ifdef DEBUG_SVR4 53static void svr4_decode_cmd(u_long, char *, char *, int *, int *); 54/* 55 * Decode an ioctl command symbolically 56 */ --- 56 unchanged lines hidden (view full) --- 113#if defined(DEBUG_SVR4) 114 if (fp->f_type == DTYPE_SOCKET) { 115 struct socket *so = fp->f_data; 116 DPRINTF(("<<< IN: so_state = 0x%x\n", so->so_state)); 117 } 118#endif 119 120 switch (cmd & 0xff00) { |
121 case SVR4_TIOC: 122 DPRINTF(("term\n")); 123 fun = svr4_term_ioctl; 124 break; 125 126 case SVR4_STR: 127 DPRINTF(("stream\n")); 128 fun = svr4_stream_ioctl; --- 34 unchanged lines hidden --- |