File minix/1.2/bar/fs/buf.h: 160 tokens File minix/1.2/bar/fs/cache.c: 994 tokens File minix/1.2/bar/fs/const.h: 194 tokens File minix/1.2/bar/fs/dev.h: 31 tokens File minix/1.2/bar/fs/device.c: 563 tokens File minix/1.2/bar/fs/file.h: 27 tokens File minix/1.2/bar/fs/filedes.c: 260 tokens File minix/1.2/bar/fs/fproc.h: 61 tokens File minix/1.2/bar/fs/glo.h: 52 tokens File minix/1.2/bar/fs/inode.c: 766 tokens File minix/1.2/bar/fs/inode.h: 67 tokens File minix/1.2/bar/fs/link.c: 734 tokens File minix/1.2/bar/fs/main.c: 1307 tokens File minix/1.2/bar/fs/misc.c: 799 tokens File minix/1.2/bar/fs/mount.c: 859 tokens File minix/1.2/bar/fs/open.c: 1158 tokens File minix/1.2/bar/fs/param.h: 235 tokens File minix/1.2/bar/fs/path.c: 1162 tokens File minix/1.2/bar/fs/pipe.c: 979 tokens File minix/1.2/bar/fs/protect.c: 595 tokens File minix/1.2/bar/fs/putc.c: 117 tokens File minix/1.2/bar/fs/read.c: 1583 tokens File minix/1.2/bar/fs/stadir.c: 602 tokens File minix/1.2/bar/fs/super.c: 1024 tokens File minix/1.2/bar/fs/super.h: 64 tokens File minix/1.2/bar/fs/table.c: 388 tokens File minix/1.2/bar/fs/time.c: 236 tokens File minix/1.2/bar/fs/type.h: 34 tokens File minix/1.2/bar/fs/utility.c: 478 tokens File minix/1.2/bar/fs/write.c: 918 tokens File minix/1.2/bar/h/callnr.h: 141 tokens File minix/1.2/bar/h/com.h: 244 tokens File minix/1.2/bar/h/const.h: 165 tokens File minix/1.2/bar/h/error.h: 206 tokens File minix/1.2/bar/h/sgtty.h: 96 tokens File minix/1.2/bar/h/signal.h: 85 tokens File minix/1.2/bar/h/stat.h: 66 tokens File minix/1.2/bar/h/type.h: 548 tokens File minix/1.2/bar/include/blocksize.h: 3 tokens File minix/1.2/bar/include/callnr.h: 141 tokens File minix/1.2/bar/include/com.h: 244 tokens File minix/1.2/bar/include/const.h: 165 tokens File minix/1.2/bar/include/ctype.h: 297 tokens File minix/1.2/bar/include/errno.h: 117 tokens File minix/1.2/bar/include/error.h: 206 tokens File minix/1.2/bar/include/grp.h: 12 tokens File minix/1.2/bar/include/lib.h: 34 tokens File minix/1.2/bar/include/pwd.h: 23 tokens File minix/1.2/bar/include/regexp.h: 62 tokens File minix/1.2/bar/include/setjmp.h: 11 tokens File minix/1.2/bar/include/sgtty.h: 96 tokens File minix/1.2/bar/include/signal.h: 85 tokens File minix/1.2/bar/include/stat.h: 66 tokens File minix/1.2/bar/include/stdio.h: 275 tokens File minix/1.2/bar/include/type.h: 548 tokens File minix/1.2/bar/kernel/clock.c: 644 tokens File minix/1.2/bar/kernel/const.h: 101 tokens File minix/1.2/bar/kernel/dmp.c: 805 tokens File minix/1.2/bar/kernel/floppy.c: 2416 tokens File minix/1.2/bar/kernel/glo.h: 51 tokens File minix/1.2/bar/kernel/main.c: 1193 tokens File minix/1.2/bar/kernel/memory.c: 475 tokens File minix/1.2/bar/kernel/printer.c: 828 tokens File minix/1.2/bar/kernel/proc.c: 1314 tokens File minix/1.2/bar/kernel/proc.h: 134 tokens File minix/1.2/bar/kernel/system.c: 1913 tokens File minix/1.2/bar/kernel/table.c: 71 tokens File minix/1.2/bar/kernel/tty.c: 5508 tokens File minix/1.2/bar/kernel/type.h: 27 tokens File minix/1.2/bar/kernel/wini.c: 2680 tokens File minix/1.2/bar/mm/alloc.c: 590 tokens File minix/1.2/bar/mm/break.c: 654 tokens File minix/1.2/bar/mm/const.h: 44 tokens File minix/1.2/bar/mm/exec.c: 1587 tokens File minix/1.2/bar/mm/forkexit.c: 1006 tokens File minix/1.2/bar/mm/getset.c: 184 tokens File minix/1.2/bar/mm/glo.h: 39 tokens File minix/1.2/bar/mm/main.c: 713 tokens File minix/1.2/bar/mm/mproc.h: 64 tokens File minix/1.2/bar/mm/param.h: 91 tokens File minix/1.2/bar/mm/putc.c: 104 tokens File minix/1.2/bar/mm/signal.c: 1502 tokens File minix/1.2/bar/mm/table.c: 236 tokens File minix/1.2/bar/mm/type.h: 0 tokens File minix/1.2/bar/mm/utility.c: 384 tokens File /: separator File linux/linux-0.12/fs/stat.c: 465 tokens File linux/linux-0.12/fs/read_write.c: 738 tokens File linux/linux-0.12/fs/block_dev.c: 436 tokens File linux/linux-0.12/fs/buffer.c: 1700 tokens File linux/linux-0.12/fs/inode.c: 1863 tokens File linux/linux-0.12/fs/file_table.c: 6 tokens File linux/linux-0.12/fs/open.c: 1184 tokens File linux/linux-0.12/fs/char_dev.c: 521 tokens File linux/linux-0.12/fs/exec.c: 1911 tokens File linux/linux-0.12/fs/file_dev.c: 493 tokens File linux/linux-0.12/fs/fcntl.c: 327 tokens File linux/linux-0.12/fs/super.c: 1493 tokens File linux/linux-0.12/fs/namei.c: 4501 tokens File linux/linux-0.12/fs/ioctl.c: 248 tokens File linux/linux-0.12/fs/pipe.c: 801 tokens File linux/linux-0.12/fs/truncate.c: 453 tokens File linux/linux-0.12/fs/bitmap.c: 1017 tokens File linux/linux-0.12/fs/select.c: 1355 tokens File linux/linux-0.12/include/sys/stat.h: 273 tokens File linux/linux-0.12/include/sys/types.h: 146 tokens File linux/linux-0.12/include/sys/times.h: 28 tokens File linux/linux-0.12/include/sys/utsname.h: 47 tokens File linux/linux-0.12/include/sys/wait.h: 176 tokens File linux/linux-0.12/include/sys/time.h: 291 tokens File linux/linux-0.12/include/sys/param.h: 23 tokens File linux/linux-0.12/include/sys/resource.h: 96 tokens File linux/linux-0.12/include/unistd.h: 1679 tokens File linux/linux-0.12/include/time.h: 198 tokens File linux/linux-0.12/include/termios.h: 656 tokens File linux/linux-0.12/include/stddef.h: 61 tokens File linux/linux-0.12/include/stdarg.h: 164 tokens File linux/linux-0.12/include/fcntl.h: 132 tokens File linux/linux-0.12/include/utime.h: 29 tokens File linux/linux-0.12/include/string.h: 1465 tokens File linux/linux-0.12/include/errno.h: 136 tokens File linux/linux-0.12/include/signal.h: 335 tokens File linux/linux-0.12/include/const.h: 34 tokens File linux/linux-0.12/include/a.out.h: 599 tokens File linux/linux-0.12/include/ctype.h: 403 tokens File linux/linux-0.12/include/linux/hdreg.h: 143 tokens File linux/linux-0.12/include/linux/kernel.h: 135 tokens File linux/linux-0.12/include/linux/sched.h: 1365 tokens File linux/linux-0.12/include/linux/sys.h: 627 tokens File linux/linux-0.12/include/linux/tty.h: 687 tokens File linux/linux-0.12/include/linux/fs.h: 909 tokens File linux/linux-0.12/include/linux/mm.h: 192 tokens File linux/linux-0.12/include/linux/head.h: 54 tokens File linux/linux-0.12/include/linux/config.h: 34 tokens File linux/linux-0.12/include/linux/fdreg.h: 163 tokens File linux/linux-0.12/include/linux/math_emu.h: 1184 tokens File linux/linux-0.12/include/asm/io.h: 136 tokens File linux/linux-0.12/include/asm/memory.h: 70 tokens File linux/linux-0.12/include/asm/system.h: 512 tokens File linux/linux-0.12/include/asm/segment.h: 296 tokens File linux/linux-0.12/init/main.c: 973 tokens File linux/linux-0.12/kernel/sched.c: 2065 tokens File linux/linux-0.12/kernel/exit.c: 2377 tokens File linux/linux-0.12/kernel/fork.c: 916 tokens File linux/linux-0.12/kernel/panic.c: 40 tokens File linux/linux-0.12/kernel/traps.c: 1005 tokens File linux/linux-0.12/kernel/signal.c: 1036 tokens File linux/linux-0.12/kernel/printk.c: 66 tokens File linux/linux-0.12/kernel/sys.c: 2093 tokens File linux/linux-0.12/kernel/mktime.c: 323 tokens File linux/linux-0.12/kernel/vsprintf.c: 1150 tokens File linux/linux-0.12/kernel/chr_drv/console.c: 4411 tokens File linux/linux-0.12/kernel/chr_drv/tty_ioctl.c: 1382 tokens File linux/linux-0.12/kernel/chr_drv/tty_io.c: 2913 tokens File linux/linux-0.12/kernel/chr_drv/serial.c: 180 tokens File linux/linux-0.12/kernel/chr_drv/pty.c: 193 tokens File linux/linux-0.12/kernel/math/math_emulate.c: 2870 tokens File linux/linux-0.12/kernel/math/error.c: 29 tokens File linux/linux-0.12/kernel/math/convert.c: 1329 tokens File linux/linux-0.12/kernel/math/ea.c: 508 tokens File linux/linux-0.12/kernel/math/get_put.c: 1341 tokens File linux/linux-0.12/kernel/math/add.c: 468 tokens File linux/linux-0.12/kernel/math/mul.c: 298 tokens File linux/linux-0.12/kernel/math/div.c: 605 tokens File linux/linux-0.12/kernel/math/compare.c: 246 tokens File linux/linux-0.12/kernel/blk_drv/hd.c: 1871 tokens File linux/linux-0.12/kernel/blk_drv/ll_rw_blk.c: 865 tokens File linux/linux-0.12/kernel/blk_drv/floppy.c: 1780 tokens File linux/linux-0.12/kernel/blk_drv/blk.h: 608 tokens File linux/linux-0.12/kernel/blk_drv/ramdisk.c: 463 tokens File linux/linux-0.12/lib/ctype.c: 707 tokens File linux/linux-0.12/lib/close.c: 15 tokens File linux/linux-0.12/lib/dup.c: 15 tokens File linux/linux-0.12/lib/_exit.c: 32 tokens File linux/linux-0.12/lib/open.c: 85 tokens File linux/linux-0.12/lib/errno.c: 2 tokens File linux/linux-0.12/lib/execve.c: 29 tokens File linux/linux-0.12/lib/setsid.c: 11 tokens File linux/linux-0.12/lib/string.c: 18 tokens File linux/linux-0.12/lib/wait.c: 43 tokens File linux/linux-0.12/lib/write.c: 25 tokens File linux/linux-0.12/lib/malloc.c: 769 tokens File linux/linux-0.12/mm/memory.c: 2351 tokens File linux/linux-0.12/mm/swap.c: 970 tokens File linux/linux-0.12/tools/build.c: 1098 tokens Total: 119305 tokens minix/1.2/bar/kernel/floppy.c: line 32-91 linux/linux-0.12/include/termios.h: line 67-119 <#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 VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 >#define OFDEL 0000200 >#define NLDLY 0000400 >#define NL0 0000000 >#define NL1 0000400 >#define CRDLY 0003000 >#define CR0 0000000 >#define CR1 0001000 >#define CR2 0002000 >#define CR3 0003000 >#define TABDLY 0014000 >#define TAB0 0000000 minix/1.2/bar/h/callnr.h: line 1-50 linux/linux-0.12/include/termios.h: line 67-117 <#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 VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 >#define OFDEL 0000200 >#define NLDLY 0000400 >#define NL0 0000000 >#define NL1 0000400 >#define CRDLY 0003000 >#define CR0 0000000 >#define CR1 0001000 >#define CR2 0002000 >#define CR3 0003000 minix/1.2/bar/include/callnr.h: line 1-50 linux/linux-0.12/include/termios.h: line 67-117 <#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 VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 >#define OFDEL 0000200 >#define NLDLY 0000400 >#define NL0 0000000 >#define NL1 0000400 >#define CRDLY 0003000 >#define CR0 0000000 >#define CR1 0001000 >#define CR2 0002000 >#define CR3 0003000 minix/1.2/bar/fs/table.c: line 35-104 linux/linux-0.12/include/linux/sys.h: line 93-104 fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, >sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount, >sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm, >sys_fstat, sys_pause, sys_utime, sys_stty, sys_gtty, sys_access, >sys_nice, sys_ftime, sys_sync, sys_kill, sys_rename, sys_mkdir, >sys_rmdir, sys_dup, sys_pipe, sys_times, sys_prof, sys_brk, sys_setgid, >sys_getgid, sys_signal, sys_geteuid, sys_getegid, sys_acct, sys_phys, >sys_lock, sys_ioctl, sys_fcntl, sys_mpx, sys_setpgid, sys_ulimit, >sys_uname, sys_umask, sys_chroot, sys_ustat, sys_dup2, sys_getppid, >sys_getpgrp, sys_setsid, sys_sigaction, sys_sgetmask, sys_ssetmask, minix/1.2/bar/mm/table.c: line 28-97 linux/linux-0.12/include/linux/sys.h: line 93-104 fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, >sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount, >sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm, >sys_fstat, sys_pause, sys_utime, sys_stty, sys_gtty, sys_access, >sys_nice, sys_ftime, sys_sync, sys_kill, sys_rename, sys_mkdir, >sys_rmdir, sys_dup, sys_pipe, sys_times, sys_prof, sys_brk, sys_setgid, >sys_getgid, sys_signal, sys_geteuid, sys_getegid, sys_acct, sys_phys, >sys_lock, sys_ioctl, sys_fcntl, sys_mpx, sys_setpgid, sys_ulimit, >sys_uname, sys_umask, sys_chroot, sys_ustat, sys_dup2, sys_getppid, >sys_getpgrp, sys_setsid, sys_sigaction, sys_sgetmask, sys_ssetmask, minix/1.2/bar/include/errno.h: line 1-40 linux/linux-0.12/include/termios.h: line 67-109 <#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 VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 >#define OFDEL 0000200 minix/1.2/bar/h/com.h: line 48-98 linux/linux-0.12/include/termios.h: line 67-108 <# define SUSPEND -998 /* used in interrupts when tty has no data */ < #define VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 minix/1.2/bar/include/com.h: line 48-98 linux/linux-0.12/include/termios.h: line 67-108 <# define SUSPEND -998 /* used in interrupts when tty has no data */ < #define VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 minix/1.2/bar/kernel/tty.c: line 792-836 linux/linux-0.12/include/termios.h: line 67-108 <#ifdef i8088 #define VINTR 0 >#define VQUIT 1 >#define VERASE 2 >#define VKILL 3 >#define VEOF 4 >#define VTIME 5 >#define VMIN 6 >#define VSWTC 7 >#define VSTART 8 >#define VSTOP 9 >#define VSUSP 10 >#define VEOL 11 >#define VREPRINT 12 >#define VDISCARD 13 >#define VWERASE 14 >#define VLNEXT 15 >#define VEOL2 16 > >/* c_iflag bits */ >#define IGNBRK 0000001 >#define BRKINT 0000002 >#define IGNPAR 0000004 >#define PARMRK 0000010 >#define INPCK 0000020 >#define ISTRIP 0000040 >#define INLCR 0000100 >#define IGNCR 0000200 >#define ICRNL 0000400 >#define IUCLC 0001000 >#define IXON 0002000 >#define IXANY 0004000 >#define IXOFF 0010000 >#define IMAXBEL 0020000 > >/* c_oflag bits */ >#define OPOST 0000001 >#define OLCUC 0000002 >#define ONLCR 0000004 >#define OCRNL 0000010 >#define ONOCR 0000020 >#define ONLRET 0000040 >#define OFILL 0000100 minix/1.2/bar/kernel/wini.c: line 47-76 linux/linux-0.12/include/termios.h: line 6-31 <#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 TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C >#define TIOCNXCL 0x540D >#define TIOCSCTTY 0x540E >#define TIOCGPGRP 0x540F >#define TIOCSPGRP 0x5410 >#define TIOCOUTQ 0x5411 >#define TIOCSTI 0x5412 >#define TIOCGWINSZ 0x5413 >#define TIOCSWINSZ 0x5414 >#define TIOCMGET 0x5415 >#define TIOCMBIS 0x5416 minix/1.2/bar/h/const.h: line 20-50 linux/linux-0.12/include/termios.h: line 2-29 <#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 _TERMIOS_H > >#include > >#define TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C >#define TIOCNXCL 0x540D >#define TIOCSCTTY 0x540E >#define TIOCGPGRP 0x540F >#define TIOCSPGRP 0x5410 >#define TIOCOUTQ 0x5411 >#define TIOCSTI 0x5412 >#define TIOCGWINSZ 0x5413 >#define TIOCSWINSZ 0x5414 minix/1.2/bar/include/const.h: line 20-50 linux/linux-0.12/include/termios.h: line 2-29 <#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 _TERMIOS_H > >#include > >#define TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C >#define TIOCNXCL 0x540D >#define TIOCSCTTY 0x540E >#define TIOCGPGRP 0x540F >#define TIOCSPGRP 0x5410 >#define TIOCOUTQ 0x5411 >#define TIOCSTI 0x5412 >#define TIOCGWINSZ 0x5413 >#define TIOCSWINSZ 0x5414 minix/1.2/bar/fs/table.c: line 117-126 linux/linux-0.12/include/linux/sys.h: line 93-97 fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, >sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount, >sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm, minix/1.2/bar/kernel/const.h: line 7-37 linux/linux-0.12/include/errno.h: line 41-64 <#define INIT_SP (int*)0x0010 /* initial sp: 3 words pushed by kernel */ < #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 EDEADLK 35 >#define ENAMETOOLONG 36 >#define ENOLCK 37 >#define ENOSYS 38 >#define ENOTEMPTY 39 > >/* Should never be seen by user programs */ >#define ERESTARTSYS 512 >#define ERESTARTNOINTR 513 > >#endif minix/1.2/bar/h/signal.h: line 1-20 linux/linux-0.12/include/termios.h: line 6-26 <#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 TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C >#define TIOCNXCL 0x540D >#define TIOCSCTTY 0x540E >#define TIOCGPGRP 0x540F >#define TIOCSPGRP 0x5410 >#define TIOCOUTQ 0x5411 minix/1.2/bar/include/signal.h: line 1-20 linux/linux-0.12/include/termios.h: line 6-26 <#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 TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C >#define TIOCNXCL 0x540D >#define TIOCSCTTY 0x540E >#define TIOCGPGRP 0x540F >#define TIOCSPGRP 0x5410 >#define TIOCOUTQ 0x5411 minix/1.2/bar/kernel/tty.c: line 164-166 linux/linux-0.12/include/linux/sys.h: line 93-97 < '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 --- >fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, >sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount, >sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm, minix/1.2/bar/kernel/tty.c: line 185-187 linux/linux-0.12/include/linux/sys.h: line 93-97 < '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,' ','/', --- >fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, >sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount, >sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm, minix/1.2/bar/include/ctype.h: line 18-19 linux/linux-0.12/include/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.2/bar/kernel/tty.c: line 1207-1215 linux/linux-0.12/fs/buffer.c: line 359-367 < 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.2/bar/include/ctype.h: line 15-16 linux/linux-0.12/include/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.2/bar/include/ctype.h: line 11-12 linux/linux-0.12/include/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.2/bar/fs/main.c: line 175-178 linux/linux-0.12/fs/super.c: line 255-258 < 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.2/bar/h/const.h: line 63-78 linux/linux-0.12/include/termios.h: line 2-21 <#define BOOT_DEV (dev_nr) 512 /* major-minor device number of boot diskette */ < #define _TERMIOS_H > >#include > >#define TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C minix/1.2/bar/include/const.h: line 63-78 linux/linux-0.12/include/termios.h: line 2-21 <#define BOOT_DEV (dev_nr) 512 /* major-minor device number of boot diskette */ < #define _TERMIOS_H > >#include > >#define TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C minix/1.2/bar/fs/const.h: line 2-16 linux/linux-0.12/include/termios.h: line 6-21 <#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 TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C minix/1.2/bar/kernel/printer.c: line 33-45 linux/linux-0.12/include/termios.h: line 6-21 <#define NORMAL_STATUS 0x90 /* printer gives this status when idle */ <#define BUSY_STATUS 0x10 /* 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 TTY_BUF_SIZE 1024 > >/* 0x54 is just a magic number to make these relatively uniqe ('T') */ > >#define TCGETS 0x5401 >#define TCSETS 0x5402 >#define TCSETSW 0x5403 >#define TCSETSF 0x5404 >#define TCGETA 0x5405 >#define TCSETA 0x5406 >#define TCSETAW 0x5407 >#define TCSETAF 0x5408 >#define TCSBRK 0x5409 >#define TCXONC 0x540A >#define TCFLSH 0x540B >#define TIOCEXCL 0x540C minix/1.2/bar/kernel/floppy.c: line 139-139 linux/linux-0.12/include/linux/sys.h: line 93-95 fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, minix/1.2/bar/fs/super.c: line 59-60 linux/linux-0.12/fs/super.c: line 160-161 < 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.2/bar/fs/mount.c: line 113-118 linux/linux-0.12/fs/open.c: line 207-212 < 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; < return(OK); <} --- > f->f_flags = flag; > f->f_count = 1; > f->f_inode = inode; > f->f_pos = 0; > return (fd); >} minix/1.2/bar/h/com.h: line 10-21 linux/linux-0.12/include/sys/stat.h: line 20-31 <#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 S_IFMT 00170000 >#define S_IFLNK 0120000 >#define S_IFREG 0100000 >#define S_IFBLK 0060000 >#define S_IFDIR 0040000 >#define S_IFCHR 0020000 >#define S_IFIFO 0010000 >#define S_ISUID 0004000 >#define S_ISGID 0002000 >#define S_ISVTX 0001000 > >#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) minix/1.2/bar/include/com.h: line 10-21 linux/linux-0.12/include/sys/stat.h: line 20-31 <#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 S_IFMT 00170000 >#define S_IFLNK 0120000 >#define S_IFREG 0100000 >#define S_IFBLK 0060000 >#define S_IFDIR 0040000 >#define S_IFCHR 0020000 >#define S_IFIFO 0010000 >#define S_ISUID 0004000 >#define S_ISGID 0002000 >#define S_ISVTX 0001000 > >#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) minix/1.2/bar/include/ctype.h: line 3-11 linux/linux-0.12/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.2/bar/kernel/tty.c: line 730-733 linux/linux-0.12/fs/bitmap.c: line 163-166 < tp->tty_inhead = tp->tty_inqueue; /* discard all 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_num = j + i*8192; minix/1.2/bar/kernel/tty.c: line 778-781 linux/linux-0.12/fs/bitmap.c: line 163-166 < 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_num = j + i*8192; minix/1.2/bar/kernel/tty.c: line 137-146 linux/linux-0.12/include/sys/stat.h: line 20-29 <#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 S_IFMT 00170000 >#define S_IFLNK 0120000 >#define S_IFREG 0100000 >#define S_IFBLK 0060000 >#define S_IFDIR 0040000 >#define S_IFCHR 0020000 >#define S_IFIFO 0010000 >#define S_ISUID 0004000 >#define S_ISGID 0002000 >#define S_ISVTX 0001000 minix/1.2/bar/fs/filedes.c: line 35-39 linux/linux-0.12/kernel/sys.c: line 328-331 < *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.2/bar/kernel/tty.c: line 174-175 linux/linux-0.12/include/linux/sys.h: line 93-95 < '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', --- >fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, minix/1.2/bar/kernel/tty.c: line 196-197 linux/linux-0.12/include/linux/sys.h: line 93-95 < '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', --- >fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, >sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, >sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, minix/1.2/bar/fs/inode.c: line 166-168 linux/linux-0.12/fs/namei.c: line 212-214 < rip->i_dirt = DIRTY; < for (i = 0; i < NR_ZONE_NUMS; i++) < rip->i_zone[i] = NO_ZONE; --- > dir->i_mtime = CURRENT_TIME; > for (i=0; i < NAME_LEN ; 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.2/bar/include/stat.h: line 8-21 linux/linux-0.12/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.2/bar/kernel/tty.c: line 1204-1205 linux/linux-0.12/fs/super.c: line 255-256 < 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.2/bar/include/ctype.h: line 19-20 linux/linux-0.12/include/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.2/bar/kernel/system.c: line 136-141 linux/linux-0.12/fs/buffer.c: line 359-363 < 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; --- > h->b_dev = 0; > h->b_dirt = 0; > h->b_count = 0; > h->b_lock = 0; > h->b_uptodate = 0; minix/1.2/bar/fs/const.h: line 23-33 linux/linux-0.12/include/sys/stat.h: line 23-31 <#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 S_IFBLK 0060000 >#define S_IFDIR 0040000 >#define S_IFCHR 0020000 >#define S_IFIFO 0010000 >#define S_ISUID 0004000 >#define S_ISGID 0002000 >#define S_ISVTX 0001000 > >#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) minix/1.2/bar/fs/inode.c: line 134-137 linux/linux-0.12/fs/bitmap.c: line 162-165 < 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.2/bar/fs/mount.c: line 168-171 linux/linux-0.12/fs/exec.c: line 345-348 < put_inode(sp->s_imount); /* release the inode mounted on */ < put_inode(sp->s_isup); /* release the root inode of the mounted fs */ < sp->s_imount = NIL_INODE; < sp->s_dev = NO_DEV; --- > if (current->executable) > iput(current->executable); > current->executable = inode; > current->signal = 0; minix/1.2/bar/fs/stadir.c: line 156-159 linux/linux-0.12/fs/bitmap.c: line 162-165 < 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; --- > inode->i_dev=dev; > inode->i_uid=current->euid; > inode->i_gid=current->egid; > inode->i_dirt=1; minix/1.2/bar/fs/stadir.c: line 167-170 linux/linux-0.12/fs/bitmap.c: line 162-165 < 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; --- > inode->i_dev=dev; > inode->i_uid=current->euid; > inode->i_gid=current->egid; > inode->i_dirt=1; minix/1.2/bar/kernel/system.c: line 310-313 linux/linux-0.12/fs/bitmap.c: line 162-165 < 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; --- > inode->i_dev=dev; > inode->i_uid=current->euid; > inode->i_gid=current->egid; > inode->i_dirt=1; minix/1.2/bar/kernel/tty.c: line 513-516 linux/linux-0.12/fs/bitmap.c: line 162-165 < 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; --- > inode->i_dev=dev; > inode->i_uid=current->euid; > inode->i_gid=current->egid; > inode->i_dirt=1; minix/1.2/bar/kernel/tty.c: line 631-634 linux/linux-0.12/fs/bitmap.c: line 162-165 < 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; --- > inode->i_dev=dev; > inode->i_uid=current->euid; > inode->i_gid=current->egid; > inode->i_dirt=1; minix/1.2/bar/kernel/tty.c: line 733-737 linux/linux-0.12/fs/buffer.c: line 359-363 < tp->tty_lfct = 0; < tp->tty_inleft = 0; < tp->tty_outleft = 0; < tp->tty_waiting = NOT_WAITING; /* don't send reply */ < tp->tty_inhibited = RUNNING; --- > h->b_dev = 0; > h->b_dirt = 0; > h->b_count = 0; > h->b_lock = 0; > h->b_uptodate = 0; minix/1.2/bar/kernel/wini.c: line 578-580 linux/linux-0.12/kernel/math/math_emulate.c: line 332-334 < port_out(WIN_DMA, mode); < port_out(WIN_SELECT, mode); < for (i=0; i<300; i++) { --- > address = ea(info,code); > verify_area(address,28); > for (code = 0 ; code < 7 ; code++) {