2
0
Fork 0

Changes for new modules kernel code.

This commit is contained in:
mike 1995-02-13 10:13:30 +00:00
parent 3ce588268f
commit 4a1c9260b3
37 changed files with 131 additions and 46 deletions

View file

@ -1,5 +1,7 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
#include <linux/errno.h>
@ -21,7 +23,6 @@
#include <linux/time.h>
#include <linux/termios.h>
#include <linux/sys.h>
#include <linux/version.h>
/* Zero for auto allocation. The major number allocated can be found

View file

@ -28,7 +28,9 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS

View file

@ -9,7 +9,9 @@
* Copyright 1993, 1994: Eric Youngdale (ericy@cais.com).
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS

View file

@ -3,7 +3,7 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: binfmt_xout.c,v 1.25 1995/01/27 13:39:58 mike Exp $
* $Id: binfmt_xout.c,v 1.26 1995/02/13 10:13:02 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/binfmt_xout.c,v $
*
* This file is based upon code written by Al Longyear for the COFF file
@ -11,7 +11,9 @@
* the ELF object file format. Any errors are most likely my own however.
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis
*
* $Id: bsd.c,v 1.7 1994/12/08 11:56:32 mike Exp $
* $Id: bsd.c,v 1.8 1995/02/13 10:13:03 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/bsd.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis
*
* $Id: bsdioctl.c,v 1.9 1995/02/02 13:48:05 mike Exp $
* $Id: bsdioctl.c,v 1.10 1995/02/13 10:13:04 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/bsdioctl.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: bsdsignal.c,v 1.5 1994/12/08 11:56:34 mike Exp $
* $Id: bsdsignal.c,v 1.6 1995/02/13 10:13:04 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/bsdsignal.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis
*
* $Id: bsdsocket.c,v 1.3 1994/12/08 11:56:34 mike Exp $
* $Id: bsdsocket.c,v 1.4 1995/02/13 10:13:05 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/bsdsocket.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis
*
* $Id: bsdstat.c,v 1.4 1995/01/25 09:19:00 mike Exp $
* $Id: bsdstat.c,v 1.5 1995/02/13 10:13:05 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/bsdstat.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -6,16 +6,16 @@
* Modified by Eric Youngdale to include all ibcs syscalls.
* Re-written by Drew Sullivan to handle lots more of the syscalls correctly.
*
* $Id: coff.c,v 1.13 1995/01/17 17:12:08 mike Exp $
* $Id: coff.c,v 1.14 1995/02/13 10:13:07 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/coff.c,v $
*/
#define __KERNEL__ 1
/*
* Emulate.c contains the entry point for the 'lcall 7,xxx' handler.
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -24,15 +24,14 @@
* the Linux TCP/IP stack.
* -- Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: emulate.c,v 1.24 1995/01/27 13:39:59 mike Exp $
* $Id: emulate.c,v 1.25 1995/02/13 10:13:07 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/emulate.c,v $
*/
/*
* Emulate.c contains the entry point for the 'lcall 7,xxx' handler.
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
@ -53,7 +52,6 @@
#include <linux/sys.h>
#include <linux/personality.h>
#include <linux/binfmts.h>
#include <linux/version.h>
#include <ibcs/bsd.h>
#include <ibcs/ibcs.h>

View file

@ -10,6 +10,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -6,11 +6,14 @@
* Written by Drew Sullivan.
* Rewritten by Mike Jagdis.
*
* $Id: ioctl.c,v 1.30 1995/02/02 15:54:25 mike Exp $
* $Id: ioctl.c,v 1.31 1995/02/13 10:13:09 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/ioctl.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -36,11 +36,14 @@
* Special thanks to Brad Pepers for adding in the GETALL and SETALL
* case of semaphores. (pepersb@cuug.ab.ca)
*
* $Id: ipc.c,v 1.14 1994/12/08 11:56:40 mike Exp $
* $Id: ipc.c,v 1.15 1995/02/13 10:13:10 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/ipc.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,11 +3,14 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: map.c,v 1.7 1995/01/25 09:19:11 mike Exp $
* $Id: map.c,v 1.8 1995/02/13 10:13:11 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/map.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/sched.h>
#include <linux/net.h>
#include <linux/socket.h>

View file

@ -6,6 +6,9 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/mman.h>

View file

@ -4,7 +4,7 @@
* Copyright (C) 1993 Joe Portman (baron@hebron.connected.com)
* Copyright (C) 1993, 1994 Drew Sullivan (re-worked for iBCS2)
*
* $Id: open.c,v 1.15 1995/01/04 11:49:19 mike Exp $
* $Id: open.c,v 1.16 1995/02/13 10:13:12 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/open.c,v $
*/
@ -12,6 +12,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -16,6 +16,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,7 +3,7 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: secureware.c,v 1.3 1995/01/25 09:19:13 mike Exp $
* $Id: secureware.c,v 1.4 1995/02/13 10:13:13 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/secureware.c,v $
*
* SecureWare, Inc. provided the C2 security subsystem used on SCO Unix.
@ -16,6 +16,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>

View file

