Deleted Added
full compact
ibcs2_socksys.c (3672) ibcs2_socksys.c (8876)
1/*-
2 * Copyright (c) 1994 Mostyn Lewis
3 * All rights reserved.
4 *
5 * This software is based on code which is:
6 * Copyright (c) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
1/*-
2 * Copyright (c) 1994 Mostyn Lewis
3 * All rights reserved.
4 *
5 * This software is based on code which is:
6 * Copyright (c) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $Id: ibcs2_socksys.c,v 1.1 1994/10/14 08:53:08 sos Exp $
31 * $Id: ibcs2_socksys.c,v 1.2 1994/10/17 22:13:08 sos Exp $
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/filedesc.h>
37#include <sys/file.h>
38#include <sys/kernel.h>
39#include <sys/mbuf.h>

--- 71 unchanged lines hidden (view full) ---

111 };
112
113 printf("ss_syscall: [%d] ",p->p_pid);
114 if(cmd < 0 || (cmd > CMD_SO_SETITIMER && cmd != CMD_SO_SS_DEBUG) )
115 printf("? ");
116 else {
117 if(cmd == CMD_SO_SS_DEBUG)
118 printf("%s ","ss_debug");
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/filedesc.h>
37#include <sys/file.h>
38#include <sys/kernel.h>
39#include <sys/mbuf.h>

--- 71 unchanged lines hidden (view full) ---

111 };
112
113 printf("ss_syscall: [%d] ",p->p_pid);
114 if(cmd < 0 || (cmd > CMD_SO_SETITIMER && cmd != CMD_SO_SS_DEBUG) )
115 printf("? ");
116 else {
117 if(cmd == CMD_SO_SS_DEBUG)
118 printf("%s ","ss_debug");
119 else
119 else
120 printf("%s ",ss_syscall_strings[cmd]);
121 }
122 printf("(%d) <0x%x,0x%x,0x%x,0x%x,0x%x,0x%x>\n",
123 cmd,
124 ((struct ss_call *)arg)->arg[1],
125 ((struct ss_call *)arg)->arg[2],
126 ((struct ss_call *)arg)->arg[3],
127 ((struct ss_call *)arg)->arg[4],

--- 584 unchanged lines hidden (view full) ---

712 ioctl_strings = ioctl_I_strings;
713 if (cmd_ordinal > 66)
714 cmd_ordinal = -1;
715 break;
716
717 default:
718 cmd_type = '?';
719 break;
120 printf("%s ",ss_syscall_strings[cmd]);
121 }
122 printf("(%d) <0x%x,0x%x,0x%x,0x%x,0x%x,0x%x>\n",
123 cmd,
124 ((struct ss_call *)arg)->arg[1],
125 ((struct ss_call *)arg)->arg[2],
126 ((struct ss_call *)arg)->arg[3],
127 ((struct ss_call *)arg)->arg[4],

--- 584 unchanged lines hidden (view full) ---

712 ioctl_strings = ioctl_I_strings;
713 if (cmd_ordinal > 66)
714 cmd_ordinal = -1;
715 break;
716
717 default:
718 cmd_type = '?';
719 break;
720
720
721 }
722 ioctl_type = (0xe0000000 & cmd) >> 29;
723 ioctl_len = (cmd >> 16) & SS_IOCPARM_MASK;
724
725 printf("sockioctl: [%d] ",p->p_pid);
726 if(cmd_type != '?'){
727 if(cmd_ordinal != -1)
728 printf("%s %s('%c',%d,l=%d) ",ioctl_strings[cmd_ordinal],

--- 443 unchanged lines hidden (view full) ---

1172 case SO_NO_CHECK:
1173 case SO_ORDREL:
1174 case SO_PRIORITY:
1175 return (ENOPROTOOPT);
1176 }
1177
1178 return (ENOPROTOOPT);
1179}
721 }
722 ioctl_type = (0xe0000000 & cmd) >> 29;
723 ioctl_len = (cmd >> 16) & SS_IOCPARM_MASK;
724
725 printf("sockioctl: [%d] ",p->p_pid);
726 if(cmd_type != '?'){
727 if(cmd_ordinal != -1)
728 printf("%s %s('%c',%d,l=%d) ",ioctl_strings[cmd_ordinal],

--- 443 unchanged lines hidden (view full) ---

1172 case SO_NO_CHECK:
1173 case SO_ORDREL:
1174 case SO_PRIORITY:
1175 return (ENOPROTOOPT);
1176 }
1177
1178 return (ENOPROTOOPT);
1179}
1180
1180
1181#define SS_CONVERT
1182int system_type = SS_FREEBSD; /* FreeBSD */
1183
1184int
1185ss_convert(what, this, otherwise)
1186 struct whatever **what;
1187 int *this;
1188 int otherwise;

--- 205 unchanged lines hidden ---
1181#define SS_CONVERT
1182int system_type = SS_FREEBSD; /* FreeBSD */
1183
1184int
1185ss_convert(what, this, otherwise)
1186 struct whatever **what;
1187 int *this;
1188 int otherwise;

--- 205 unchanged lines hidden ---