File minix/1.1/bar/fs/type.h: 34 tokens File minix/1.1/bar/fs/super.h: 64 tokens File minix/1.1/bar/fs/path.c: 1162 tokens File minix/1.1/bar/fs/param.h: 235 tokens File minix/1.1/bar/fs/inode.h: 67 tokens File minix/1.1/bar/fs/glo.h: 52 tokens File minix/1.1/bar/fs/fproc.h: 61 tokens File minix/1.1/bar/fs/file.h: 27 tokens File minix/1.1/bar/fs/dev.h: 31 tokens File minix/1.1/bar/fs/const.h: 194 tokens File minix/1.1/bar/fs/cache.c: 994 tokens File minix/1.1/bar/fs/buf.h: 160 tokens File minix/1.1/bar/fs/device.c: 563 tokens File minix/1.1/bar/fs/filedes.c: 260 tokens File minix/1.1/bar/fs/inode.c: 766 tokens File minix/1.1/bar/fs/link.c: 728 tokens File minix/1.1/bar/fs/main.c: 1307 tokens File minix/1.1/bar/fs/misc.c: 799 tokens File minix/1.1/bar/fs/mount.c: 859 tokens File minix/1.1/bar/fs/open.c: 1158 tokens File minix/1.1/bar/fs/pipe.c: 937 tokens File minix/1.1/bar/fs/protect.c: 592 tokens File minix/1.1/bar/fs/putc.c: 117 tokens File minix/1.1/bar/fs/read.c: 1583 tokens File minix/1.1/bar/fs/stadir.c: 602 tokens File minix/1.1/bar/fs/super.c: 1024 tokens File minix/1.1/bar/fs/table.c: 388 tokens File minix/1.1/bar/fs/time.c: 236 tokens File minix/1.1/bar/fs/utility.c: 478 tokens File minix/1.1/bar/fs/write.c: 918 tokens File minix/1.1/bar/h/signal.h: 85 tokens File minix/1.1/bar/h/stat.h: 66 tokens File minix/1.1/bar/h/sgtty.h: 96 tokens File minix/1.1/bar/h/error.h: 206 tokens File minix/1.1/bar/h/callnr.h: 141 tokens File minix/1.1/bar/h/com.h: 244 tokens File minix/1.1/bar/h/const.h: 165 tokens File minix/1.1/bar/h/type.h: 548 tokens File minix/1.1/bar/include/blocksize.h: 3 tokens File minix/1.1/bar/include/ctype.h: 269 tokens File minix/1.1/bar/include/errno.h: 117 tokens File minix/1.1/bar/include/grp.h: 12 tokens File minix/1.1/bar/include/lib.h: 34 tokens File minix/1.1/bar/include/pwd.h: 23 tokens File minix/1.1/bar/include/regexp.h: 62 tokens File minix/1.1/bar/include/setjmp.h: 11 tokens File minix/1.1/bar/include/sgtty.h: 96 tokens File minix/1.1/bar/include/signal.h: 85 tokens File minix/1.1/bar/include/stat.h: 66 tokens File minix/1.1/bar/include/stdio.h: 286 tokens File minix/1.1/bar/kernel/type.h: 27 tokens File minix/1.1/bar/kernel/proc.h: 134 tokens File minix/1.1/bar/kernel/glo.h: 51 tokens File minix/1.1/bar/kernel/const.h: 101 tokens File minix/1.1/bar/kernel/clock.c: 644 tokens File minix/1.1/bar/kernel/dmp.c: 805 tokens File minix/1.1/bar/kernel/floppy.c: 2386 tokens File minix/1.1/bar/kernel/main.c: 1193 tokens File minix/1.1/bar/kernel/memory.c: 475 tokens File minix/1.1/bar/kernel/printer.c: 805 tokens File minix/1.1/bar/kernel/proc.c: 1308 tokens File minix/1.1/bar/kernel/system.c: 1913 tokens File minix/1.1/bar/kernel/table.c: 71 tokens File minix/1.1/bar/kernel/tty.c: 5340 tokens File minix/1.1/bar/kernel/wini.c: 2635 tokens File minix/1.1/bar/kernel/xt_wini.c: 2635 tokens File minix/1.1/bar/kernel/at_wini.c: 2401 tokens File minix/1.1/bar/mm/const.h: 44 tokens File minix/1.1/bar/mm/glo.h: 39 tokens File minix/1.1/bar/mm/mproc.h: 64 tokens File minix/1.1/bar/mm/param.h: 91 tokens File minix/1.1/bar/mm/type.h: 0 tokens File minix/1.1/bar/mm/alloc.c: 590 tokens File minix/1.1/bar/mm/break.c: 654 tokens File minix/1.1/bar/mm/exec.c: 1587 tokens File minix/1.1/bar/mm/forkexit.c: 987 tokens File minix/1.1/bar/mm/getset.c: 184 tokens File minix/1.1/bar/mm/main.c: 713 tokens File minix/1.1/bar/mm/putc.c: 104 tokens File minix/1.1/bar/mm/signal.c: 1468 tokens File minix/1.1/bar/mm/table.c: 236 tokens File minix/1.1/bar/mm/utility.c: 384 tokens File /: separator File linux/linux-0.96c/fs/stat.c: 800 tokens File linux/linux-0.96c/fs/read_write.c: 531 tokens File linux/linux-0.96c/fs/block_dev.c: 461 tokens File linux/linux-0.96c/fs/buffer.c: 1976 tokens File linux/linux-0.96c/fs/inode.c: 1170 tokens File linux/linux-0.96c/fs/file_table.c: 6 tokens File linux/linux-0.96c/fs/open.c: 1880 tokens File linux/linux-0.96c/fs/exec.c: 3279 tokens File linux/linux-0.96c/fs/fcntl.c: 356 tokens File linux/linux-0.96c/fs/super.c: 1385 tokens File linux/linux-0.96c/fs/namei.c: 2271 tokens File linux/linux-0.96c/fs/ioctl.c: 84 tokens File linux/linux-0.96c/fs/pipe.c: 1185 tokens File linux/linux-0.96c/fs/select.c: 1594 tokens File linux/linux-0.96c/fs/fifo.c: 372 tokens File linux/linux-0.96c/fs/ext/bitmap.c: 1361 tokens File linux/linux-0.96c/fs/ext/blkdev.c: 132 tokens File linux/linux-0.96c/fs/ext/chrdev.c: 132 tokens File linux/linux-0.96c/fs/ext/dir.c: 375 tokens File linux/linux-0.96c/fs/ext/file.c: 944 tokens File linux/linux-0.96c/fs/ext/freelists.c: 2102 tokens File linux/linux-0.96c/fs/ext/inode.c: 2376 tokens File linux/linux-0.96c/fs/ext/namei.c: 4619 tokens File linux/linux-0.96c/fs/ext/symlink.c: 404 tokens File linux/linux-0.96c/fs/ext/truncate.c: 670 tokens File linux/linux-0.96c/fs/ext/fifo.c: 38 tokens File linux/linux-0.96c/fs/minix/bitmap.c: 1337 tokens File linux/linux-0.96c/fs/minix/truncate.c: 686 tokens File linux/linux-0.96c/fs/minix/inode.c: 1877 tokens File linux/linux-0.96c/fs/minix/file.c: 942 tokens File linux/linux-0.96c/fs/minix/namei.c: 3957 tokens File linux/linux-0.96c/fs/minix/fifo.c: 38 tokens File linux/linux-0.96c/fs/minix/symlink.c: 404 tokens File linux/linux-0.96c/fs/minix/chrdev.c: 132 tokens File linux/linux-0.96c/fs/minix/dir.c: 378 tokens File linux/linux-0.96c/fs/minix/blkdev.c: 132 tokens File linux/linux-0.96c/init/main.c: 1204 tokens File linux/linux-0.96c/kernel/sched.c: 2495 tokens File linux/linux-0.96c/kernel/exit.c: 2755 tokens File linux/linux-0.96c/kernel/fork.c: 1099 tokens File linux/linux-0.96c/kernel/panic.c: 40 tokens File linux/linux-0.96c/kernel/traps.c: 955 tokens File linux/linux-0.96c/kernel/signal.c: 1094 tokens File linux/linux-0.96c/kernel/printk.c: 388 tokens File linux/linux-0.96c/kernel/sys.c: 2753 tokens File linux/linux-0.96c/kernel/mktime.c: 323 tokens File linux/linux-0.96c/kernel/vsprintf.c: 1150 tokens File linux/linux-0.96c/kernel/chr_drv/keyboard.c: 9182 tokens File linux/linux-0.96c/kernel/chr_drv/console.c: 6463 tokens File linux/linux-0.96c/kernel/chr_drv/tty_ioctl.c: 2253 tokens File linux/linux-0.96c/kernel/chr_drv/tty_io.c: 3929 tokens File linux/linux-0.96c/kernel/chr_drv/serial.c: 2272 tokens File linux/linux-0.96c/kernel/chr_drv/pty.c: 372 tokens File linux/linux-0.96c/kernel/chr_drv/lp.c: 660 tokens File linux/linux-0.96c/kernel/chr_drv/mem.c: 1195 tokens File linux/linux-0.96c/kernel/chr_drv/vt_kern.h: 27 tokens File linux/linux-0.96c/kernel/chr_drv/vt.c: 728 tokens File linux/linux-0.96c/kernel/math/error.c: 23 tokens File linux/linux-0.96c/kernel/math/convert.c: 1892 tokens File linux/linux-0.96c/kernel/math/ea.c: 498 tokens File linux/linux-0.96c/kernel/math/get_put.c: 1341 tokens File linux/linux-0.96c/kernel/math/add.c: 468 tokens File linux/linux-0.96c/kernel/math/mul.c: 298 tokens File linux/linux-0.96c/kernel/math/div.c: 605 tokens File linux/linux-0.96c/kernel/math/compare.c: 246 tokens File linux/linux-0.96c/kernel/math/sqrt.c: 499 tokens File linux/linux-0.96c/kernel/math/emulate.c: 2857 tokens File linux/linux-0.96c/kernel/blk_drv/hd.c: 2965 tokens File linux/linux-0.96c/kernel/blk_drv/ll_rw_blk.c: 1323 tokens File linux/linux-0.96c/kernel/blk_drv/floppy.c: 4205 tokens File linux/linux-0.96c/kernel/blk_drv/blk.h: 821 tokens File linux/linux-0.96c/kernel/blk_drv/ramdisk.c: 498 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/aha1542.c: 1959 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/hosts.c: 255 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/scsi.c: 3058 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/scsi_ioctl.c: 527 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/sd.c: 1594 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/sd_ioctl.c: 77 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/seagate.c: 1689 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/st.c: 49 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/st_ioctl.c: 74 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/ultrastor.c: 1707 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/aha1542.h: 505 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/hosts.h: 223 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: 534 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/scsi_ioctl.h: 23 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/sd.h: 159 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/seagate.h: 242 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/st.h: 35 tokens File linux/linux-0.96c/kernel/blk_drv/scsi/ultrastor.h: 294 tokens File linux/linux-0.96c/kernel/ioport.c: 447 tokens File linux/linux-0.96c/kernel/itimer.c: 501 tokens File linux/linux-0.96c/kernel/ptrace.c: 1577 tokens File linux/linux-0.96c/lib/ctype.c: 707 tokens File linux/linux-0.96c/lib/close.c: 15 tokens File linux/linux-0.96c/lib/dup.c: 15 tokens File linux/linux-0.96c/lib/_exit.c: 37 tokens File linux/linux-0.96c/lib/open.c: 91 tokens File linux/linux-0.96c/lib/errno.c: 2 tokens File linux/linux-0.96c/lib/execve.c: 29 tokens File linux/linux-0.96c/lib/setsid.c: 11 tokens File linux/linux-0.96c/lib/string.c: 18 tokens File linux/linux-0.96c/lib/wait.c: 43 tokens File linux/linux-0.96c/lib/write.c: 25 tokens File linux/linux-0.96c/lib/malloc.c: 769 tokens File linux/linux-0.96c/lib/itimer.c: 44 tokens File linux/linux-0.96c/mm/memory.c: 3657 tokens File linux/linux-0.96c/mm/swap.c: 1145 tokens File linux/linux-0.96c/mm/mmap.c: 740 tokens File linux/linux-0.96c/tools/build.c: 961 tokens File linux/linux-0.96c/include/sys/types.h: 202 tokens File linux/linux-0.96c/include/sys/times.h: 28 tokens File linux/linux-0.96c/include/sys/wait.h: 176 tokens File linux/linux-0.96c/include/sys/time.h: 328 tokens File linux/linux-0.96c/include/sys/param.h: 23 tokens File linux/linux-0.96c/include/sys/resource.h: 112 tokens File linux/linux-0.96c/include/sys/ptrace.h: 132 tokens File linux/linux-0.96c/include/sys/dirent.h: 25 tokens File linux/linux-0.96c/include/sys/vfs.h: 42 tokens File linux/linux-0.96c/include/sys/socket.h: 157 tokens File linux/linux-0.96c/include/sys/mman.h: 63 tokens File linux/linux-0.96c/include/sys/kd.h: 443 tokens File linux/linux-0.96c/include/sys/vt.h: 58 tokens File linux/linux-0.96c/include/sys/user.h: 93 tokens File linux/linux-0.96c/include/sys/un.h: 18 tokens File linux/linux-0.96c/include/unistd.h: 867 tokens File linux/linux-0.96c/include/time.h: 219 tokens File linux/linux-0.96c/include/termios.h: 679 tokens File linux/linux-0.96c/include/stddef.h: 61 tokens File linux/linux-0.96c/include/stdarg.h: 164 tokens File linux/linux-0.96c/include/utime.h: 43 tokens File linux/linux-0.96c/include/errno.h: 136 tokens File linux/linux-0.96c/include/signal.h: 358 tokens File linux/linux-0.96c/include/const.h: 34 tokens File linux/linux-0.96c/include/a.out.h: 984 tokens File linux/linux-0.96c/include/linux/hdreg.h: 162 tokens File linux/linux-0.96c/include/linux/kernel.h: 75 tokens File linux/linux-0.96c/include/linux/sched.h: 1627 tokens File linux/linux-0.96c/include/linux/sys.h: 788 tokens File linux/linux-0.96c/include/linux/tty.h: 1300 tokens File linux/linux-0.96c/include/linux/fs.h: 1520 tokens File linux/linux-0.96c/include/linux/mm.h: 341 tokens File linux/linux-0.96c/include/linux/head.h: 54 tokens File linux/linux-0.96c/include/linux/config.h: 185 tokens File linux/linux-0.96c/include/linux/fdreg.h: 166 tokens File linux/linux-0.96c/include/linux/math_emu.h: 1208 tokens File linux/linux-0.96c/include/linux/timer.h: 70 tokens File linux/linux-0.96c/include/linux/config_rel.h: 3 tokens File linux/linux-0.96c/include/linux/minix_fs.h: 578 tokens File linux/linux-0.96c/include/linux/config_ver.h: 3 tokens File linux/linux-0.96c/include/linux/lp.h: 159 tokens File linux/linux-0.96c/include/linux/string.h: 1471 tokens File linux/linux-0.96c/include/linux/ctype.h: 403 tokens File linux/linux-0.96c/include/linux/unistd.h: 1296 tokens File linux/linux-0.96c/include/linux/config.dist.h: 46 tokens File linux/linux-0.96c/include/linux/config.site.h: 7 tokens File linux/linux-0.96c/include/linux/fd.h: 90 tokens File linux/linux-0.96c/include/linux/utsname.h: 75 tokens File linux/linux-0.96c/include/linux/stat.h: 310 tokens File linux/linux-0.96c/include/linux/fcntl.h: 90 tokens File linux/linux-0.96c/include/linux/ext_fs.h: 626 tokens File linux/linux-0.96c/include/asm/io.h: 179 tokens File linux/linux-0.96c/include/asm/memory.h: 70 tokens File linux/linux-0.96c/include/asm/system.h: 516 tokens File linux/linux-0.96c/include/asm/segment.h: 416 tokens File linux/linux-0.96c/include/limits.h: 156 tokens File linux/linux-0.96c/net/kern_sock.h: 321 tokens File linux/linux-0.96c/net/socket.c: 3361 tokens File linux/linux-0.96c/net/socketcall.h: 33 tokens File linux/linux-0.96c/net/unix.c: 2742 tokens Total: 199072 tokens minix/1.1/bar/kernel/floppy.c: line 32-91 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 61-168 <#define DOR 0x3F2 /* motor drive control bits */ <#define FDC_STATUS 0x3F4 /* floppy disk controller status register */ <#define FDC_DATA 0x3F5 /* floppy disk controller data register */ <#define FDC_RATE 0x3F7 /* transfer rate register */ <#define DMA_ADDR 0x004 /* port for low 16 bits of DMA address */ <#define DMA_TOP 0x081 /* port for top 4 bits of 20-bit DMA addr */ <#define DMA_COUNT 0x005 /* port for DMA count (count = bytes - 1) */ <#define DMA_M2 0x00C /* DMA status port */ <#define DMA_M1 0x00B /* DMA status port */ <#define DMA_INIT 0x00A /* DMA init port */ < #define COMMAND_COMPLETE 0x00 >#define EXTENDED_MESSAGE 0x01 >#define SAVE_POINTERS 0x02 >#define RESTORE_POINTERS 0x03 >#define DISCONNECT 0x04 >#define INITIATOR_ERROR 0x05 >#define ABORT 0x06 >#define MESSAGE_REJECT 0x07 >#define NOP 0x08 >#define MSG_PARITY_ERROR 0x09 >#define LINKED_CMD_COMPLETE 0x0a >#define LINKED_FLG_CMD_COMPLETE 0x0b >#define BUS_DEVICE_RESET 0x0c >#define IDENTIFY 0x80 >/* > Status codes >*/ > >#define GOOD 0x00 >#define CHECK_CONDITION 0x01 >#define CONDITION_GOOD 0x02 >#define BUSY 0x04 >#define INTERMEDIATE_GOOD 0x08 >#define INTERMEDIATE_C_GOOD 0x0a >#define RESERVATION_CONFLICT 0x0c > >#define STATUS_MASK 0x1e > >/* > the return of the status word will be in the following format : > The low byte is the status returned by the SCSI command, > with vendor specific bits masked. > > The next byte is the message which followed the SCSI status. > This allows a stos to be used, since the Intel is a little > endian machine. > > The final byte is a host return code, which is one of the following. > > IE > lsb msb > status msg host code > > Our errors returned by OUR driver, NOT SCSI message. Orr'd with > SCSI message passed back to driver . >*/ > >/* NO error */ >#define DID_OK 0x00 >/* Couldn't connect before timeout period */ >#define DID_NO_CONNECT 0x01 >/* BUS stayed busy through time out period */ >#define DID_BUS_BUSY 0x02 >/* TIMED OUT for other reason */ >#define DID_TIME_OUT 0x03 >/* BAD target. */ >#define DID_BAD_TARGET 0x04 >/* Told to abort for some other reason */ >#define DID_ABORT 0x05 >/* > Parity error >*/ >#define DID_PARITY 0x06 >/* > Internal error >*/ >#define DID_ERROR 0x07 >/* > Reset by somebody. >*/ >#define DID_RESET 0x08 > >/* > Driver status >*/ >#define DRIVER_OK 0x00 > >/* > These indicate the error that occured, and what is available. >*/ > >#define DRIVER_BUSY 0x01 >#define DRIVER_SOFT 0x02 >#define DRIVER_MEDIA 0x03 >#define DRIVER_ERROR 0x04 > >#define DRIVER_INVALID 0x05 >#define DRIVER_TIMEOUT 0x06 >#define DRIVER_HARD 0x07 > >#define SUGGEST_RETRY 0x08 >#define SUGGEST_ABORT 0x09 >#define SUGGEST_REMAP 0x0a >#define SUGGEST_DIE 0x0b > >#define DRIVER_SENSE 0x10 > >#define DRIVER_MASK 0x0f >#define SUGGEST_MASK 0xf0 > >/* > > SENSE KEYS >*/ > >#define NO_SENSE 0x00 >#define RECOVERED_ERROR 0x01 >#define NOT_READY 0x02 minix/1.1/bar/h/callnr.h: line 1-50 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 61-166 <#define NCALLS 69 /* number of system calls allowed */ < <#define EXIT 1 <#define FORK 2 <#define READ 3 <#define WRITE 4 <#define OPEN 5 <#define CLOSE 6 <#define WAIT 7 <#define CREAT 8 <#define LINK 9 <#define UNLINK 10 <#define CHDIR 12 <#define TIME 13 <#define MKNOD 14 <#define CHMOD 15 <#define CHOWN 16 <#define BRK 17 <#define STAT 18 <#define LSEEK 19 <#define GETPID 20 <#define MOUNT 21 <#define UMOUNT 22 <#define SETUID 23 <#define GETUID 24 <#define STIME 25 <#define ALARM 27 <#define FSTAT 28 <#define PAUSE 29 <#define UTIME 30 <#define ACCESS 33 <#define SYNC 36 <#define KILL 37 <#define DUP 41 <#define PIPE 42 <#define TIMES 43 <#define SETGID 46 <#define GETGID 47 <#define SIGNAL 48 <#define IOCTL 54 <#define EXEC 59 <#define UMASK 60 <#define CHROOT 61 < #define COMMAND_COMPLETE 0x00 >#define EXTENDED_MESSAGE 0x01 >#define SAVE_POINTERS 0x02 >#define RESTORE_POINTERS 0x03 >#define DISCONNECT 0x04 >#define INITIATOR_ERROR 0x05 >#define ABORT 0x06 >#define MESSAGE_REJECT 0x07 >#define NOP 0x08 >#define MSG_PARITY_ERROR 0x09 >#define LINKED_CMD_COMPLETE 0x0a >#define LINKED_FLG_CMD_COMPLETE 0x0b >#define BUS_DEVICE_RESET 0x0c >#define IDENTIFY 0x80 >/* > Status codes >*/ > >#define GOOD 0x00 >#define CHECK_CONDITION 0x01 >#define CONDITION_GOOD 0x02 >#define BUSY 0x04 >#define INTERMEDIATE_GOOD 0x08 >#define INTERMEDIATE_C_GOOD 0x0a >#define RESERVATION_CONFLICT 0x0c > >#define STATUS_MASK 0x1e > >/* > the return of the status word will be in the following format : > The low byte is the status returned by the SCSI command, > with vendor specific bits masked. > > The next byte is the message which followed the SCSI status. > This allows a stos to be used, since the Intel is a little > endian machine. > > The final byte is a host return code, which is one of the following. > > IE > lsb msb > status msg host code > > Our errors returned by OUR driver, NOT SCSI message. Orr'd with > SCSI message passed back to driver . >*/ > >/* NO error */ >#define DID_OK 0x00 >/* Couldn't connect before timeout period */ >#define DID_NO_CONNECT 0x01 >/* BUS stayed busy through time out period */ >#define DID_BUS_BUSY 0x02 >/* TIMED OUT for other reason */ >#define DID_TIME_OUT 0x03 >/* BAD target. */ >#define DID_BAD_TARGET 0x04 >/* Told to abort for some other reason */ >#define DID_ABORT 0x05 >/* > Parity error >*/ >#define DID_PARITY 0x06 >/* > Internal error >*/ >#define DID_ERROR 0x07 >/* > Reset by somebody. >*/ >#define DID_RESET 0x08 > >/* > Driver status >*/ >#define DRIVER_OK 0x00 > >/* > These indicate the error that occured, and what is available. >*/ > >#define DRIVER_BUSY 0x01 >#define DRIVER_SOFT 0x02 >#define DRIVER_MEDIA 0x03 >#define DRIVER_ERROR 0x04 > >#define DRIVER_INVALID 0x05 >#define DRIVER_TIMEOUT 0x06 >#define DRIVER_HARD 0x07 > >#define SUGGEST_RETRY 0x08 >#define SUGGEST_ABORT 0x09 >#define SUGGEST_REMAP 0x0a >#define SUGGEST_DIE 0x0b > >#define DRIVER_SENSE 0x10 > >#define DRIVER_MASK 0x0f >#define SUGGEST_MASK 0xf0 > >/* > > SENSE KEYS >*/ > >#define NO_SENSE 0x00 minix/1.1/bar/fs/table.c: line 35-104 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 1081-1098 static fptr key_table[] = { > none,do_self,do_self,do_self, /* 00-03 s0 esc 1 2 */ > do_self,do_self,do_self,do_self, /* 04-07 3 4 5 6 */ > do_self,do_self,do_self,do_self, /* 08-0B 7 8 9 0 */ > do_self,do_self,do_self,do_self, /* 0C-0F + ' bs tab */ > do_self,do_self,do_self,do_self, /* 10-13 q w e r */ > do_self,do_self,do_self,do_self, /* 14-17 t y u i */ > do_self,do_self,do_self,do_self, /* 18-1B o p } ^ */ > enter,ctrl,do_self,do_self, /* 1C-1F enter ctrl a s */ > do_self,do_self,do_self,do_self, /* 20-23 d f g h */ > do_self,do_self,do_self,do_self, /* 24-27 j k l | */ > do_self,do_self,lshift,do_self, /* 28-2B { para lshift , */ > do_self,do_self,do_self,do_self, /* 2C-2F z x c v */ > do_self,do_self,do_self,do_self, /* 30-33 b n m , */ > do_self,slash,rshift,star, /* 34-37 . - rshift * */ > alt,do_self,caps,func, /* 38-3B alt sp caps f1 */ > func,func,func,func, /* 3C-3F f2 f3 f4 f5 */ > func,func,func,func, /* 40-43 f6 f7 f8 f9 */ minix/1.1/bar/mm/table.c: line 28-97 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 1081-1098 static fptr key_table[] = { > none,do_self,do_self,do_self, /* 00-03 s0 esc 1 2 */ > do_self,do_self,do_self,do_self, /* 04-07 3 4 5 6 */ > do_self,do_self,do_self,do_self, /* 08-0B 7 8 9 0 */ > do_self,do_self,do_self,do_self, /* 0C-0F + ' bs tab */ > do_self,do_self,do_self,do_self, /* 10-13 q w e r */ > do_self,do_self,do_self,do_self, /* 14-17 t y u i */ > do_self,do_self,do_self,do_self, /* 18-1B o p } ^ */ > enter,ctrl,do_self,do_self, /* 1C-1F enter ctrl a s */ > do_self,do_self,do_self,do_self, /* 20-23 d f g h */ > do_self,do_self,do_self,do_self, /* 24-27 j k l | */ > do_self,do_self,lshift,do_self, /* 28-2B { para lshift , */ > do_self,do_self,do_self,do_self, /* 2C-2F z x c v */ > do_self,do_self,do_self,do_self, /* 30-33 b n m , */ > do_self,slash,rshift,star, /* 34-37 . - rshift * */ > alt,do_self,caps,func, /* 38-3B alt sp caps f1 */ > func,func,func,func, /* 3C-3F f2 f3 f4 f5 */ > func,func,func,func, /* 40-43 f6 f7 f8 f9 */ minix/1.1/bar/include/errno.h: line 1-40 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 61-149 <#define OK 0 <#define ERROR 1 <#define EPERM 1 <#define ENOENT 2 <#define ESRCH 3 <#define EINTR 4 <#define EIO 5 <#define ENXIO 6 <#define E2BIG 7 <#define ENOEXEC 8 <#define EBADF 9 <#define ECHILD 10 <#define EAGAIN 11 <#define ENOMEM 12 <#define EACCES 13 <#define EFAULT 14 <#define ENOTBLK 15 <#define EBUSY 16 <#define EEXIST 17 <#define EXDEV 18 <#define ENODEV 19 <#define ENOTDIR 20 <#define EISDIR 21 <#define EINVAL 22 <#define ENFILE 23 <#define EMFILE 24 <#define ENOTTY 25 <#define ETXTBSY 26 <#define EFBIG 27 <#define ENOSPC 28 <#define ESPIPE 29 <#define EROFS 30 <#define EMLINK 31 <#define EPIPE 32 <#define EDOM 33 <#define ERANGE 34 < <#define E_LOCKED 101 <#define E_BAD_CALL 102 <#define E_LONG_STRING 103 --- >#define COMMAND_COMPLETE 0x00 >#define EXTENDED_MESSAGE 0x01 >#define SAVE_POINTERS 0x02 >#define RESTORE_POINTERS 0x03 >#define DISCONNECT 0x04 >#define INITIATOR_ERROR 0x05 >#define ABORT 0x06 >#define MESSAGE_REJECT 0x07 >#define NOP 0x08 >#define MSG_PARITY_ERROR 0x09 >#define LINKED_CMD_COMPLETE 0x0a >#define LINKED_FLG_CMD_COMPLETE 0x0b >#define BUS_DEVICE_RESET 0x0c >#define IDENTIFY 0x80 >/* > Status codes >*/ > >#define GOOD 0x00 >#define CHECK_CONDITION 0x01 >#define CONDITION_GOOD 0x02 >#define BUSY 0x04 >#define INTERMEDIATE_GOOD 0x08 >#define INTERMEDIATE_C_GOOD 0x0a >#define RESERVATION_CONFLICT 0x0c > >#define STATUS_MASK 0x1e > >/* > the return of the status word will be in the following format : > The low byte is the status returned by the SCSI command, > with vendor specific bits masked. > > The next byte is the message which followed the SCSI status. > This allows a stos to be used, since the Intel is a little > endian machine. > > The final byte is a host return code, which is one of the following. > > IE > lsb msb > status msg host code > > Our errors returned by OUR driver, NOT SCSI message. Orr'd with > SCSI message passed back to driver . >*/ > >/* NO error */ >#define DID_OK 0x00 >/* Couldn't connect before timeout period */ >#define DID_NO_CONNECT 0x01 >/* BUS stayed busy through time out period */ >#define DID_BUS_BUSY 0x02 >/* TIMED OUT for other reason */ >#define DID_TIME_OUT 0x03 >/* BAD target. */ >#define DID_BAD_TARGET 0x04 >/* Told to abort for some other reason */ >#define DID_ABORT 0x05 >/* > Parity error >*/ >#define DID_PARITY 0x06 >/* > Internal error >*/ >#define DID_ERROR 0x07 >/* > Reset by somebody. >*/ >#define DID_RESET 0x08 > >/* > Driver status >*/ >#define DRIVER_OK 0x00 > >/* > These indicate the error that occured, and what is available. >*/ > >#define DRIVER_BUSY 0x01 >#define DRIVER_SOFT 0x02 >#define DRIVER_MEDIA 0x03 >#define DRIVER_ERROR 0x04 > >#define DRIVER_INVALID 0x05 >#define DRIVER_TIMEOUT 0x06 >#define DRIVER_HARD 0x07 minix/1.1/bar/h/com.h: line 48-98 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 61-148 <# define SUSPEND -998 /* used in interrupts when tty has no data */ < #define COMMAND_COMPLETE 0x00 >#define EXTENDED_MESSAGE 0x01 >#define SAVE_POINTERS 0x02 >#define RESTORE_POINTERS 0x03 >#define DISCONNECT 0x04 >#define INITIATOR_ERROR 0x05 >#define ABORT 0x06 >#define MESSAGE_REJECT 0x07 >#define NOP 0x08 >#define MSG_PARITY_ERROR 0x09 >#define LINKED_CMD_COMPLETE 0x0a >#define LINKED_FLG_CMD_COMPLETE 0x0b >#define BUS_DEVICE_RESET 0x0c >#define IDENTIFY 0x80 >/* > Status codes >*/ > >#define GOOD 0x00 >#define CHECK_CONDITION 0x01 >#define CONDITION_GOOD 0x02 >#define BUSY 0x04 >#define INTERMEDIATE_GOOD 0x08 >#define INTERMEDIATE_C_GOOD 0x0a >#define RESERVATION_CONFLICT 0x0c > >#define STATUS_MASK 0x1e > >/* > the return of the status word will be in the following format : > The low byte is the status returned by the SCSI command, > with vendor specific bits masked. > > The next byte is the message which followed the SCSI status. > This allows a stos to be used, since the Intel is a little > endian machine. > > The final byte is a host return code, which is one of the following. > > IE > lsb msb > status msg host code > > Our errors returned by OUR driver, NOT SCSI message. Orr'd with > SCSI message passed back to driver . >*/ > >/* NO error */ >#define DID_OK 0x00 >/* Couldn't connect before timeout period */ >#define DID_NO_CONNECT 0x01 >/* BUS stayed busy through time out period */ >#define DID_BUS_BUSY 0x02 >/* TIMED OUT for other reason */ >#define DID_TIME_OUT 0x03 >/* BAD target. */ >#define DID_BAD_TARGET 0x04 >/* Told to abort for some other reason */ >#define DID_ABORT 0x05 >/* > Parity error >*/ >#define DID_PARITY 0x06 >/* > Internal error >*/ >#define DID_ERROR 0x07 >/* > Reset by somebody. >*/ >#define DID_RESET 0x08 > >/* > Driver status >*/ >#define DRIVER_OK 0x00 > >/* > These indicate the error that occured, and what is available. >*/ > >#define DRIVER_BUSY 0x01 >#define DRIVER_SOFT 0x02 >#define DRIVER_MEDIA 0x03 >#define DRIVER_ERROR 0x04 > >#define DRIVER_INVALID 0x05 >#define DRIVER_TIMEOUT 0x06 minix/1.1/bar/kernel/tty.c: line 762-805 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 61-147 <#ifdef i8088 #define COMMAND_COMPLETE 0x00 >#define EXTENDED_MESSAGE 0x01 >#define SAVE_POINTERS 0x02 >#define RESTORE_POINTERS 0x03 >#define DISCONNECT 0x04 >#define INITIATOR_ERROR 0x05 >#define ABORT 0x06 >#define MESSAGE_REJECT 0x07 >#define NOP 0x08 >#define MSG_PARITY_ERROR 0x09 >#define LINKED_CMD_COMPLETE 0x0a >#define LINKED_FLG_CMD_COMPLETE 0x0b >#define BUS_DEVICE_RESET 0x0c >#define IDENTIFY 0x80 >/* > Status codes >*/ > >#define GOOD 0x00 >#define CHECK_CONDITION 0x01 >#define CONDITION_GOOD 0x02 >#define BUSY 0x04 >#define INTERMEDIATE_GOOD 0x08 >#define INTERMEDIATE_C_GOOD 0x0a >#define RESERVATION_CONFLICT 0x0c > >#define STATUS_MASK 0x1e > >/* > the return of the status word will be in the following format : > The low byte is the status returned by the SCSI command, > with vendor specific bits masked. > > The next byte is the message which followed the SCSI status. > This allows a stos to be used, since the Intel is a little > endian machine. > > The final byte is a host return code, which is one of the following. > > IE > lsb msb > status msg host code > > Our errors returned by OUR driver, NOT SCSI message. Orr'd with > SCSI message passed back to driver . >*/ > >/* NO error */ >#define DID_OK 0x00 >/* Couldn't connect before timeout period */ >#define DID_NO_CONNECT 0x01 >/* BUS stayed busy through time out period */ >#define DID_BUS_BUSY 0x02 >/* TIMED OUT for other reason */ >#define DID_TIME_OUT 0x03 >/* BAD target. */ >#define DID_BAD_TARGET 0x04 >/* Told to abort for some other reason */ >#define DID_ABORT 0x05 >/* > Parity error >*/ >#define DID_PARITY 0x06 >/* > Internal error >*/ >#define DID_ERROR 0x07 >/* > Reset by somebody. >*/ >#define DID_RESET 0x08 > >/* > Driver status >*/ >#define DRIVER_OK 0x00 > >/* > These indicate the error that occured, and what is available. >*/ > >#define DRIVER_BUSY 0x01 >#define DRIVER_SOFT 0x02 >#define DRIVER_MEDIA 0x03 >#define DRIVER_ERROR 0x04 > >#define DRIVER_INVALID 0x05 minix/1.1/bar/kernel/wini.c: line 31-64 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 23-48 <#define WIN_DATA 0x320 /* winchester disk controller data register */ <#define WIN_STATUS 0x321 /* winchester disk controller status register */ <#define WIN_SELECT 0x322 /* winchester disk controller select port */ <#define WIN_DMA 0x323 /* winchester disk controller dma register */ <#define DMA_ADDR 0x006 /* port for low 16 bits of DMA address */ <#define DMA_TOP 0x082 /* port for top 4 bits of 20-bit DMA addr */ <#define DMA_COUNT 0x007 /* port for DMA count (count = bytes - 1) */ <#define DMA_M2 0x00C /* DMA status port */ <#define DMA_M1 0x00B /* DMA status port */ <#define DMA_INIT 0x00A /* DMA init port */ < #define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 >#define MODE_SENSE 0x1a >#define START_STOP 0x1b >#define RECIEVE_DAIGNOSTIC 0x1c >#define SEND_DIAGNOSTIC 0x1d >#define ALLOW_MEDIUM_REMOVAL 0x1e > >#define READ_CAPACITY 0x25 >#define READ_10 0x28 >#define WRITE_10 0x2a >#define SEEK_10 0x2b >#define WRITE_VERIFY 0x2e >#define VERIFY 0x2f >#define SEARCH_HIGH 0x30 minix/1.1/bar/kernel/xt_wini.c: line 31-64 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 23-48 <#define WIN_DATA 0x320 /* winchester disk controller data register */ <#define WIN_STATUS 0x321 /* winchester disk controller status register */ <#define WIN_SELECT 0x322 /* winchester disk controller select port */ <#define WIN_DMA 0x323 /* winchester disk controller dma register */ <#define DMA_ADDR 0x006 /* port for low 16 bits of DMA address */ <#define DMA_TOP 0x082 /* port for top 4 bits of 20-bit DMA addr */ <#define DMA_COUNT 0x007 /* port for DMA count (count = bytes - 1) */ <#define DMA_M2 0x00C /* DMA status port */ <#define DMA_M1 0x00B /* DMA status port */ <#define DMA_INIT 0x00A /* DMA init port */ < #define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 >#define MODE_SENSE 0x1a >#define START_STOP 0x1b >#define RECIEVE_DAIGNOSTIC 0x1c >#define SEND_DIAGNOSTIC 0x1d >#define ALLOW_MEDIUM_REMOVAL 0x1e > >#define READ_CAPACITY 0x25 >#define READ_10 0x28 >#define WRITE_10 0x2a >#define SEEK_10 0x2b >#define WRITE_VERIFY 0x2e >#define VERIFY 0x2f >#define SEARCH_HIGH 0x30 minix/1.1/bar/h/const.h: line 20-50 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 10-44 <#define SUPER_USER (uid) 0 /* uid of superuser */ < <#define MAJOR 8 /* major device = (dev>>MAJOR) & 0377 */ <#define MINOR 0 /* minor device = (dev>>MINOR) & 0377 */ < <#define NR_TASKS 8 /* number of tasks in the transfer vector */ <#define NR_PROCS 16 /* number of slots in proc table */ <#define NR_SEGS 3 /* # segments per process */ <#define T 0 /* proc[i].mem_map[T] is for text */ <#define D 1 /* proc[i].mem_map[D] is for data */ <#define S 2 /* proc[i].mem_map[S] is for stack */ < <#define MAX_P_LONG 2147483647 /* maximum positive long, i.e. 2**31 - 1 */ < #define _SCSI_H >/* > $Header: /usr/src/linux/kernel/blk_drv/scsi/RCS/scsi.h,v 1.1 1992/04/24 18:01:50 root Exp root $ > > For documentation on the OPCODES, MESSAGES, and SENSE values, > please consult the SCSI standard. > >*/ > >/* > SCSI opcodes >*/ > >#define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 >#define MODE_SENSE 0x1a >#define START_STOP 0x1b >#define RECIEVE_DAIGNOSTIC 0x1c >#define SEND_DIAGNOSTIC 0x1d >#define ALLOW_MEDIUM_REMOVAL 0x1e > >#define READ_CAPACITY 0x25 >#define READ_10 0x28 >#define WRITE_10 0x2a minix/1.1/bar/fs/table.c: line 117-126 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 1081-1088 static fptr key_table[] = { > none,do_self,do_self,do_self, /* 00-03 s0 esc 1 2 */ > do_self,do_self,do_self,do_self, /* 04-07 3 4 5 6 */ > do_self,do_self,do_self,do_self, /* 08-0B 7 8 9 0 */ > do_self,do_self,do_self,do_self, /* 0C-0F + ' bs tab */ > do_self,do_self,do_self,do_self, /* 10-13 q w e r */ > do_self,do_self,do_self,do_self, /* 14-17 t y u i */ > do_self,do_self,do_self,do_self, /* 18-1B o p } ^ */ minix/1.1/bar/kernel/const.h: line 7-37 linux/linux-0.96c/include/errno.h: line 41-64 <#define INIT_SP (int*)0x0010 /* initial sp: 3 words pushed by kernel */ < #define ENFILE 23 >#define EMFILE 24 >#define ENOTTY 25 >#define ETXTBSY 26 >#define EFBIG 27 >#define ENOSPC 28 >#define ESPIPE 29 >#define EROFS 30 >#define EMLINK 31 >#define EPIPE 32 >#define EDOM 33 >#define ERANGE 34 >#define EDEADLK 35 >#define ENAMETOOLONG 36 >#define ENOLCK 37 >#define ENOSYS 38 >#define ENOTEMPTY 39 >#define ELOOP 40 > >/* Should never be seen by user programs */ >#define ERESTARTSYS 512 >#define ERESTARTNOINTR 513 > >#endif minix/1.1/bar/kernel/tty.c: line 158-160 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 501-504 < 'q','w','e','r','t','y','u','i', 'o','p','[',']',015,0202,'a','s', < 'd','f','g','h','j','k','l',';', 047,0140,0200,0134,'z','x','c','v', < 'b','n','m',',','.','/',0201,'*', 0203,' ',0204,0241,0242,0243,0244,0245, --- > 0, 27, '1', '2', '3', '4', '5', '6', > '7', '8', '9', '0', 223, 180, 127, 9, > 'q', 'w', 'e', 'r', 't', 'z', 'u', 'i', > 'o', 'p', 252, '+', 13, 0, 'a', 's', minix/1.1/bar/h/signal.h: line 1-20 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 23-40 <#define NR_SIGS 16 /* number of signals used */ <#define NSIG 16 /* number of signals used */ < <#define SIGHUP 1 /* hangup */ <#define SIGINT 2 /* interrupt (DEL) */ <#define SIGQUIT 3 /* quit (ASCII FS) */ <#define SIGILL 4 /* illegal instruction (not reset when caught)*/ <#define SIGTRAP 5 /* trace trap (not reset when caught) */ <#define SIGIOT 6 /* IOT instruction */ <#define SIGEMT 7 /* EMT instruction */ <#define SIGFPE 8 /* floating point exception */ <#define SIGKILL 9 /* kill (cannot be caught or ignored) */ <#define SIGBUS 10 /* bus error */ <#define SIGSEGV 11 /* segmentation violation */ <#define SIGSYS 12 /* bad argument to system call */ <#define SIGPIPE 13 /* write on a pipe with no one to read it */ <#define SIGALRM 14 /* alarm clock */ <#define SIGTERM 15 /* software termination signal from kill */ < <#define STACK_FAULT 16 /* used by kernel to signal stack fault */ --- >#define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 >#define MODE_SENSE 0x1a >#define START_STOP 0x1b >#define RECIEVE_DAIGNOSTIC 0x1c >#define SEND_DIAGNOSTIC 0x1d >#define ALLOW_MEDIUM_REMOVAL 0x1e minix/1.1/bar/include/signal.h: line 1-20 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 23-40 <#define NR_SIGS 16 /* number of signals used */ <#define NSIG 16 /* number of signals used */ < <#define SIGHUP 1 /* hangup */ <#define SIGINT 2 /* interrupt (DEL) */ <#define SIGQUIT 3 /* quit (ASCII FS) */ <#define SIGILL 4 /* illegal instruction (not reset when caught)*/ <#define SIGTRAP 5 /* trace trap (not reset when caught) */ <#define SIGIOT 6 /* IOT instruction */ <#define SIGEMT 7 /* EMT instruction */ <#define SIGFPE 8 /* floating point exception */ <#define SIGKILL 9 /* kill (cannot be caught or ignored) */ <#define SIGBUS 10 /* bus error */ <#define SIGSEGV 11 /* segmentation violation */ <#define SIGSYS 12 /* bad argument to system call */ <#define SIGPIPE 13 /* write on a pipe with no one to read it */ <#define SIGALRM 14 /* alarm clock */ <#define SIGTERM 15 /* software termination signal from kill */ < <#define STACK_FAULT 16 /* used by kernel to signal stack fault */ --- >#define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 >#define MODE_SENSE 0x1a >#define START_STOP 0x1b >#define RECIEVE_DAIGNOSTIC 0x1c >#define SEND_DIAGNOSTIC 0x1d >#define ALLOW_MEDIUM_REMOVAL 0x1e minix/1.1/bar/kernel/tty.c: line 179-181 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 363-367 < 'q','w','e','r','t','y','u','i', 'o','p','@','[','\r',0202,'a','s', < 'd','f','g','h','j','k','l',';', ':',']',0200,'\\','z','x','c','v', < 'b','n','m',',','.','/',0201,'*', 0203,' ',0204,0241,0242,0243,0244,0245, --- > 'o', 'p', '[', ']', 13, 0, 'a', 's', > 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', > '\'', '`', 0, '\\', 'z', 'x', 'c', 'v', > 'b', 'n', 'm', ',', '.', '/', 0, '*', > 0, 32, 0, 0, 0, 0, 0, 0, minix/1.1/bar/kernel/tty.c: line 160-162 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 299-302 < 'b','n','m',',','.','/',0201,'*', 0203,' ',0204,0241,0242,0243,0244,0245, < 0246,0247,0250,0251,0252,0205,0210,0267, 0270,0271,0211,0264,0265,0266,0214 <,0261, 0262,0263,'0',0177 --- > 0, 0, 0, '~', 13, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, minix/1.1/bar/kernel/tty.c: line 181-183 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 299-302 < 'b','n','m',',','.','/',0201,'*', 0203,' ',0204,0241,0242,0243,0244,0245, < 0246,0247,0250,0251,0252,023,0210,0267,0270,0271,0211,0264,0265,0266,0214,0261, <0262,0263,'0','.',' ',014,0212,'\r', 0264,0262,0266,0270,032,0213,' ','/', --- > 0, 0, 0, '~', 13, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, minix/1.1/bar/include/ctype.h: line 18-19 linux/linux-0.96c/include/linux/ctype.h: line 16-17 <#define isalnum(c) ((_ctype_+1)[c]&(_U|_L|_N)) <#define isprint(c) ((_ctype_+1)[c]&(_P|_U|_L|_N)) --- >#define isalnum(c) ((_ctype+1)[c]&(_U|_L|_D)) >#define isalpha(c) ((_ctype+1)[c]&(_U|_L)) minix/1.1/bar/kernel/tty.c: line 1172-1180 linux/linux-0.96c/fs/buffer.c: line 419-427 < tp->tty_mode = CRMOD | XTABS | ECHO; < tp->tty_devstart = console; < tp->tty_erase = ERASE_CHAR; < tp->tty_kill = KILL_CHAR; < tp->tty_intr = INTR_CHAR; < tp->tty_quit = QUIT_CHAR; < tp->tty_xon = XON_CHAR; < tp->tty_xoff = XOFF_CHAR; < tp->tty_eof = EOT_CHAR; --- > h->b_dev = 0; > h->b_dirt = 0; > h->b_count = 0; > h->b_lock = 0; > h->b_uptodate = 0; > h->b_wait = NULL; > h->b_next = NULL; > h->b_prev = NULL; > h->b_data = (char *) b; minix/1.1/bar/kernel/at_wini.c: line 32-52 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 23-37 <#define WIN_REG1 0x1f0 <#define WIN_REG2 0x1f1 <#define WIN_REG3 0x1f2 <#define WIN_REG4 0x1f3 <#define WIN_REG5 0x1f4 <#define WIN_REG6 0x1f5 <#define WIN_REG7 0x1f6 <#define WIN_REG8 0x1f7 <#define WIN_REG9 0x3f6 < #define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 >#define MODE_SENSE 0x1a >#define START_STOP 0x1b minix/1.1/bar/mm/getset.c: line 26-40 linux/linux-0.96c/kernel/itimer.c: line 33-45 < register int r; < < switch(mm_call) { < case GETUID: < r = rmp->mp_realuid; < result2 = rmp->mp_effuid; < break; < < case GETGID: < r = rmp->mp_realgid; < result2 = rmp->mp_effgid; < break; < < case GETPID: < r = mproc[who].mp_pid; --- > register unsigned long val, interval; > > switch (which) { > case ITIMER_REAL: > val = current->it_real_value; > interval = current->it_real_incr; > break; > case ITIMER_VIRTUAL: > val = current->it_virt_value; > interval = current->it_virt_incr; > break; > case ITIMER_PROF: > val = current->it_prof_value; minix/1.1/bar/fs/const.h: line 2-16 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 42-55 <#define NR_ZONE_NUMS 9 /* # zone numbers in an inode */ <#define NR_BUFS 20 /* # blocks in the buffer cache */ <#define NR_BUF_HASH 32 /* size of buf hash table; MUST BE POWER OF 2*/ <#define NR_FDS 20 /* max file descriptors per process */ <#define NR_FILPS 64 /* # slots in filp table */ <#define I_MAP_SLOTS 4 /* max # of blocks in the inode bit map */ <#define ZMAP_SLOTS 6 /* max # of blocks in the zone bit map */ <#define NR_INODES 32 /* # slots in "in core" inode table */ <#define NR_SUPERS 5 /* # slots in super block table */ <#define NAME_SIZE 14 /* # bytes in a directory component */ <#define FS_STACK_BYTES 512 /* size of file system stack */ < #define READ_CAPACITY 0x25 >#define READ_10 0x28 >#define WRITE_10 0x2a >#define SEEK_10 0x2b >#define WRITE_VERIFY 0x2e >#define VERIFY 0x2f >#define SEARCH_HIGH 0x30 >#define SEARCH_EQUAL 0x31 >#define SEARCH_LOW 0x32 >#define SET_LIMITS 0x33 >#define COMPARE 0x39 >#define COPY_VERIFY 0x3a > >#define COMMAND_SIZE(opcode) ((opcode) ? ((opcode) > 0x20 ? 10 : 6) : 0) minix/1.1/bar/kernel/tty.c: line 621-625 linux/linux-0.96c/fs/ext/inode.c: line 313-317 < tp->tty_otcaller = m_ptr->m_source; < tp->tty_outproc = m_ptr->PROC_NR; < tp->tty_out_vir = m_ptr->ADDRESS; < tp->tty_outleft = m_ptr->COUNT; < tp->tty_waiting = WAITING; --- > inode->i_mode = raw_inode->i_mode; > inode->i_uid = raw_inode->i_uid; > inode->i_gid = raw_inode->i_gid; > inode->i_nlink = raw_inode->i_nlinks; > inode->i_size = raw_inode->i_size; minix/1.1/bar/include/ctype.h: line 15-16 linux/linux-0.96c/include/linux/ctype.h: line 17-18 <#define isxdigit(c) ((_ctype_+1)[c]&(_N|_X)) <#define isspace(c) ((_ctype_+1)[c]&_S) --- >#define isalpha(c) ((_ctype+1)[c]&(_U|_L)) >#define iscntrl(c) ((_ctype+1)[c]&(_C)) minix/1.1/bar/include/ctype.h: line 11-12 linux/linux-0.96c/include/linux/ctype.h: line 17-18 <#define isalpha(c) ((_ctype_+1)[c]&(_U|_L)) <#define isupper(c) ((_ctype_+1)[c]&_U) --- >#define isalpha(c) ((_ctype+1)[c]&(_U|_L)) >#define iscntrl(c) ((_ctype+1)[c]&(_C)) minix/1.1/bar/fs/main.c: line 175-178 linux/linux-0.96c/fs/super.c: line 253-256 < for (bp = &buf[0]; bp < &buf[NR_BUFS]; bp++) { < bp->b_blocknr = NO_BLOCK; < bp->b_dev = NO_DEV; < bp->b_next = bp + 1; --- > for(p = &super_block[0] ; p < &super_block[NR_SUPER] ; p++) { > p->s_dev = 0; > p->s_lock = 0; > p->s_wait = NULL; minix/1.1/bar/h/const.h: line 63-78 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 10-35 <#define BOOT_DEV (dev_nr) 512 /* major-minor device number of boot diskette */ < #define _SCSI_H >/* > $Header: /usr/src/linux/kernel/blk_drv/scsi/RCS/scsi.h,v 1.1 1992/04/24 18:01:50 root Exp root $ > > For documentation on the OPCODES, MESSAGES, and SENSE values, > please consult the SCSI standard. > >*/ > >/* > SCSI opcodes >*/ > >#define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 minix/1.1/bar/kernel/printer.c: line 33-45 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 23-35 <#define NORMAL_STATUS 0xDF /* printer gives this status when idle */ <#define BUSY_STATUS 0x5F /* printer gives this status when busy */ <#define ASSERT_STROBE 0x1D /* strobe a character to the interface */ <#define NEGATE_STROBE 0x1C /* enable interrupt on interface */ <#define SELECT 0x0C /* select printer bit */ <#define INIT_PRINTER 0x08 /* init printer bits */ <#define NO_PAPER 0x20 /* status bit saying that paper is up */ <#define OFF_LINE 0x10 /* status bit saying that printer not online*/ <#define PR_ERROR 0x08 /* something is wrong with the printer */ <#define PR_COLOR_BASE 0x378 /* printer port when color display used */ <#define PR_MONO_BASE 0x3BC /* printer port when mono display used */ <#define LOW_FOUR 0xF /* mask for low-order 4 bits */ <#define CANCELED -999 /* indicates that command has been killed */ --- >#define TEST_UNIT_READY 0x00 >#define REZERO_UNIT 0x01 >#define REQUEST_SENSE 0x03 >#define FORMAT_UNIT 0x04 >#define REASSIGN_BLOCKS 0x07 >#define READ_6 0x08 >#define WRITE_6 0x0a >#define SEEK_6 0x0b >#define INQUIRY 0x12 >#define MODE_SELECT 0x15 >#define RESERVE 0x16 >#define RELEASE 0x17 >#define COPY 0x18 minix/1.1/bar/kernel/tty.c: line 189-190 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 364-366 < 0,033,'!','"','#','$','%','&', 047,'(',')','_','=','~','\b','\t', < 'Q','W','E','R' ,'T','Y','U','I', 'O','P',0140,'{','\r',0202,'A','S', --- > 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', > '\'', '`', 0, '\\', 'z', 'x', 'c', 'v', > 'b', 'n', 'm', ',', '.', '/', 0, '*', minix/1.1/bar/kernel/tty.c: line 191-192 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 364-367 < 'D','F','G','H','J','K','L','+', '*','}',0200,'|','Z','X','C','V', < 'B','N','M','<','>','?',0201,'*', 0203,' ',0204,0221,0222,0223,0224,0225, --- > 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', > '\'', '`', 0, '\\', 'z', 'x', 'c', 'v', > 'b', 'n', 'm', ',', '.', '/', 0, '*', > 0, 32, 0, 0, 0, 0, 0, 0, minix/1.1/bar/kernel/system.c: line 310-313 linux/linux-0.96c/fs/ext/inode.c: line 89-92 < m_ptr->USER_TIME = rp->user_time; < m_ptr->SYSTEM_TIME = rp->sys_time; < m_ptr->CHILD_UTIME = rp->child_utime; < m_ptr->CHILD_STIME = rp->child_stime; --- > s->s_firstdatazone = es->s_firstdatazone; > s->s_log_zone_size = es->s_log_zone_size; > s->s_max_size = es->s_max_size; > s->s_magic = es->s_magic; minix/1.1/bar/kernel/tty.c: line 503-506 linux/linux-0.96c/fs/ext/inode.c: line 89-92 < tp->tty_incaller = m_ptr->m_source; < tp->tty_inproc = m_ptr->PROC_NR; < tp->tty_in_vir = m_ptr->ADDRESS; < tp->tty_inleft = m_ptr->COUNT; --- > s->s_firstdatazone = es->s_firstdatazone; > s->s_log_zone_size = es->s_log_zone_size; > s->s_max_size = es->s_max_size; > s->s_magic = es->s_magic; minix/1.1/bar/kernel/tty.c: line 720-724 linux/linux-0.96c/fs/ext/freelists.c: line 284-288 < tp->tty_inhead = tp->tty_inqueue; /* discard all input */ < tp->tty_intail = tp->tty_inqueue; < tp->tty_incount = 0; < tp->tty_lfct = 0; < tp->tty_inleft = 0; --- > inode->i_uid = current->euid; > inode->i_gid = current->egid; > inode->i_dirt = 1; > inode->i_ino = j; > inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; minix/1.1/bar/kernel/floppy.c: line 139-139 linux/linux-0.96c/kernel/chr_drv/console.c: line 259-260 static unsigned char color_table[] = { 0, 4, 2, 6, 1, 5, 3, 7, > 8,12,10,14, 9,13,11,15 }; minix/1.1/bar/kernel/tty.c: line 156-157 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 265-267 static unsigned char key_map[] = { > 0, 27, '1', '2', '3', '4', '5', '6', > '7', '8', '9', '0', '+', '\'', 127, 9, minix/1.1/bar/kernel/tty.c: line 166-167 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 265-267 static unsigned char key_map[] = { > 0, 27, '1', '2', '3', '4', '5', '6', > '7', '8', '9', '0', '+', '\'', 127, 9, minix/1.1/bar/kernel/tty.c: line 177-178 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 265-267 static unsigned char key_map[] = { > 0, 27, '1', '2', '3', '4', '5', '6', > '7', '8', '9', '0', '+', '\'', 127, 9, minix/1.1/bar/kernel/tty.c: line 178-179 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 379-381 < 0,033,'1','2','3','4','5','6', '7','8','9','0','-','^','\b','\t', < 'q','w','e','r','t','y','u','i', 'o','p','@','[','\r',0202,'a','s', --- > 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', > '"', '~', '0', '|', 'Z', 'X', 'C', 'V', > 'B', 'N', 'M', '<', '>', '?', 0, '*', minix/1.1/bar/fs/stadir.c: line 167-170 linux/linux-0.96c/fs/ext/inode.c: line 89-92 < stp->st_size -= fil_ptr->filp_pos; /* adjust the visible size. */ < stp->st_atime = rip->i_modtime; < stp->st_mtime = rip->i_modtime; < stp->st_ctime = rip->i_modtime; --- > s->s_firstdatazone = es->s_firstdatazone; > s->s_log_zone_size = es->s_log_zone_size; > s->s_max_size = es->s_max_size; > s->s_magic = es->s_magic; minix/1.1/bar/fs/super.c: line 59-60 linux/linux-0.96c/fs/ext/inode.c: line 132-133 < sp->s_imap[0]->b_int[0] |= 3; /* inodes 0, 1 busy */ < sp->s_zmap[0]->b_int[0] |= 1; /* zone 0 busy */ --- > s->s_imap[0]->b_data[0] |= 1; > s->s_zmap[0]->b_data[0] |= 1; minix/1.1/bar/kernel/system.c: line 136-143 linux/linux-0.96c/fs/super.c: line 138-144 < rpc->p_reg[RET_REG] = 0; /* child sees pid = 0 to know it is child */ < < rpc->user_time = 0; /* set all the accounting times to 0 */ < rpc->sys_time = 0; < rpc->child_utime = 0; < rpc->child_stime = 0; < return(OK); <} --- > s->s_dev = dev; > s->s_covered = NULL; > s->s_time = 0; > s->s_rd_only = 0; > s->s_dirt = 0; > return(s); >} minix/1.1/bar/kernel/tty.c: line 436-440 linux/linux-0.96c/kernel/chr_drv/console.c: line 536-548 < case 0: shift1 = make; break; /* shift key on left */ < case 1: shift2 = make; break; /* shift key on right */ < case 2: control = make; break; /* control */ < case 3: alt = make; break; /* alt key */ < case 4: if (make) capslock = 1 - capslock; break; /* caps lock */ --- > case 1: > intensity = 2; > break; > case 2: > intensity = 0; > break; > case 4: > underline = 1; > break; > case 5: > blink = 1; > break; > case 7: minix/1.1/bar/fs/stadir.c: line 156-159 linux/linux-0.96c/fs/ext/inode.c: line 89-92 < stp->st_dev = (int) rip->i_dev; < stp->st_ino = rip->i_num; < stp->st_mode = rip->i_mode; < stp->st_nlink = rip->i_nlinks & BYTE; --- > s->s_firstdatazone = es->s_firstdatazone; > s->s_log_zone_size = es->s_log_zone_size; > s->s_max_size = es->s_max_size; > s->s_magic = es->s_magic; minix/1.1/bar/kernel/tty.c: line 157-158 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 380-381 < 0,033,'1','2','3','4','5','6', '7','8','9','0','-','=','\b','\t', < 'q','w','e','r','t','y','u','i', 'o','p','[',']',015,0202,'a','s', --- > '"', '~', '0', '|', 'Z', 'X', 'C', 'V', > 'B', 'N', 'M', '<', '>', '?', 0, '*', minix/1.1/bar/kernel/tty.c: line 167-168 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 380-381 < 0,033,'!','@','#','$','%','^', '&','*','(',')','_','+','\b','\t', < 'Q','W','E','R','T','Y','U','I', 'O','P','{','}',015,0202,'A','S', --- > '"', '~', '0', '|', 'Z', 'X', 'C', 'V', > 'B', 'N', 'M', '<', '>', '?', 0, '*', minix/1.1/bar/kernel/tty.c: line 170-171 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 673-675 < 'B','N','M','<','>','?',0201,'*', 0203,' ',0204,0221,0222,0223,0224,0225, < 0226,0227,0230,0231,0232,0204,0213,'7', '8','9',0211,'4','5','6',0214,'1', --- > '{', '[', ']', '}', 0, '|', 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, '~', 13, 0, 0, 0, minix/1.1/bar/kernel/tty.c: line 192-193 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 673-675 < 'B','N','M','<','>','?',0201,'*', 0203,' ',0204,0221,0222,0223,0224,0225, < 0226,0227,0230,0231,0232,0270,023,'7', '8','9',0211,'4','5','6',0214,'1', --- > '{', '[', ']', '}', 0, '|', 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, '~', 13, 0, 0, 0, minix/1.1/bar/fs/open.c: line 288-294 linux/linux-0.96c/fs/read_write.c: line 46-56 < if (rfilp->filp_ino->i_pipe == I_PIPE) return(ESPIPE); < < /* The value of 'whence' determines the algorithm to use. */ < switch(whence) { < case 0: pos = offset; break; < case 1: pos = rfilp->filp_pos + offset; break; < case 2: pos = rfilp->filp_ino->i_size + offset; break; --- > return file->f_op->lseek(file->f_inode,file,offset,origin); > >/* this is the default handler if no lseek handler is present */ > switch (origin) { > case 0: > tmp = offset; > break; > case 1: > tmp = file->f_pos + offset; > break; > case 2: minix/1.1/bar/h/com.h: line 10-21 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 17-28 <#define SYSTASK -2 /* internal functions */ <# define SYS_XIT 1 /* fcn code for sys_xit(parent, proc) */ <# define SYS_GETSP 2 /* fcn code for sys_sp(proc, &new_sp) */ <# define SYS_SIG 3 /* fcn code for sys_sig(proc, sig) */ <# define SYS_FORK 4 /* fcn code for sys_fork(parent, child) */ <# define SYS_NEWMAP 5 /* fcn code for sys_newmap(procno, map_ptr) */ <# define SYS_COPY 6 /* fcn code for sys_copy(ptr) */ <# define SYS_EXEC 7 /* fcn code for sys_exec(procno, new_sp) */ <# define SYS_TIMES 8 /* fcn code for sys_times(procno, bufptr) */ <# define SYS_ABORT 9 /* fcn code for sys_abort() */ < <#define CLOCK -3 /* clock class */ --- >#define LSHIFT 0x01 >#define RSHIFT 0x02 >#define LCTRL 0x04 >#define RCTRL 0x08 >#define ALT 0x10 >#define ALTGR 0x20 >#define CAPS 0x40 >#define CAPSDOWN 0x80 > >#define SCRLED 0x01 >#define NUMLED 0x02 >#define CAPSLED 0x04 minix/1.1/bar/include/ctype.h: line 3-11 linux/linux-0.96c/include/unistd.h: line 33-40 <#define _U 0001 <#define _L 0002 <#define _N 0004 <#define _S 0010 <#define _P 0020 <#define _C 0040 <#define _X 0100 < <#define isalpha(c) ((_ctype_+1)[c]&(_U|_L)) --- >#define _SC_ARG_MAX 1 >#define _SC_CHILD_MAX 2 >#define _SC_CLOCKS_PER_SEC 3 >#define _SC_NGROUPS_MAX 4 >#define _SC_OPEN_MAX 5 >#define _SC_JOB_CONTROL 6 >#define _SC_SAVED_IDS 7 >#define _SC_VERSION 8 minix/1.1/bar/kernel/system.c: line 239-240 linux/linux-0.96c/kernel/exit.c: line 448-449 < rp->child_utime += rc->user_time + rc->child_utime; /* accum child times */ < rp->child_stime += rc->sys_time + rc->child_stime; --- > current->cutime += p->utime + p->cutime; > current->cstime += p->stime + p->cstime; minix/1.1/bar/kernel/tty.c: line 364-367 linux/linux-0.96c/fs/ext/bitmap.c: line 224-227 < tp->tty_inhead = tp->tty_inqueue; /* discard input */ < tp->tty_intail = tp->tty_inqueue; < tp->tty_incount = 0; < tp->tty_lfct = 0; --- > inode->i_uid = current->euid; > inode->i_gid = current->egid; > inode->i_dirt = 1; > inode->i_ino = j + i*8192; minix/1.1/bar/kernel/dmp.c: line 99-100 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 907-910 static char *func_table[] = { > "\033[[A", "\033[[B", "\033[[C", "\033[[D", > "\033[[E", "\033[[F", "\033[[G", "\033[[H", > "\033[[I", "\033[[J", "\033[[K", "\033[[L" minix/1.1/bar/kernel/tty.c: line 136-145 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 17-27 <#define NOT_ESCAPED 0 /* previous character on this line not '\' */ <#define ESCAPED 1 /* previous character on this line was '\' */ <#define RUNNING 0 /* no CRTL-S has been typed to stop the tty */ <#define STOPPED 1 /* CTRL-S has been typed to stop the tty */ <#define INACTIVE 0 /* the tty is not printing */ <#define BUSY 1 /* the tty is printing */ <#define ONE_INT 0 /* regular terminals interrupt once per char */ <#define TWO_INTS 1 /* IBM console interrupts two times per char */ <#define NOT_WAITING 0 /* no output process is hanging */ <#define WAITING 1 /* an output process is waiting for a reply */ --- >#define LSHIFT 0x01 >#define RSHIFT 0x02 >#define LCTRL 0x04 >#define RCTRL 0x08 >#define ALT 0x10 >#define ALTGR 0x20 >#define CAPS 0x40 >#define CAPSDOWN 0x80 > >#define SCRLED 0x01 >#define NUMLED 0x02 minix/1.1/bar/kernel/tty.c: line 168-169 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 329-331 < 'Q','W','E','R','T','Y','U','I', 'O','P','{','}',015,0202,'A','S', < 'D','F','G','H','J','K','L',':', 042,'~',0200,'|','Z','X','C','V', --- > '/', '(', ')', '=', '?', '`', 127, 9, > 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', > 'O', 'P', 197, '^', 13, 0, 'A', 'S', minix/1.1/bar/kernel/tty.c: line 169-170 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 271-273 < 'D','F','G','H','J','K','L',':', 042,'~',0200,'|','Z','X','C','V', < 'B','N','M','<','>','?',0201,'*', 0203,' ',0204,0221,0222,0223,0224,0225, --- > '{', 0, 0, '\'', 'z', 'x', 'c', 'v', > 'b', 'n', 'm', ',', '.', '-', 0, '*', > 0, 32, 0, 0, 0, 0, 0, 0, minix/1.1/bar/fs/filedes.c: line 35-39 linux/linux-0.96c/kernel/sys.c: line 438-441 < *k = -1; /* we need a way to tell if file desc found */ < < /* Search the fproc table for a free file descriptor. */ < for (i = 0; i < NR_FDS; i++) { < if (fp->fp_filp[i] == NIL_FILP) { --- > return 1; > > for (i = 0; i < NGROUPS; i++) { > if (current->groups[i] == NOGROUP) minix/1.1/bar/fs/mount.c: line 109-116 linux/linux-0.96c/fs/ext/file.c: line 214-219 < return(r); < } < < /* Nothing else can go wrong. Perform the mount. */ < rip->i_mount = I_MOUNT; /* this bit says the inode is mounted on */ < sp->s_imount = rip; < sp->s_isup = root_ip; < sp->s_rd_only = rd_only; --- > brelse(bh); > } > inode->i_mtime = CURRENT_TIME; > inode->i_ctime = CURRENT_TIME; > filp->f_pos = pos; > inode->i_dirt = 1; minix/1.1/bar/kernel/tty.c: line 190-191 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 422-423 < 'Q','W','E','R' ,'T','Y','U','I', 'O','P',0140,'{','\r',0202,'A','S', < 'D','F','G','H','J','K','L','+', '*','}',0200,'|','Z','X','C','V', --- > 0, 27, '!', '"', 163, '$', '%', '^', > '&', '*', '(', ')', '_', '+', 127, 9, minix/1.1/bar/fs/inode.c: line 166-168 linux/linux-0.96c/fs/ext/namei.c: line 292-294 < rip->i_dirt = DIRTY; < for (i = 0; i < NR_ZONE_NUMS; i++) < rip->i_zone[i] = NO_ZONE; --- > de->name_len = namelen; > for (i=0; i < namelen ; i++) > de->name[i]=/*(i long ru_msgsnd; /* messages sent */ > long ru_msgrcv; /* messages received */ > long ru_nsignals; /* signals received */ > long ru_nvcsw; /* voluntary context switches */ > long ru_nivcsw; /* involuntary " */ >}; > >/* > * Resource limits > */ > >#define RLIMIT_CPU 0 /* CPU time in ms */ >#define RLIMIT_FSIZE 1 /* Maximum filesize */ >#define RLIMIT_DATA 2 /* max data size */ >#define RLIMIT_STACK 3 /* max stack size */ >#define RLIMIT_CORE 4 /* max core file size */ >#define RLIMIT_RSS 5 /* max resident set size */ minix/1.1/bar/include/stat.h: line 8-21 linux/linux-0.96c/include/sys/resource.h: line 30-46 < short int st_rdev; < long st_size; < long st_atime; < long st_mtime; < long st_ctime; <}; < long ru_msgsnd; /* messages sent */ > long ru_msgrcv; /* messages received */ > long ru_nsignals; /* signals received */ > long ru_nvcsw; /* voluntary context switches */ > long ru_nivcsw; /* involuntary " */ >}; > >/* > * Resource limits > */ > >#define RLIMIT_CPU 0 /* CPU time in ms */ >#define RLIMIT_FSIZE 1 /* Maximum filesize */ >#define RLIMIT_DATA 2 /* max data size */ >#define RLIMIT_STACK 3 /* max stack size */ >#define RLIMIT_CORE 4 /* max core file size */ >#define RLIMIT_RSS 5 /* max resident set size */ minix/1.1/bar/kernel/tty.c: line 1169-1170 linux/linux-0.96c/fs/super.c: line 253-254 < for (tp = &tty_struct[0]; tp < &tty_struct[NR_TTYS]; tp++) { < tp->tty_inhead = tp->tty_inqueue; --- > for(p = &super_block[0] ; p < &super_block[NR_SUPER] ; p++) { > p->s_dev = 0; minix/1.1/bar/include/ctype.h: line 19-20 linux/linux-0.96c/include/linux/ctype.h: line 16-17 <#define isprint(c) ((_ctype_+1)[c]&(_P|_U|_L|_N)) <#define iscntrl(c) ((_ctype_+1)[c]&_C) --- >#define isalnum(c) ((_ctype+1)[c]&(_U|_L|_D)) >#define isalpha(c) ((_ctype+1)[c]&(_U|_L)) minix/1.1/bar/kernel/tty.c: line 194-195 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 276-277 < '2','3',0207,0177,0271,014,0272,'\r', '\b','\n','\f',036,032,0273,0274,'/', < 0233,0234,0235,0236,0237,0275,0276,0277 --- > 0, 0, 0, 0, 0, 0, '<', 0, > 0, 0, 0, 0, 0, 0, 0, 0, minix/1.1/bar/kernel/tty.c: line 745-751 linux/linux-0.96c/fs/exec.c: line 88-93 < message tty_mess; < < tty_mess.m_type = code; < tty_mess.REP_PROC_NR = proc_nr; < tty_mess.REP_STATUS = status; < tty_mess.TTY_FLAGS = extra; /* used by IOCTL for flags (mode) */ < tty_mess.TTY_SPEK = other; /* used by IOCTL for erase and kill chars */ --- > goto end_coredump; > file.f_mode = 3; > file.f_flags = 0; > file.f_count = 1; > file.f_inode = inode; > file.f_pos = 0; minix/1.1/bar/fs/const.h: line 23-33 linux/linux-0.96c/kernel/blk_drv/scsi/scsi.h: line 47-55 <#define NO_BIT (bit_nr) 0 /* returned by alloc_bit() to signal failure */ <#define DUP_MASK 0100 /* mask to distinguish dup2 from dup */ < <#define LOOK_UP 0 /* tells search_dir to lookup string */ <#define ENTER 1 /* tells search_dir to make dir entry */ <#define DELETE 2 /* tells search_dir to delete entry */ < <#define CLEAN 0 /* disk and memory copies identical */ <#define DIRTY 1 /* disk and memory copies differ */ < <#define BOOT_BLOCK (block_nr) 0 /* block number of boot block */ --- >#define VERIFY 0x2f >#define SEARCH_HIGH 0x30 >#define SEARCH_EQUAL 0x31 >#define SEARCH_LOW 0x32 >#define SET_LIMITS 0x33 >#define COMPARE 0x39 >#define COPY_VERIFY 0x3a > >#define COMMAND_SIZE(opcode) ((opcode) ? ((opcode) > 0x20 ? 10 : 6) : 0) minix/1.1/bar/fs/inode.c: line 134-137 linux/linux-0.96c/fs/ext/bitmap.c: line 223-226 < rip->i_nlinks = (links) 0; < rip->i_uid = fp->fp_effuid; < rip->i_gid = fp->fp_effgid; < rip->i_dev = dev; /* was provisionally set to NO_DEV */ --- > inode->i_dev = dev; > inode->i_uid = current->euid; > inode->i_gid = current->egid; > inode->i_dirt = 1; minix/1.1/bar/fs/putc.c: line 44-48 linux/linux-0.96c/fs/exec.c: line 89-93 < putchmsg.m_type = TTY_WRITE; < putchmsg.PROC_NR = 1; < putchmsg.TTY_LINE = 0; < putchmsg.ADDRESS = printbuf; < putchmsg.COUNT = bufcount; --- > file.f_mode = 3; > file.f_flags = 0; > file.f_count = 1; > file.f_inode = inode; > file.f_pos = 0; minix/1.1/bar/kernel/dmp.c: line 89-91 linux/linux-0.96c/kernel/fork.c: line 49-50 < prname(rp-proc); < printf(" %4x %4x %4x %4x %4x %4x %4x %4x %4x %3dK %3dK\n", < rp->p_map[T].mem_vir, rp->p_map[T].mem_phys, rp->p_map[T].mem_len, --- > printk("ldt[0]: %08x %08x\n",current->ldt[0].a,current->ldt[0].b); > printk("ldt[1]: %08x %08x\n",current->ldt[1].a,current->ldt[1].b); minix/1.1/bar/kernel/floppy.c: line 304-307 linux/linux-0.96c/kernel/chr_drv/serial.c: line 453-456 < port_out(DMA_M2, mode); /* set the DMA mode */ < port_out(DMA_M1, mode); /* set it again */ < port_out(DMA_ADDR, low_addr); /* output low-order 8 bits */ < port_out(DMA_ADDR, high_addr);/* output next 8 bits */ --- > set_intr_gate(0x23,IRQ3_interrupt); > set_intr_gate(0x24,IRQ4_interrupt); > set_intr_gate(0x25,IRQ5_interrupt); > set_intr_gate(0x29,IRQ9_interrupt); minix/1.1/bar/kernel/tty.c: line 183-183 linux/linux-0.96c/kernel/chr_drv/keyboard.c: line 579-580 <0262,0263,'0','.',' ',014,0212,'\r', 0264,0262,0266,0270,032,0213,' ','/', --- > '`', '\\', '^', '@', ']', '}', 0, 0, > '@', 0, 0, 0, 0, 0, 0, 0, minix/1.1/bar/kernel/wini.c: line 247-250 linux/linux-0.96c/kernel/chr_drv/serial.c: line 453-456 < port_out(DMA_M2, mode); /* set the DMA mode */ < port_out(DMA_M1, mode); /* set it again */ < port_out(DMA_ADDR, low_addr); /* output low-order 8 bits */ < port_out(DMA_ADDR, high_addr);/* output next 8 bits */ --- > set_intr_gate(0x23,IRQ3_interrupt); > set_intr_gate(0x24,IRQ4_interrupt); > set_intr_gate(0x25,IRQ5_interrupt); > set_intr_gate(0x29,IRQ9_interrupt); minix/1.1/bar/kernel/wini.c: line 535-537 linux/linux-0.96c/kernel/math/emulate.c: line 340-342 < port_out(WIN_SELECT, mode); < port_out(WIN_DMA, mode); < for (i=0; i address = ea(info,code); > verify_area(address,28); > for (code = 0 ; code < 7 ; code++) { minix/1.1/bar/kernel/xt_wini.c: line 247-250 linux/linux-0.96c/kernel/chr_drv/serial.c: line 453-456 < port_out(DMA_M2, mode); /* set the DMA mode */ < port_out(DMA_M1, mode); /* set it again */ < port_out(DMA_ADDR, low_addr); /* output low-order 8 bits */ < port_out(DMA_ADDR, high_addr);/* output next 8 bits */ --- > set_intr_gate(0x23,IRQ3_interrupt); > set_intr_gate(0x24,IRQ4_interrupt); > set_intr_gate(0x25,IRQ5_interrupt); > set_intr_gate(0x29,IRQ9_interrupt); minix/1.1/bar/kernel/xt_wini.c: line 535-537 linux/linux-0.96c/kernel/math/emulate.c: line 340-342 < port_out(WIN_SELECT, mode); < port_out(WIN_DMA, mode); < for (i=0; i address = ea(info,code); > verify_area(address,28); > for (code = 0 ; code < 7 ; code++) { minix/1.1/bar/kernel/at_wini.c: line 218-220 linux/linux-0.96c/kernel/traps.c: line 200-202 < receive(HARDWARE, &w_mess); < for (j=0; j<256; j++) < portw_in(WIN_REG1, &buf[i*512+j*2]); --- > set_trap_gate(17,&alignment_check); > for (i=18;i<48;i++) > set_trap_gate(i,&reserved); minix/1.1/bar/mm/putc.c: line 39-43 linux/linux-0.96c/fs/exec.c: line 89-93 < putch_msg.m_type = TTY_WRITE; < putch_msg.PROC_NR = 0; < putch_msg.TTY_LINE = 0; < putch_msg.ADDRESS = print_buf; < putch_msg.COUNT = buf_count; --- > file.f_mode = 3; > file.f_flags = 0; > file.f_count = 1; > file.f_inode = inode; > file.f_pos = 0;