@ -11,12 +11,15 @@
* Please consider this closely if you plan on changing this mode.
* -- Al Longyear
*
* $Id: signal.c,v 1.16 1995/02/02 15:54:26 mike Exp $
* $Id: signal.c,v 1.17 1995/02/13 10:13:14 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/signal.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: socket.c,v 1.4 1994/12/08 11:56:46 mike Exp $
* $Id: socket.c,v 1.5 1995/02/13 10:13:14 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/socket.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,7 +3,7 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: socksys.c,v 1.33 1995/02/02 15:54:26 mike Exp $
* $Id: socksys.c,v 1.34 1995/02/13 10:13:15 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/socksys.c,v $
*/
@ -13,7 +13,9 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS

View file

@ -6,13 +6,16 @@
* Hacked by Eric Youngdale for iBCS.
* Added to by Drew Sullivan.
*
* $Id: stat.c,v 1.4 1995/01/25 09:19:16 mike Exp $
* $Id: stat.c,v 1.5 1995/02/13 10:13:17 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/stat.c,v $
*/
#define __KERNEL__ 1
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: stream.c,v 1.2 1994/12/08 11:56:48 mike Exp $
* $Id: stream.c,v 1.3 1995/02/13 10:13:17 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/stream.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: sysconf.c,v 1.4 1994/12/08 11:56:48 mike Exp $
* $Id: sysconf.c,v 1.5 1995/02/13 10:13:18 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/sysconf.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: sysfs.c,v 1.9 1994/12/08 11:56:49 mike Exp $
* $Id: sysfs.c,v 1.10 1995/02/13 10:13:18 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/sysfs.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: sysi86.c,v 1.4 1994/12/08 11:56:49 mike Exp $
* $Id: sysi86.c,v 1.5 1995/02/13 10:13:19 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/sysi86.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/config.h>

View file

@ -10,6 +10,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/sockios.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: syslocal.c,v 1.1 1994/12/16 16:27:07 mike Exp $
* $Id: syslocal.c,v 1.2 1995/02/13 10:13:20 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/syslocal.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/config.h>

View file

@ -7,12 +7,15 @@
* April 9 1994, corrected file size passed to/from setrlimit/getrlimit
* -- Graham Adams (gadams@ddrive.demon.co.uk)
*
* $Id: ulimit.c,v 1.4 1994/12/08 11:56:50 mike Exp $
* $Id: ulimit.c,v 1.5 1995/02/13 10:13:20 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/ulimit.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -11,6 +11,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -17,12 +17,15 @@
* Written by Scott Michel, scottm@intime.com
* (c) 1994 Scott Michel as part of the Linux iBCS-2 emulator project.
*
* $Id: vtkd.c,v 1.3 1994/12/08 11:56:52 mike Exp $
* $Id: vtkd.c,v 1.4 1995/02/13 10:13:21 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/vtkd.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,12 +3,15 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: wysev386.c,v 1.6 1994/12/08 11:56:53 mike Exp $
* $Id: wysev386.c,v 1.7 1995/02/13 10:13:22 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/wysev386.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,7 +3,7 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: wysev386i.c,v 1.4 1994/12/08 11:56:53 mike Exp $
* $Id: wysev386i.c,v 1.5 1995/02/13 10:13:22 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/Attic/wysev386i.c,v $
*/
@ -14,6 +14,9 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/sockios.h>

View file

@ -6,12 +6,15 @@
*
* This contains the set of Xenix syscalls that are used by SCO binaries
*
* $Id: xnx.c,v 1.14 1994/12/09 09:52:40 mike Exp $
* $Id: xnx.c,v 1.15 1995/02/13 10:13:23 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/xnx.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -6,12 +6,15 @@
* Hacked by Eric Youngdale for iBCS (1993, 1994).
* Added to by Drew Sullivan, modified by EY for xstat (used by SVr4).
*
* $Id: xstat.c,v 1.5 1995/01/25 09:19:17 mike Exp $
* $Id: xstat.c,v 1.6 1995/02/13 10:13:24 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/iBCSemul/xstat.c,v $
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/segment.h>
#ifndef KERNEL_DS
#include <linux/segment.h>

View file

@ -3,7 +3,7 @@
*
* Copyright (C) 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
*
* $Id: socksys.h,v 1.4 1995/02/02 10:52:30 mike Exp $
* $Id: socksys.h,v 1.5 1995/02/13 10:13:30 mike Exp $
* $Source: /nfs4/sophia/home/mjagdis/src/ibcs.cvs/ibcs/include/ibcs/socksys.h,v $
*/
@ -140,15 +140,6 @@ struct socknewproto {
#define SSYS_SIOCSOCKSYS SSYS_IOSW('I', 66, struct socksysreq) /* Pseudo socket syscall */
/* These ioctls are those used by the "timod" STREAMS module which
* is used by the TLI interface.
*/
#define TI_GETINFO 0x5464
#define TI_OPTMGMT 0x5465
#define TI_BIND 0x5466
#define TI_UNBIND 0x5467
/* With NFS/NIS there is also a pseudo device /dev/nfsd which understands
* some ioctls. Since these don't conflict with the socksys ioctls we
* just link nfsd to socksys and let socksys handle both sets.