├── .deepsource.toml ├── .gitattributes ├── .gitignore ├── .whitesource ├── LICENSE.TXT ├── MECB ├── README ├── examples │ ├── .login │ ├── .login~ │ ├── Makefile │ ├── Makefile~ │ ├── ex3.c │ ├── ex4.c │ ├── ex5.c │ ├── mon-worker.68 │ ├── mon-worker.68a │ ├── mon-worker.c │ ├── mon-worker.o68 │ ├── porttest.c │ ├── syms │ └── test.c ├── include │ ├── conf.h │ ├── ctype.h │ ├── math.h │ ├── stdio.h │ └── string.h ├── lib │ ├── clkinit.o68 │ ├── clkinit7300.o68 │ ├── clkint.o68 │ ├── clkint7300.o68 │ ├── conf.o68 │ ├── conf7300.o68 │ ├── dlcstubs.o68 │ ├── initialize.o68 │ ├── kprintf.o68 │ ├── kprintf7300.o68 │ ├── libcsupp.a │ ├── libx.a │ ├── libxc.a │ ├── lpstubs.o68 │ ├── lpstubs7300.o68 │ ├── nullnet.o68 │ ├── sizmem.o68 │ ├── sizmem7300.o68 │ └── startup.o68 ├── sa │ ├── clock68230.h │ ├── intvectors_7300.h │ ├── intvectors_mecb.h │ ├── libsa_7300.a │ ├── libsa_mecb.a │ ├── mcr7300.h │ ├── mmu7300.h │ ├── pi68230.h │ ├── pi7300.h │ ├── sa_startup_7300.o68 │ ├── sa_startup_mecb.o68 │ ├── slu6850.h │ ├── slu7201.h │ └── stdio.h ├── sa_examples │ ├── Makefile │ ├── Makefile.timetest │ ├── README │ ├── syms │ ├── test.c │ ├── timetest.c │ ├── timetest_7300.c │ ├── timetest_mecb.c │ ├── typewr_7300.c │ └── typewr_mecb.c └── src │ ├── .cshrc │ ├── Makefile │ ├── lib │ ├── README │ ├── gnulib │ │ ├── Makefile │ │ ├── README │ │ ├── config.h │ │ ├── gnulib │ │ ├── gnulib.c │ │ ├── tm-m68k.h │ │ └── tm.h │ ├── libsa │ │ ├── Makefile │ │ ├── clockint.s │ │ ├── getc_7300.c │ │ ├── getc_mecb.c │ │ ├── kgetc6850.c │ │ ├── kgetc7201.c │ │ ├── kprintf.c │ │ ├── kputc6850.c │ │ ├── kputc7201.c │ │ ├── log │ │ ├── pscfuncts.c │ │ ├── pssfuncts.s │ │ ├── putc_7300.c │ │ ├── putc_mecb.c │ │ ├── sa_startup_7300.s │ │ ├── sa_startup_mecb.s │ │ ├── slu1int.s │ │ ├── slu2int.s │ │ ├── slu3int.s │ │ ├── slu6850.c │ │ ├── slu6850.c~ │ │ ├── slu6850.h │ │ ├── slu7201.c │ │ ├── slu7201.c~ │ │ ├── slu7201.h │ │ ├── sludevs_7300.h │ │ ├── sludevs_mecb.h │ │ ├── spurint.s │ │ └── stdio.h │ ├── libsa_on7300 │ │ ├── Makefile │ │ ├── ctype_.c │ │ ├── doprnt.c │ │ ├── doscan.c │ │ ├── getc_7300.c │ │ ├── getchar.c │ │ ├── gets.c │ │ ├── kgetc6850.c │ │ ├── kgetc7201.c │ │ ├── kprintf.c │ │ ├── kputc6850.c │ │ ├── kputc7201.c │ │ ├── printf.c │ │ ├── pscfuncts.c │ │ ├── pssfuncts.s │ │ ├── putc_7300.c │ │ ├── putchar.c │ │ ├── puts.c │ │ ├── sa_startup.s │ │ ├── scanf.c │ │ ├── setjmp.c │ │ ├── slu6850.c │ │ ├── slu6850.h │ │ ├── slu7201.c │ │ ├── slu7201.h │ │ ├── slu_control.c │ │ ├── sludevs_7300.h │ │ ├── sludevs_mecb.h │ │ ├── sluinit_7300.c │ │ ├── sprintf.c │ │ ├── startup.c │ │ ├── startup.c~1 │ │ └── stdio.h │ ├── libxc │ │ ├── Makefile │ │ ├── abs.c │ │ ├── atof.c │ │ ├── atoi.c │ │ ├── ctype_.c │ │ ├── doprnt.c │ │ ├── doscan.c │ │ ├── ecvt.c │ │ ├── fgets.c │ │ ├── fprintf.c │ │ ├── fputs.c │ │ ├── getchar.c │ │ ├── gets.c │ │ ├── index.c │ │ ├── log │ │ ├── printf.c │ │ ├── pscfuncts.c │ │ ├── putchar.c │ │ ├── puts.c │ │ ├── qsort.c │ │ ├── rand.c │ │ ├── rindex.c │ │ ├── scanf.c │ │ ├── setjmp.s │ │ ├── sprintf.c │ │ ├── strcat.c │ │ ├── strcmp.c │ │ ├── strcpy.c │ │ ├── strlen.c │ │ ├── strncat.c │ │ ├── strncmp.c │ │ └── strncpy.c │ └── tutor_on7300 │ │ ├── Makefile │ │ ├── brkpoint.c │ │ ├── cpu.h │ │ ├── ctype.h │ │ ├── fast.s │ │ ├── fastload.c │ │ ├── mem.c │ │ ├── remcom.c │ │ ├── remcom_supp.c │ │ ├── slex.c │ │ ├── slex.h │ │ ├── test.c │ │ ├── traps.c │ │ └── tutor.c │ └── sys │ ├── con │ ├── Makefile │ ├── config │ ├── config.c │ ├── config.l │ ├── config.y │ ├── lex.yy.c │ └── y.tab.c │ ├── h │ ├── bufpool.h │ ├── clock.h │ ├── conf.h │ ├── dir.h │ ├── disk.h │ ├── dlc.h │ ├── dtc11.h │ ├── dtc86.h │ ├── file.h │ ├── frame.h │ ├── iblock.h │ ├── intvectors_7300.h │ ├── intvectors_mecb.h │ ├── io.h │ ├── kernel.h │ ├── mark.h │ ├── mcr7300.h │ ├── mem.h │ ├── pi7300.h │ ├── ports.h │ ├── proc.h │ ├── q.h │ ├── sem.h │ ├── sleep.h │ ├── slu11.h │ ├── slu6850.h │ ├── slu7201.h │ ├── sluaccess6850.h │ ├── sluaccess7201.h │ ├── sluinclude.h │ ├── tty.h │ └── xebec.h │ └── sys │ ├── .ctxsw.s │ ├── .cupdate │ ├── .formatted │ ├── .hupdate │ ├── .supdate │ ├── .ttyoin.c │ ├── Makefile │ ├── chprio.c │ ├── clkinit.c │ ├── clkint.s │ ├── close.c │ ├── conf.c │ ├── conf7300.c │ ├── control.c │ ├── create.c │ ├── ctxsw.s │ ├── dlccntl.c │ ├── dlciin.c │ ├── dlcinit.c │ ├── dlcoin.c │ ├── dlcputc.c │ ├── dlcread.c │ ├── dlcstubs.c │ ├── dlcwrite.c │ ├── dldump.c │ ├── dotrace.c │ ├── dotrace.debug.c │ ├── finput.c │ ├── foutput.c │ ├── freceive.c │ ├── freebuf.c │ ├── freemem.c │ ├── frinit.c │ ├── frsend.c │ ├── frtimer.c │ ├── fsend.c │ ├── getbuf.c │ ├── getc.c │ ├── getitem.c │ ├── getmem.c │ ├── getmid.c │ ├── getpid.c │ ├── getprio.c │ ├── getstk.c │ ├── init.c │ ├── initialize.c │ ├── insert.c │ ├── insertd.c │ ├── ioerr.c │ ├── ionull.c │ ├── kill.c │ ├── kprintf.c │ ├── log │ ├── log1 │ ├── lpstubs.c │ ├── mark.c │ ├── mdump.c │ ├── mkpool.c │ ├── netinit.c │ ├── newqueue.c │ ├── nullnet.c │ ├── open.c │ ├── panic.s │ ├── pcount.c │ ├── pcreate.c │ ├── pdelete.c │ ├── piint.s │ ├── pinit.c │ ├── poolinit.c │ ├── prdump.c │ ├── preceive.c │ ├── preset.c │ ├── pscfuncts.c │ ├── psend.c │ ├── pssfuncts.s │ ├── ptclear.c │ ├── putc.c │ ├── qdump.c │ ├── queue.c │ ├── read.c │ ├── ready.c │ ├── receive.c │ ├── recvclr.c │ ├── regdump.s │ ├── resched.c │ ├── resume.c │ ├── scount.c │ ├── screate.c │ ├── sdelete.c │ ├── seek.c │ ├── send.c │ ├── sendf.c │ ├── setclkr.s │ ├── signal.c │ ├── signaln.c │ ├── sizmem.s │ ├── sizmem7300.s │ ├── sleep.c │ ├── sleep10.c │ ├── slu1int.s │ ├── slu2int.s │ ├── slu3int.s │ ├── slu6850.c │ ├── slu7201.c │ ├── sluint.c │ ├── spurint.s │ ├── sreset.c │ ├── ssclock.c │ ├── startup.s │ ├── suspend.c │ ├── syms │ ├── tdump.c │ ├── test.c │ ├── test1.c │ ├── ttycntl.c │ ├── ttygetc.c │ ├── ttyiin.c │ ├── ttyinit.c │ ├── ttyoin.c │ ├── ttyputc.c │ ├── ttyread.c │ ├── ttywrite.c │ ├── userret.c │ ├── wait.c │ ├── wakeup.c │ ├── write.c │ └── xdone.c ├── README.md ├── SECURITY.md └── SUN ├── CHANGES ├── README ├── RELEASE ├── bin ├── cprint ├── cvt ├── fs ├── fsd ├── odt └── pm ├── contrib ├── distodt.old │ ├── README │ ├── extrabin │ │ ├── README │ │ └── sbusers │ ├── h │ │ ├── bed.h │ │ ├── bedata.h │ │ ├── bmutils.h │ │ ├── downloadd.h │ │ ├── netutils.h │ │ ├── status.h │ │ ├── tokens.h │ │ └── utils.h │ ├── man │ │ ├── bed.1 │ │ ├── bed.doc │ │ ├── bedkill.1 │ │ ├── bedkill.doc │ │ ├── bedreboot.1 │ │ ├── bedreboot.doc │ │ ├── busers.1 │ │ ├── busers.doc │ │ ├── download.1 │ │ ├── download.doc │ │ ├── fusers.1 │ │ ├── fusers.doc │ │ ├── odt.1 │ │ ├── odt.doc │ │ ├── odtunlock.1 │ │ ├── odtunlock.doc │ │ ├── status.1 │ │ └── status.doc │ ├── src │ │ ├── Makefile │ │ ├── bed.c │ │ ├── bed.o │ │ ├── bedkill.c │ │ ├── bedkill.o │ │ ├── bedreboot.c │ │ ├── bedreboot.o │ │ ├── bedservers │ │ ├── bmutils.c │ │ ├── bmutils.o │ │ ├── busers.c │ │ ├── busers.o │ │ ├── download.c │ │ ├── download.o │ │ ├── downloadd.c │ │ ├── downloadd.o │ │ ├── fusers.c │ │ ├── fusers.o │ │ ├── lib.a │ │ ├── lock.c │ │ ├── lock.o │ │ ├── machines │ │ ├── netutils.c │ │ ├── netutils.o │ │ ├── obtainlock.c │ │ ├── obtainlock.o │ │ ├── obtainstatus.c │ │ ├── obtainstatus.o │ │ ├── odt.c │ │ ├── odt.o │ │ ├── odtd.c │ │ ├── odtd.o │ │ ├── odtunlock.c │ │ ├── odtunlock.o │ │ ├── parser.y │ │ ├── parsestatus.c │ │ ├── parsestatus.o │ │ ├── pm │ │ │ ├── Makefile │ │ │ ├── Makefile.bak │ │ │ ├── README │ │ │ ├── connectsun.c │ │ │ ├── connectsun.o │ │ │ ├── pm │ │ │ ├── pm.c │ │ │ ├── pm.h │ │ │ ├── pm.o │ │ │ ├── setup.c │ │ │ ├── setup.o │ │ │ ├── sun3.c │ │ │ ├── sun3.o │ │ │ ├── trace.c │ │ │ ├── trace.o │ │ │ └── x.h │ │ ├── prstatus.c │ │ ├── prstatus.o │ │ ├── releaselock.c │ │ ├── releaselock.o │ │ ├── scanner.l │ │ ├── scanner.o │ │ ├── status.c │ │ ├── status.o │ │ ├── support.c │ │ ├── support.o │ │ ├── sysstat.c │ │ ├── sysstat.o │ │ ├── utils.c │ │ ├── utils.o │ │ ├── y.tab.c │ │ ├── y.tab.h │ │ └── y.tab.o │ ├── sunbin │ │ ├── bed │ │ ├── bedkill │ │ ├── bedreboot │ │ ├── busers │ │ ├── download │ │ ├── fusers │ │ ├── odt │ │ ├── odtunlock │ │ └── status │ └── vaxbin │ │ ├── bed │ │ ├── bedkill │ │ ├── bedreboot │ │ ├── busers │ │ ├── download │ │ ├── fusers │ │ ├── odt │ │ ├── odtunlock │ │ └── status ├── distodt │ ├── man │ │ ├── bed.1 │ │ ├── bed.doc │ │ ├── bedkill.1 │ │ ├── bedkill.doc │ │ ├── bedkillall.1 │ │ ├── bedreboot.1 │ │ ├── bedreboot.doc │ │ ├── busers.1 │ │ ├── busers.doc │ │ ├── download.1 │ │ ├── download.doc │ │ ├── fusers.1 │ │ ├── fusers.doc │ │ ├── odt.1 │ │ ├── odt.doc │ │ ├── odtunlock.1 │ │ ├── odtunlock.doc │ │ ├── status.1 │ │ └── status.doc │ └── sys │ │ ├── PM │ │ ├── Makefile │ │ ├── Makefile.bak │ │ ├── RCS │ │ │ ├── Makefile,v │ │ │ ├── connectsun.c,v │ │ │ ├── pm.c,v │ │ │ ├── pm.h,v │ │ │ ├── setup.c,v │ │ │ ├── sun3.c,v │ │ │ ├── trace.c,v │ │ │ └── x.h.v7,v │ │ ├── README │ │ ├── connectsun.c │ │ ├── pm.c │ │ ├── pm.h │ │ ├── setup.c │ │ ├── sun3.c │ │ ├── trace.c │ │ └── x.h.v7 │ │ ├── configuration │ │ ├── Makefile.common │ │ ├── RCS │ │ │ └── Makefile.common,v │ │ ├── hppa │ │ │ ├── Makefile │ │ │ └── scanner.c │ │ ├── mc68020 │ │ │ ├── Makefile │ │ │ └── Makefile.bak │ │ ├── mips │ │ │ ├── Makefile │ │ │ ├── Makefile.bak │ │ │ └── scanner.c │ │ └── sparc │ │ │ ├── Makefile │ │ │ ├── Makefile.bak │ │ │ └── scanner.c │ │ ├── includes │ │ ├── RCS │ │ │ ├── baud.h,v │ │ │ ├── bed.h,v │ │ │ ├── bedata.h,v │ │ │ ├── bmutils.h,v │ │ │ ├── downloadd.h,v │ │ │ ├── netutils.h,v │ │ │ ├── odtd.h,v │ │ │ ├── sitedep.h,v │ │ │ ├── status.h,v │ │ │ ├── tokens.h,v │ │ │ └── utils.h,v │ │ ├── baud.h │ │ ├── bed.h │ │ ├── bedata.h │ │ ├── bmutils.h │ │ ├── downloadd.h │ │ ├── netutils.h │ │ ├── odtd.h │ │ ├── sitedep.h │ │ ├── status.h │ │ ├── tokens.h │ │ └── utils.h │ │ └── src │ │ ├── bed │ │ ├── RCS │ │ │ ├── bed.c,v │ │ │ ├── bedlog.c,v │ │ │ ├── downloadd.c,v │ │ │ ├── idletime.c,v │ │ │ ├── lock.c,v │ │ │ ├── odtd.c,v │ │ │ ├── scanner.l,v │ │ │ ├── support.c,v │ │ │ └── sysstat.c,v │ │ ├── bed.c │ │ ├── bedlog.c │ │ ├── downloadd.c │ │ ├── idletime.c │ │ ├── lock.c │ │ ├── odtd.c │ │ ├── scanner.l │ │ ├── support.c │ │ └── sysstat.c │ │ ├── cmds │ │ ├── RCS │ │ │ ├── bedkill.c,v │ │ │ ├── bedkillall.c,v │ │ │ ├── bedreboot.c,v │ │ │ ├── busers.c,v │ │ │ ├── dload2tcp.c,v │ │ │ ├── download.c,v │ │ │ ├── fusers.c,v │ │ │ ├── odt.c,v │ │ │ ├── odt2tcp.c,v │ │ │ ├── odtstatus.c,v │ │ │ ├── odtunlock.c,v │ │ │ └── restart.c,v │ │ ├── bedkill.c │ │ ├── bedkillall.c │ │ ├── bedreboot.c │ │ ├── busers.c │ │ ├── dload2tcp.c │ │ ├── download.c │ │ ├── fusers.c │ │ ├── odt.c │ │ ├── odt2tcp.c │ │ ├── odtstatus.c │ │ ├── odtunlock.c │ │ └── restart.c │ │ └── lib │ │ ├── RCS │ │ ├── bmutils.c,v │ │ ├── connectbed.c,v │ │ ├── getoptions.c,v │ │ ├── getuser.c,v │ │ ├── lockutils.c,v │ │ ├── netutils.c,v │ │ ├── obtainlock.c,v │ │ ├── obtainstatus.c,v │ │ ├── printstatus.c,v │ │ ├── releaselock.c,v │ │ ├── statusrecv.c,v │ │ ├── statusrequest.c,v │ │ ├── ttymode.c,v │ │ ├── utils.c,v │ │ └── xmalloc.c,v │ │ ├── bmutils.c │ │ ├── connectbed.c │ │ ├── getoptions.c │ │ ├── getuser.c │ │ ├── lockutils.c │ │ ├── netutils.c │ │ ├── obtainlock.c │ │ ├── obtainstatus.c │ │ ├── printstatus.c │ │ ├── releaselock.c │ │ ├── statusrecv.c │ │ ├── statusrequest.c │ │ ├── ttymode.c │ │ ├── utils.c │ │ └── xmalloc.c └── downloader │ ├── README │ ├── h │ ├── a.out.h │ ├── arp.h │ ├── eeprom.h │ ├── ether.h │ ├── idprom.h │ ├── ip.h │ ├── lereg.h │ ├── mmu.h │ ├── network.h │ ├── sunromvec.h │ ├── tftp.h │ ├── tftpload.h │ └── udp.h │ └── src │ ├── Makefile │ ├── Makefile.bak │ ├── b.out │ ├── big.c │ ├── blkcopy.c │ ├── blkcopy.o │ ├── blkequ.c │ ├── blkequ.o │ ├── bzero.c │ ├── bzero.o │ ├── cksum.c │ ├── cksum.o │ ├── eeprom.c │ ├── eeprom.o │ ├── einit.c │ ├── einit.o │ ├── eread.c │ ├── eread.o │ ├── erstrt.c │ ├── erstrt.o │ ├── estrt.c │ ├── estrt.o │ ├── ewrite.c │ ├── ewrite.o │ ├── ewstrt.c │ ├── ewstrt.o │ ├── getdmem.c │ ├── getdmem.o │ ├── getidprom.o │ ├── getidprom.s │ ├── kgetline.c │ ├── kgetline.o │ ├── kprintf.c │ ├── kprintf.o │ ├── makepack.c │ ├── makepack.o │ ├── mkrarp.c │ ├── mkrarp.o │ ├── mmu.o │ ├── mmu.s │ ├── panic.c │ ├── panic.o │ ├── printaddr.c │ ├── printaddr.o │ ├── readaddr.c │ ├── readaddr.o │ ├── scanaddr.c │ ├── scanaddr.o │ ├── setboot.c │ ├── setboot.o │ ├── setboot.out │ ├── startup.o │ ├── startup.s │ ├── strcpy.c │ ├── strcpy.o │ ├── tftpload.c │ ├── tftpload.o │ ├── tftpwr.c │ ├── tftpwr.o │ ├── udpipwr.c │ ├── udpipwr.o │ ├── xboot.a │ └── xboot.out ├── include └── a.out.h ├── install ├── Install └── README ├── lib ├── libx.a ├── libxc.a ├── tmac.ad ├── tmac.an └── xinu.o ├── man ├── Makefile ├── man0 │ ├── Makefile │ ├── Makefile.RAW │ ├── Notes.doc │ └── Notes.ms ├── man1 │ ├── Intro1.1 │ ├── Intro1.doc │ ├── Makefile │ ├── Makefile.RAW │ ├── cvt.1 │ ├── cvt.doc │ ├── fs.1 │ ├── fs.doc │ ├── odt.1 │ ├── odt.doc │ ├── pm.1 │ ├── pm.doc │ ├── tu58.1 │ └── tu58.doc ├── man2 │ ├── Intro2.2 │ ├── Intro2.doc │ ├── Intro2.ms │ ├── Makefile │ ├── Makefile.RAW │ ├── access.2 │ ├── access.doc │ ├── chprio.2 │ ├── chprio.doc │ ├── close.2 │ ├── close.doc │ ├── control.2 │ ├── control.doc │ ├── create.2 │ ├── create.doc │ ├── freebuf.2 │ ├── freebuf.doc │ ├── freemem.2 │ ├── freemem.doc │ ├── freestk.2 │ ├── freestk.doc │ ├── getaddr.2 │ ├── getaddr.doc │ ├── getbuf.2 │ ├── getbuf.doc │ ├── getc.2 │ ├── getc.doc │ ├── getmem.2 │ ├── getmem.doc │ ├── getname.2 │ ├── getname.doc │ ├── getnet.2 │ ├── getnet.doc │ ├── getpid.2 │ ├── getpid.doc │ ├── getprio.2 │ ├── getprio.doc │ ├── gettime.2 │ ├── gettime.doc │ ├── getutim.2 │ ├── getutim.doc │ ├── ip2name.2 │ ├── ip2name.doc │ ├── kill.2 │ ├── kill.doc │ ├── mark.2 │ ├── mark.doc │ ├── mkpool.2 │ ├── mkpool.doc │ ├── mount.2 │ ├── mount.doc │ ├── nammap.2 │ ├── nammap.doc │ ├── namrepl.2 │ ├── namrepl.doc │ ├── open.2 │ ├── open.doc │ ├── panic.2 │ ├── panic.doc │ ├── pcount.2 │ ├── pcount.doc │ ├── pcreate.2 │ ├── pcreate.doc │ ├── pdelete.2 │ ├── pdelete.doc │ ├── pinit.2 │ ├── pinit.doc │ ├── preceive.2 │ ├── preceive.doc │ ├── preset.2 │ ├── preset.doc │ ├── psend.2 │ ├── psend.doc │ ├── putc.2 │ ├── putc.doc │ ├── read.2 │ ├── read.doc │ ├── receive.2 │ ├── receive.doc │ ├── recvclr.2 │ ├── recvclr.doc │ ├── recvtim.2 │ ├── recvtim.doc │ ├── remove.2 │ ├── remove.doc │ ├── resume.2 │ ├── resume.doc │ ├── scount.2 │ ├── scount.doc │ ├── screate.2 │ ├── screate.doc │ ├── sdelete.2 │ ├── sdelete.doc │ ├── seek.2 │ ├── seek.doc │ ├── send.2 │ ├── send.doc │ ├── sendf.2 │ ├── sendf.doc │ ├── setdev.2 │ ├── setdev.doc │ ├── setnok.2 │ ├── setnok.doc │ ├── signal.2 │ ├── signal.doc │ ├── sleep.2 │ ├── sleep.doc │ ├── sreset.2 │ ├── sreset.doc │ ├── suspend.2 │ ├── suspend.doc │ ├── unmount.2 │ ├── unmount.doc │ ├── unsleep.2 │ ├── unsleep.doc │ ├── wait.2 │ ├── wait.doc │ ├── write.2 │ └── write.doc ├── man3 │ ├── Intro3.3 │ ├── Intro3.doc │ ├── Makefile │ ├── Makefile.RAW │ ├── TEMPL │ ├── blkcopy.3 │ ├── blkcopy.doc │ ├── blkequ.3 │ ├── blkequ.doc │ ├── buffer.3 │ ├── buffer.doc │ ├── ckmode.3 │ ├── ckmode.doc │ ├── ctype.3 │ ├── ctype.doc │ ├── disable.3 │ ├── disable.doc │ ├── dot2ip.3 │ ├── dot2ip.doc │ ├── eis.3 │ ├── eis.doc │ ├── fgetc.3 │ ├── fgetc.doc │ ├── fputc.3 │ ├── fputc.doc │ ├── gets.3 │ ├── gets.doc │ ├── halt.3 │ ├── halt.doc │ ├── netnum.3 │ ├── netnum.doc │ ├── netutil.3 │ ├── netutil.doc │ ├── printf.3 │ ├── printf.doc │ ├── puts.3 │ ├── puts.doc │ ├── qsort.3 │ ├── qsort.doc │ ├── queue.3 │ ├── queue.doc │ ├── rand.3 │ ├── rand.doc │ ├── scanf.3 │ ├── scanf.doc │ ├── string.3 │ ├── string.doc │ ├── swab.3 │ └── swab.doc └── man4 │ ├── Intro4.4 │ ├── Intro4.doc │ ├── Makefile │ ├── Makefile.RAW │ ├── TEMPL │ ├── ether.4 │ ├── ether.doc │ ├── internet.4 │ ├── internet.doc │ ├── namespace.4 │ ├── namespace.doc │ ├── rfilsys.4 │ ├── rfilsys.doc │ ├── tty.4 │ └── tty.doc ├── src ├── Makeall ├── cmd │ ├── Makeall │ ├── Makefile │ ├── Makefile.RAW │ ├── README │ ├── cprint │ ├── cprint.sh │ ├── cvt │ ├── cvt.sh │ ├── fs │ │ ├── Close.c │ │ ├── Close.o │ │ ├── Doform │ │ ├── Doform.RAW │ │ ├── Makefile │ │ ├── Makefile.RAW │ │ ├── Open.c │ │ ├── Open.o │ │ ├── Seek.c │ │ ├── Seek.o │ │ ├── Uncache.c │ │ ├── Uncache.o │ │ ├── fgetargs.c │ │ ├── fgetargs.o │ │ ├── fgetreq.c │ │ ├── fgetreq.o │ │ ├── finit.c │ │ ├── finit.o │ │ ├── fmode.c │ │ ├── fmode.o │ │ ├── fs │ │ ├── fs.c │ │ ├── fs.h │ │ ├── fs.o │ │ ├── fsaccess.c │ │ ├── fsaccess.o │ │ ├── fsclose.c │ │ ├── fsclose.o │ │ ├── fsd │ │ ├── fsd.c │ │ ├── fsd.c.RAW │ │ ├── fsmkdir.c │ │ ├── fsmkdir.o │ │ ├── fsndrply.c │ │ ├── fsndrply.o │ │ ├── fsopen.c │ │ ├── fsopen.o │ │ ├── fsread.c │ │ ├── fsread.o │ │ ├── fsrename.c │ │ ├── fsrename.o │ │ ├── fsrmdir.c │ │ ├── fsrmdir.o │ │ ├── fstrans.c │ │ ├── fstrans.o │ │ ├── fsunlink.c │ │ ├── fsunlink.o │ │ ├── fswrite.c │ │ ├── fswrite.o │ │ ├── openfile.c │ │ ├── openfile.o │ │ ├── rmfile.c │ │ └── rmfile.o │ ├── odt │ │ ├── Makefile │ │ ├── h │ │ │ ├── baud.h │ │ │ └── getdev.h │ │ ├── libd.a │ │ ├── odt │ │ ├── odt.c │ │ └── odt.o │ └── pm │ │ ├── Makefile │ │ ├── Makefile.RAW │ │ ├── pm │ │ ├── pm.c │ │ ├── pm.h │ │ ├── pm.o │ │ ├── setup.c │ │ ├── setup.o │ │ ├── sun3.c │ │ ├── sun3.o │ │ ├── trace.c │ │ ├── trace.o │ │ └── x.h ├── lib │ ├── Makeall │ └── libxc │ │ ├── Makefile │ │ ├── Makefile.RAW │ │ ├── abs.c │ │ ├── abs.o │ │ ├── aldiv.o │ │ ├── aldiv.s │ │ ├── almul.o │ │ ├── almul.s │ │ ├── alrem.o │ │ ├── alrem.s │ │ ├── atof.c │ │ ├── atof.o │ │ ├── atoi.c │ │ ├── atoi.o │ │ ├── atol.c │ │ ├── atol.o │ │ ├── auldiv.o │ │ ├── auldiv.s │ │ ├── aulmul.o │ │ ├── aulmul.s │ │ ├── aulrem.o │ │ ├── aulrem.s │ │ ├── blt.o │ │ ├── blt.s │ │ ├── bzero.c │ │ ├── bzero.o │ │ ├── clear.o │ │ ├── clear.s │ │ ├── ctype_.c │ │ ├── ctype_.o │ │ ├── doprnt.c │ │ ├── doprnt.o │ │ ├── doscan.c │ │ ├── doscan.o │ │ ├── ecvt.c │ │ ├── ecvt.o │ │ ├── fgets.c │ │ ├── fgets.o │ │ ├── float.o │ │ ├── float.s │ │ ├── fprintf.c │ │ ├── fprintf.o │ │ ├── fputs.c │ │ ├── fputs.o │ │ ├── gets.c │ │ ├── gets.o │ │ ├── index.c │ │ ├── index.o │ │ ├── ldiv.o │ │ ├── ldiv.s │ │ ├── libxc.a │ │ ├── lmul.o │ │ ├── lmul.s │ │ ├── lrem.o │ │ ├── lrem.s │ │ ├── mcount.o │ │ ├── mcount.s │ │ ├── printf.c │ │ ├── printf.o │ │ ├── puts.c │ │ ├── puts.o │ │ ├── qsort.c │ │ ├── qsort.o │ │ ├── rand.c │ │ ├── rand.o │ │ ├── rindex.c │ │ ├── rindex.o │ │ ├── scanf.c │ │ ├── scanf.o │ │ ├── setjmp.o │ │ ├── setjmp.s │ │ ├── sprintf.c │ │ ├── sprintf.o │ │ ├── strcat.c │ │ ├── strcat.o │ │ ├── strcmp.c │ │ ├── strcmp.o │ │ ├── strcpy.c │ │ ├── strcpy.o │ │ ├── strlen.c │ │ ├── strlen.o │ │ ├── strncat.c │ │ ├── strncat.o │ │ ├── strncmp.c │ │ ├── strncmp.o │ │ ├── strncpy.c │ │ ├── strncpy.o │ │ ├── swab.c │ │ ├── swab.o │ │ ├── uldiv.o │ │ ├── uldiv.s │ │ ├── ulmul.o │ │ ├── ulmul.s │ │ ├── ulrem.o │ │ └── ulrem.s └── sys │ ├── Makeall │ ├── Makeall.RAW │ ├── con │ ├── Makefile │ ├── config │ ├── config.l │ ├── config.y │ ├── lex.yy.c │ └── y.tab.c │ ├── h │ ├── a.out.h │ ├── arp.h │ ├── assym.h │ ├── bufpool.h │ ├── clock.h │ ├── cmd.h │ ├── conf.h │ ├── cpu.addrs.h │ ├── ctype.h │ ├── date.h │ ├── dgram.h │ ├── dir.h │ ├── disk.h │ ├── domain.h │ ├── dtc.h │ ├── ether.h │ ├── file.h │ ├── fserver.h │ ├── hosts.h │ ├── iblock.h │ ├── icmp.h │ ├── idprom.h │ ├── interreg.h │ ├── io.h │ ├── ip.h │ ├── kernel.h │ ├── lereg.h │ ├── lfile.h │ ├── mark.h │ ├── mem.h │ ├── mmu.h │ ├── name.h │ ├── net.h │ ├── network.h │ ├── ports.h │ ├── proc.h │ ├── q.h │ ├── rfile.h │ ├── rwho.h │ ├── sem.h │ ├── shell.h │ ├── sleep.h │ ├── slu.h │ ├── sunromvec.h │ ├── systypes.h │ ├── tty.h │ ├── udp.h │ ├── unix-rwho.h │ └── zsreg.h │ └── sys │ ├── CHANGES │ ├── Configuration │ ├── Makefile │ ├── Makefile.RAW │ ├── Mknlist │ ├── TEST │ ├── README │ ├── test.c │ ├── test.c.buserr │ ├── test.c.children │ ├── test.c.clk1 │ ├── test.c.concurrency │ ├── test.c.dec_cake │ ├── test.c.dlc │ ├── test.c.dsk1 │ ├── test.c.dsk2 │ ├── test.c.eth1 │ ├── test.c.eth2 │ ├── test.c.eth3 │ ├── test.c.eth4 │ ├── test.c.file │ ├── test.c.fr │ ├── test.c.fr2 │ ├── test.c.fr3 │ ├── test.c.hello │ ├── test.c.hello_world │ ├── test.c.io │ ├── test.c.mem │ ├── test.c.mes │ ├── test.c.mes1 │ ├── test.c.mesgring │ ├── test.c.oflowtrap │ ├── test.c.output │ ├── test.c.panic │ ├── test.c.panic0 │ ├── test.c.pm │ ├── test.c.ports │ ├── test.c.preempt │ ├── test.c.printf │ ├── test.c.pshell │ ├── test.c.register.int │ ├── test.c.sem │ ├── test.c.sleepsem │ ├── test.c.slu │ ├── test.c.sprintf │ ├── test.c.traps │ └── test.c.udpecho │ ├── a.out │ ├── access.c │ ├── access.o │ ├── arp_in.c │ ├── arp_in.o │ ├── arpfind.c │ ├── arpfind.o │ ├── arpinit.c │ ├── arpinit.o │ ├── autostart.c │ ├── autostart.o │ ├── b.out │ ├── blkcopy.c │ ├── blkcopy.o │ ├── blkequ.c │ ├── blkequ.o │ ├── chprio.c │ ├── chprio.o │ ├── ckmode.c │ ├── ckmode.o │ ├── cksum.c │ ├── cksum.o │ ├── clkinit.c │ ├── clkinit.o │ ├── clkint.o │ ├── clkint.s │ ├── close.c │ ├── close.o │ ├── compare │ ├── compare.diffs │ ├── concntl.c │ ├── concntl.o │ ├── conf.c │ ├── conf.o │ ├── config │ ├── coniin.c │ ├── coniin.o │ ├── coninit.c │ ├── coninit.o │ ├── coninput.c │ ├── coninput.o │ ├── conint.o │ ├── conint.s │ ├── conoutput.c │ ├── conoutput.o │ ├── console.c │ ├── control.c │ ├── control.o │ ├── create.c │ ├── create.o │ ├── ctxsw.o │ ├── ctxsw.s │ ├── dgalloc.c │ ├── dgalloc.o │ ├── dgclose.c │ ├── dgclose.o │ ├── dgcntl.c │ ├── dgcntl.o │ ├── dgdump.c │ ├── dginit.c │ ├── dginit.o │ ├── dgmcntl.c │ ├── dgmcntl.o │ ├── dgmopen.c │ ├── dgmopen.o │ ├── dgparse.c │ ├── dgparse.o │ ├── dgread.c │ ├── dgread.o │ ├── dgwrite.c │ ├── dgwrite.o │ ├── dma.c │ ├── dma.o │ ├── dot2ip.c │ ├── dot2ip.o │ ├── dotrace.c │ ├── ethcntl.c │ ├── ethcntl.o │ ├── ethinit.c │ ├── ethinit.o │ ├── ethint.o │ ├── ethint.s │ ├── ethinter.c │ ├── ethinter.o │ ├── ethread.c │ ├── ethread.o │ ├── ethstrt.c │ ├── ethstrt.o │ ├── ethwrite.c │ ├── ethwrite.o │ ├── ethwstrt.c │ ├── ethwstrt.o │ ├── evec.c │ ├── evec.o │ ├── freebuf.c │ ├── freebuf.o │ ├── freemem.c │ ├── freemem.o │ ├── getaddr.c │ ├── getaddr.o │ ├── getbuf.c │ ├── getbuf.o │ ├── getc.c │ ├── getc.o │ ├── getdmem.c │ ├── getdmem.o │ ├── getidprom.o │ ├── getidprom.s │ ├── getitem.c │ ├── getitem.o │ ├── getmem.c │ ├── getmem.o │ ├── getname.c │ ├── getname.o │ ├── getnet.c │ ├── getnet.o │ ├── getpath.c │ ├── getpath.o │ ├── getpid.c │ ├── getpid.o │ ├── getprio.c │ ├── getprio.o │ ├── getstk.c │ ├── getstk.o │ ├── gettime.c │ ├── gettime.o │ ├── getutim.c │ ├── getutim.o │ ├── icmp_in.c │ ├── icmp_in.o │ ├── init.c │ ├── init.o │ ├── initialize.c │ ├── initialize.o │ ├── insert.c │ ├── insert.o │ ├── insertd.c │ ├── insertd.o │ ├── intr.o │ ├── intr.s │ ├── ioerr.c │ ├── ioerr.o │ ├── ionull.c │ ├── ionull.o │ ├── ip2name.c │ ├── ip2name.o │ ├── ip_in.c │ ├── ip_in.o │ ├── ipsend.c │ ├── ipsend.o │ ├── kill.c │ ├── kill.o │ ├── kprintf.c │ ├── kprintf.o │ ├── libx.a │ ├── mark.c │ ├── mark.o │ ├── mkarp.c │ ├── mkarp.o │ ├── mkdpool.c │ ├── mkdpool.o │ ├── mkpool.c │ ├── mkpool.o │ ├── mmu.o │ ├── mmu.s │ ├── mount.c │ ├── mount.o │ ├── naminit.c │ ├── naminit.o │ ├── nammap.c │ ├── nammap.o │ ├── namopen.c │ ├── namopen.o │ ├── namrepl.c │ ├── namrepl.o │ ├── netdump.c │ ├── netdump.o │ ├── netin.c │ ├── netin.o │ ├── netinit.c │ ├── netinit.o │ ├── netnum.c │ ├── netnum.o │ ├── netout.c │ ├── netout.o │ ├── newqueue.c │ ├── newqueue.o │ ├── nm │ ├── nqalloc.c │ ├── nqalloc.o │ ├── open.c │ ├── open.o │ ├── panic.c │ ├── panic.o │ ├── pcount.c │ ├── pcount.o │ ├── pcreate.c │ ├── pcreate.o │ ├── pdelete.c │ ├── pdelete.o │ ├── pinit.c │ ├── pinit.o │ ├── pm.out │ ├── poolinit.c │ ├── poolinit.o │ ├── preceive.c │ ├── preceive.o │ ├── preset.c │ ├── preset.o │ ├── printq.c │ ├── printq.o │ ├── psend.c │ ├── psend.o │ ├── ptclear.c │ ├── ptclear.o │ ├── putc.c │ ├── putc.o │ ├── queue.c │ ├── queue.o │ ├── rarp_in.c │ ├── rarp_in.o │ ├── read.c │ ├── read.o │ ├── ready.c │ ├── ready.o │ ├── receive.c │ ├── receive.o │ ├── recvclr.c │ ├── recvclr.o │ ├── recvtim.c │ ├── recvtim.o │ ├── remove.c │ ├── remove.o │ ├── rename.c │ ├── rename.o │ ├── resched.c │ ├── resched.o │ ├── resume.c │ ├── resume.o │ ├── ret_mon.c │ ├── ret_mon.o │ ├── rfalloc.c │ ├── rfalloc.o │ ├── rfclose.c │ ├── rfclose.o │ ├── rfcntl.c │ ├── rfcntl.o │ ├── rfdump.c │ ├── rfdump.o │ ├── rfgetc.c │ ├── rfgetc.o │ ├── rfinit.c │ ├── rfinit.o │ ├── rfio.c │ ├── rfio.o │ ├── rfmkpac.c │ ├── rfmkpac.o │ ├── rfopen.c │ ├── rfopen.o │ ├── rfputc.c │ ├── rfputc.o │ ├── rfread.c │ ├── rfread.o │ ├── rfseek.c │ ├── rfseek.o │ ├── rfsend.c │ ├── rfsend.o │ ├── rfwrite.c │ ├── rfwrite.o │ ├── route.c │ ├── route.o │ ├── rwho.c │ ├── rwho.o │ ├── rwhod.c │ ├── rwhod.o │ ├── rwhoind.c │ ├── rwhoind.o │ ├── scount.c │ ├── scount.o │ ├── screate.c │ ├── screate.o │ ├── sdelete.c │ ├── sdelete.o │ ├── seek.c │ ├── seek.o │ ├── send.c │ ├── send.o │ ├── sendf.c │ ├── sendf.o │ ├── set_evec.o │ ├── set_evec.s │ ├── setdev.c │ ├── setdev.o │ ├── setnok.c │ ├── setnok.o │ ├── sh.o │ ├── shell │ ├── Dosizes │ ├── Doxref │ ├── Flint │ ├── Makefile │ ├── Makefile.RAW │ ├── README │ ├── addarg.c │ ├── addarg.o │ ├── ascdate.c │ ├── ascdate.o │ ├── cmd.h │ ├── install │ ├── lexan.c │ ├── lexan.o │ ├── libS.a │ ├── login.c │ ├── login.o │ ├── sh.o │ ├── shell.c │ ├── shell.o │ ├── worm.o │ ├── worm │ │ ├── Makefile │ │ ├── Makefile.RAW │ │ ├── README │ │ ├── b.out │ │ ├── game.h │ │ ├── main.c │ │ ├── main.o │ │ ├── mesg.c │ │ ├── mesg.o │ │ ├── mover.c │ │ ├── mover.o │ │ ├── plotter.c │ │ ├── plotter.o │ │ ├── pm.out │ │ ├── referee.c │ │ ├── referee.o │ │ ├── robot.c │ │ ├── robot.o │ │ ├── targeter.c │ │ ├── targeter.o │ │ ├── test.c │ │ ├── timedgetchar.c │ │ ├── timedgetchar.o │ │ ├── utils.c │ │ ├── utils.o │ │ ├── worm.c │ │ └── worm.o │ ├── x_bpool.c │ ├── x_bpool.o │ ├── x_cat.c │ ├── x_cat.o │ ├── x_close.c │ ├── x_close.o │ ├── x_conf.c │ ├── x_conf.o │ ├── x_cp.c │ ├── x_cp.o │ ├── x_create.c │ ├── x_create.o │ ├── x_date.c │ ├── x_date.o │ ├── x_devs.c │ ├── x_devs.o │ ├── x_dg.c │ ├── x_dg.o │ ├── x_echo.c │ ├── x_echo.o │ ├── x_exit.c │ ├── x_exit.o │ ├── x_help.c │ ├── x_help.o │ ├── x_kill.c │ ├── x_kill.o │ ├── x_mem.c │ ├── x_mem.o │ ├── x_mount.c │ ├── x_mount.o │ ├── x_mv.c │ ├── x_mv.o │ ├── x_net.c │ ├── x_net.o │ ├── x_ps.c │ ├── x_ps.o │ ├── x_reboot.c │ ├── x_reboot.o │ ├── x_rf.c │ ├── x_rf.o │ ├── x_rls.c │ ├── x_rls.o │ ├── x_rm.c │ ├── x_rm.o │ ├── x_routes.c │ ├── x_routes.o │ ├── x_sleep.c │ ├── x_sleep.o │ ├── x_snap.c │ ├── x_snap.o │ ├── x_unmou.c │ ├── x_unmou.o │ ├── x_uptime.c │ ├── x_uptime.o │ ├── x_who.c │ └── x_who.o │ ├── signal.c │ ├── signal.o │ ├── signaln.c │ ├── signaln.o │ ├── sleep.c │ ├── sleep.o │ ├── sleep10.c │ ├── sleep10.o │ ├── sndrarp.c │ ├── sndrarp.o │ ├── sreset.c │ ├── sreset.o │ ├── ssclock.c │ ├── ssclock.o │ ├── startup.o │ ├── startup.s │ ├── suspend.c │ ├── suspend.o │ ├── test.c │ ├── test.o │ ├── trap.o │ ├── trap.s │ ├── ttycntl.c │ ├── ttycntl.o │ ├── ttygetc.c │ ├── ttygetc.o │ ├── ttyiin.c │ ├── ttyiin.o │ ├── ttyinit.c │ ├── ttyinit.o │ ├── ttyint.o │ ├── ttyint.s │ ├── ttyoin.c │ ├── ttyoin.o │ ├── ttyputc.c │ ├── ttyputc.o │ ├── ttyread.c │ ├── ttyread.o │ ├── ttyutils.c │ ├── ttyutils.o │ ├── ttywrite.c │ ├── ttywrite.o │ ├── udpecho.c │ ├── udpecho.o │ ├── udpnxtp.c │ ├── udpnxtp.o │ ├── udpsend.c │ ├── udpsend.o │ ├── unmount.c │ ├── unmount.o │ ├── unsleep.c │ ├── unsleep.o │ ├── userret.c │ ├── userret.o │ ├── wait.c │ ├── wait.o │ ├── wakeup.c │ ├── wakeup.o │ ├── write.c │ ├── write.o │ ├── xdone.c │ ├── xdone.o │ └── xinu.o └── storage ├── README ├── lf100 ├── lf10k ├── lf1k └── output ├── date ├── devs ├── dg ├── echo ├── help ├── mem ├── mount ├── netstat ├── ps ├── rf ├── routes ├── ruptime └── who /.gitattributes: -------------------------------------------------------------------------------- 1 | MECB/src/lib/gnulib/tm.h linguist-vendored 2 | MECB/src/lib/gnulib/tm-m68k.h linguist-vendored 3 | MECB/src/sys/h/sluaccess6850.h linguist-vendored 4 | ./MECB/src/lib/gnulib/tm.h linguist-vendored 5 | ./MECB/src/lib/gnulib/tm-m68k.h linguist-vendored 6 | ./MECB/src/sys/h/sluaccess6850.h linguist-vendored 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/.gitignore -------------------------------------------------------------------------------- /.whitesource: -------------------------------------------------------------------------------- 1 | { 2 | "scanSettings": { 3 | "baseBranches": [] 4 | }, 5 | "checkRunSettings": { 6 | "vulnerableCheckRunConclusionLevel": "failure", 7 | "displayMode": "diff" 8 | }, 9 | "issueSettings": { 10 | "minSeverityLevel": "LOW", 11 | "issueType": "DEPENDENCY" 12 | } 13 | } -------------------------------------------------------------------------------- /MECB/examples/.login: -------------------------------------------------------------------------------- 1 | # add to your .login-- 2 | #for Xinu-- 3 | setenv xinu /usr/local/src/XINU68 4 | setenv xuinc $xinu/include 5 | setenv xulib $xinu/lib 6 | setenv xuex $xinu/examples 7 | #Xinu kernel sources-- 8 | setenv xuker $xinu/src/sys/sys 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /MECB/examples/mon-worker.68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/examples/mon-worker.68 -------------------------------------------------------------------------------- /MECB/examples/mon-worker.68a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/examples/mon-worker.68a -------------------------------------------------------------------------------- /MECB/examples/mon-worker.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/examples/mon-worker.o68 -------------------------------------------------------------------------------- /MECB/include/math.h: -------------------------------------------------------------------------------- 1 | extern double fabs(), floor(), ceil(), fmod(), ldexp(), 2 | sqrt(), hypot(), atof(), 3 | sin(), cos(), tan(), asin(), acos(), atan(), atan2(), 4 | exp(), log(), log10(), pow(), 5 | sinh(), cosh(), tanh(), 6 | gamma(), 7 | j0(), j1(), jn(), y0(), y1(), yn(); 8 | 9 | #define HUGE 1.701411733192644270e38 10 | #define LOGHUGE 39 11 | -------------------------------------------------------------------------------- /MECB/include/string.h: -------------------------------------------------------------------------------- 1 | /* @(#)string.h 1.1 86/07/07 SMI; from S5R2 1.2 */ 2 | 3 | extern char 4 | *strcpy(), 5 | *strncpy(), 6 | *strcat(), 7 | *strncat(), 8 | *strchr(), 9 | *strrchr(), 10 | *strpbrk(), 11 | *strtok(); 12 | extern int 13 | strcmp(), 14 | strncmp(), 15 | strlen(), 16 | strspn(), 17 | strcspn(); 18 | -------------------------------------------------------------------------------- /MECB/lib/clkinit.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/clkinit.o68 -------------------------------------------------------------------------------- /MECB/lib/clkinit7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/clkinit7300.o68 -------------------------------------------------------------------------------- /MECB/lib/clkint.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/clkint.o68 -------------------------------------------------------------------------------- /MECB/lib/clkint7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/clkint7300.o68 -------------------------------------------------------------------------------- /MECB/lib/conf.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/conf.o68 -------------------------------------------------------------------------------- /MECB/lib/conf7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/conf7300.o68 -------------------------------------------------------------------------------- /MECB/lib/dlcstubs.o68: -------------------------------------------------------------------------------- 1 | 8`NVN^NuNVN^NuNVN^NuNVN^NuNVN^NuNVN^NuNVN^Nu$.7 @(H0Pgcc_compiled._dlcinit_dlcread_dlcwrite_dlcputc_dlccntl_dlcoin_dlciin -------------------------------------------------------------------------------- /MECB/lib/initialize.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/initialize.o68 -------------------------------------------------------------------------------- /MECB/lib/kprintf.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/kprintf.o68 -------------------------------------------------------------------------------- /MECB/lib/kprintf7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/kprintf7300.o68 -------------------------------------------------------------------------------- /MECB/lib/libcsupp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/libcsupp.a -------------------------------------------------------------------------------- /MECB/lib/libx.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/libx.a -------------------------------------------------------------------------------- /MECB/lib/libxc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/libxc.a -------------------------------------------------------------------------------- /MECB/lib/lpstubs.o68: -------------------------------------------------------------------------------- 1 | 8`NVN^NuNVN^NuNVN^NuNVN^NuNVN^NuNVN^NuNVN^Nu"+4 <(D0Kgcc_compiled._lpinit_lpopen_lpclose_lpwrite_lpputc_lpcntl_lpoin -------------------------------------------------------------------------------- /MECB/lib/lpstubs7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/lpstubs7300.o68 -------------------------------------------------------------------------------- /MECB/lib/nullnet.o68: -------------------------------------------------------------------------------- 1 | NVN^Nugcc_compiled._netinit -------------------------------------------------------------------------------- /MECB/lib/sizmem.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/sizmem.o68 -------------------------------------------------------------------------------- /MECB/lib/sizmem7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/sizmem7300.o68 -------------------------------------------------------------------------------- /MECB/lib/startup.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/lib/startup.o68 -------------------------------------------------------------------------------- /MECB/sa/libsa_7300.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/sa/libsa_7300.a -------------------------------------------------------------------------------- /MECB/sa/libsa_mecb.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/sa/libsa_mecb.a -------------------------------------------------------------------------------- /MECB/sa/sa_startup_7300.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/sa/sa_startup_7300.o68 -------------------------------------------------------------------------------- /MECB/sa/sa_startup_mecb.o68: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/sa/sa_startup_mecb.o68 -------------------------------------------------------------------------------- /MECB/src/Makefile: -------------------------------------------------------------------------------- 1 | DESTDIR = 2 | DOT = src 3 | SUBDIRS = lib/libxc lib/libsa lib/gnulib sys/sys 4 | 5 | all install clean: 6 | for i in ${SUBDIRS}; do\ 7 | (echo "Making $(DOT)/$$i:"; cd $$i;\ 8 | make ${MFLAGS} DESTDIR=${DESTDIR} $@);done 9 | 10 | -------------------------------------------------------------------------------- /MECB/src/lib/gnulib/gnulib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/src/lib/gnulib/gnulib -------------------------------------------------------------------------------- /MECB/src/lib/libsa/clockint.s: -------------------------------------------------------------------------------- 1 | | as68 routine for interrupt programming 2 | .text 3 | .globl _clockint 4 | 5 | _clockint: movel a0,sp@- | save C scratch regs 6 | movel a1,sp@- 7 | movel d0,sp@- 8 | movel d1,sp@- | (or use movem for better performance) 9 | jsr _clockintc | C will save other regs on entry to routine 10 | movel sp@+,d1 11 | movel sp@+,d0 12 | movel sp@+,a1 13 | movel sp@+,a0 14 | rte | return from interrupt 15 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/pscfuncts.c: -------------------------------------------------------------------------------- 1 | static int saved_ps; /* only one "process"--so one global saved_ps */ 2 | disable() 3 | { 4 | #ifdef DEBUG 5 | kprintf("disable()\n"); 6 | #endif 7 | _disable(&saved_ps); 8 | } 9 | 10 | restore() 11 | { 12 | #ifdef DEBUG 13 | kprintf("restore()\n"); 14 | #endif 15 | _restore(&saved_ps); 16 | } 17 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/pssfuncts.s: -------------------------------------------------------------------------------- 1 | DISABLE = 0x2700 2 | .data 3 | .text 4 | .globl __disable 5 | __disable: 6 | movl a0, sp@- 7 | movl sp@(8), a0 8 | movw sr, a0@ 9 | movw #DISABLE,sr 10 | movl sp@+, a0 11 | rts 12 | 13 | .globl __restore 14 | __restore: 15 | movl a0, sp@- 16 | movl sp@(8), a0 17 | movw a0@, sr 18 | movl sp@+, a0 19 | rts 20 | 21 | |for initial lowering of priority, after device initialization-- 22 | 23 | LOWPRI = 0x2000 24 | 25 | .globl _setlowpri 26 | 27 | _setlowpri: 28 | movw #LOWPRI,sr | set CPU SR register to 0x2000 29 | rts 30 | 31 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/sa_startup_7300.s: -------------------------------------------------------------------------------- 1 | .data 2 | _console: .long 0 3 | .text 4 | .globl _main,_console 5 | 6 | movel #0xffffe,sp |use top of mem for stack 7 | jsr _main |do main program (can't use argv) 8 | trap #1 | breakpoint for Tutor 9 | 10 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/sa_startup_mecb.s: -------------------------------------------------------------------------------- 1 | TUTOR = 228 2 | .globl _main,_console 3 | .data 4 | _console: .long 0 5 | .text 6 | 7 | movel #0x1000,sp |use mem from 0x900-0x1000 for stack 8 | jsr _main |do main program (can't use argv) 9 | moveb #TUTOR,d7 10 | trap #14 11 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/slu1int.s: -------------------------------------------------------------------------------- 1 | | as68 routines for interrupt programming 2 | | read/xmit int for SLU1, i.e, the console -- 3 | 4 | .text 5 | .globl _slu1int | make _slu1int extern 6 | 7 | _slu1int: movel a0,sp@- | save C scratch regs 8 | movel a1,sp@- 9 | movel d0,sp@- 10 | movel d1,sp@- | (or use movem for better performance) 11 | jsr _slu1intc | C will save other regs on entry to routine 12 | movel sp@+,d1 13 | movel sp@+,d0 14 | movel sp@+,a1 15 | movel sp@+,a0 16 | rte | return from interrupt 17 | 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/slu2int.s: -------------------------------------------------------------------------------- 1 | | as68 routines for interrupt programming 2 | | read/xmit int for SLU2, i.e, the hostline -- 3 | 4 | .text 5 | .globl _slu2int | make _slu2int extern 6 | 7 | _slu2int: movel a0,sp@- | save C scratch regs 8 | movel a1,sp@- 9 | movel d0,sp@- 10 | movel d1,sp@- | (or use movem for better performance) 11 | jsr _slu2intc | C will save other regs on entry to routine 12 | movel sp@+,d1 13 | movel sp@+,d0 14 | movel sp@+,a1 15 | movel sp@+,a0 16 | rte | return from interrupt 17 | 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/slu3int.s: -------------------------------------------------------------------------------- 1 | | as68 routines for interrupt programming 2 | | read/xmit int for SLU3, i.e, the hostline -- 3 | 4 | .text 5 | .globl _slu3int | make _slu3int extern 6 | 7 | _slu3int: movel a0,sp@- | save C scratch regs 8 | movel a1,sp@- 9 | movel d0,sp@- 10 | movel d1,sp@- | (or use movem for better performance) 11 | jsr _slu3intc | C will save other regs on entry to routine 12 | movel sp@+,d1 13 | movel sp@+,d0 14 | movel sp@+,a1 15 | movel sp@+,a0 16 | rte | return from interrupt 17 | 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/sludevs_7300.h: -------------------------------------------------------------------------------- 1 | /* addresses of SLU units, treated as ints by upper layers, 2 | but cast to appropriate (struct csr *) by lower layer */ 3 | /* just for SA getc, putc, etc.--lower routines use slu6850.h 4 | or slu7201.h */ 5 | #define SLUCSR1 0xe50000 6 | #define SLUCSR2 0xe50002 7 | #define SLUCSR3 0xe70000 8 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/sludevs_mecb.h: -------------------------------------------------------------------------------- 1 | /* addresses of SLU units, treated as ints by upper layers, 2 | but cast to appropriate (struct csr *) by lower layer */ 3 | /* just for SA getc, putc, etc.--lower routines use slu6850.h 4 | or slu7201.h */ 5 | #define SLUCSR1 0x10040 6 | #define SLUCSR2 0x10041 7 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa/spurint.s: -------------------------------------------------------------------------------- 1 | | as68 routine for interrupt programming 2 | .text 3 | .globl _spurint 4 | 5 | _spurint: movel a0,sp@- | save C scratch regs 6 | movel a1,sp@- 7 | movel d0,sp@- 8 | movel d1,sp@- | (or use movem for better performance) 9 | jsr _spurintc | C will save other regs on entry to routine 10 | movel sp@+,d1 11 | movel sp@+,d0 12 | movel sp@+,a1 13 | movel sp@+,a0 14 | rte | return from interrupt 15 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/getchar.c: -------------------------------------------------------------------------------- 1 | extern int console; 2 | getchar() 3 | { 4 | return getc(console); 5 | } 6 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/printf.c: -------------------------------------------------------------------------------- 1 | /* printf.c - printf */ 2 | 3 | #define OK 1 4 | extern int console; 5 | /*------------------------------------------------------------------------ 6 | * printf -- write formatted output on console 7 | *------------------------------------------------------------------------ 8 | */ 9 | printf(fmt, args) 10 | char *fmt; 11 | { 12 | int putc(); 13 | 14 | _doprnt(fmt, &args, putc, console); 15 | return(OK); 16 | } 17 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/pscfuncts.c: -------------------------------------------------------------------------------- 1 | static int saved_ps; /* only one "process"--so one global saved_ps */ 2 | disable() 3 | { 4 | #ifdef DEBUG 5 | kprintf("disable()\n"); 6 | #endif 7 | _disable(&saved_ps); 8 | } 9 | 10 | restore() 11 | { 12 | #ifdef DEBUG 13 | kprintf("restore()\n"); 14 | #endif 15 | _restore(&saved_ps); 16 | } 17 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/pssfuncts.s: -------------------------------------------------------------------------------- 1 | global _disable 2 | _disable: 3 | mov.l %a0, -(%sp) 4 | mov.l 8(%sp), %a0 5 | mov.w %sr, (%a0) 6 | mov.w &0x2700,%sr 7 | mov.l (%sp)+, %a0 8 | rts 9 | 10 | global _restore 11 | _restore: 12 | mov.l %a0, -(%sp) 13 | mov.l 8(%sp), %a0 14 | mov.w (%a0), %sr 15 | mov.l (%sp)+, %a0 16 | rts 17 | 18 | global setlowpri 19 | 20 | setlowpri: 21 | mov.w &0x2000,%sr 22 | rts 23 | 24 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/putchar.c: -------------------------------------------------------------------------------- 1 | extern int console; 2 | putchar(ch) 3 | char ch; 4 | { 5 | putc(console,ch); 6 | } 7 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/puts.c: -------------------------------------------------------------------------------- 1 | /* puts.c - puts */ 2 | 3 | extern int console; 4 | /*------------------------------------------------------------------------ 5 | * puts -- write a null-terminated string to the console 6 | *------------------------------------------------------------------------ 7 | */ 8 | puts(s) 9 | register char *s; 10 | { 11 | register c; 12 | int putc(); 13 | 14 | while (c = *s++) 15 | putc(console,c); 16 | return(putc(console,'\n')); 17 | } 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/sa_startup.s: -------------------------------------------------------------------------------- 1 | global main 2 | start: mov.l &0x80000,%sp # top of user space 3 | jsr c_startup 4 | loop: jmp loop 5 | 6 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/sludevs_7300.h: -------------------------------------------------------------------------------- 1 | /* addresses of SLU units, treated as ints by upper layers, 2 | but cast to appropriate (struct csr *) by lower layer */ 3 | /* just for SA getc, putc, etc.--lower routines use slu6850.h 4 | or slu7201.h */ 5 | #define SLUCSR1 0xe50000 6 | #define SLUCSR2 0xe50002 7 | #define SLUCSR3 0xe70000 8 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/sludevs_mecb.h: -------------------------------------------------------------------------------- 1 | /* addresses of SLU units, treated as ints by upper layers, 2 | but cast to appropriate (struct csr *) by lower layer */ 3 | /* just for SA getc, putc, etc.--lower routines use slu6850.h 4 | or slu7201.h */ 5 | #define SLUCSR1 0x10040 6 | #define SLUCSR2 0x10041 7 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/startup.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "slu7201.h" 3 | 4 | int errno; 5 | c_startup() 6 | { 7 | slu_init(CONSOLE); /* normal console */ 8 | slu_init(TTYC); /* 6850 too--alternate console */ 9 | *(short *)0x4e0000 = 0xff00; /* turn off floppy drive */ 10 | set_debug_traps(); /* not in libsa.a--debugging init */ 11 | breakpoint(); /* not in libsa.a--run Tutor immediately */ 12 | main(); /* not really used if downloading program */ 13 | breakpoint(); /* not in libsa.a--trap back to debugging */ 14 | } 15 | 16 | -------------------------------------------------------------------------------- /MECB/src/lib/libsa_on7300/startup.c~1: -------------------------------------------------------------------------------- 1 | #include "slu7201.h" 2 | 3 | int errno; 4 | c_startup() 5 | { 6 | slu_init(1); /* normal console */ 7 | slu_init(3); /* 6850 too--alternate console */ 8 | *(short *)0x4e0000 = 0xff00; /* turn off floppy drive */ 9 | set_debug_traps(); /* not in libsa.a--debugging init */ 10 | main(); 11 | breakpoint(); /* not in libsa.a--trap back to debugging */ 12 | } 13 | 14 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/abs.c: -------------------------------------------------------------------------------- 1 | abs(arg) 2 | int arg ; 3 | { 4 | 5 | if(arg < 0) 6 | arg = -arg; 7 | return(arg); 8 | } 9 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/atoi.c: -------------------------------------------------------------------------------- 1 | atoi(p) 2 | register char *p; 3 | { 4 | register int n; 5 | register int f; 6 | 7 | n = 0; 8 | f = 0; 9 | for(;;p++) { 10 | switch(*p) { 11 | case ' ': 12 | case '\t': 13 | continue; 14 | case '-': 15 | f++; 16 | case '+': 17 | p++; 18 | } 19 | break; 20 | } 21 | while(*p >= '0' && *p <= '9') 22 | n = n*10 + *p++ - '0'; 23 | return(f? -n: n); 24 | } 25 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/fprintf.c: -------------------------------------------------------------------------------- 1 | /* fprintf.c - fprintf */ 2 | 3 | #define OK 1 4 | 5 | /*------------------------------------------------------------------------ 6 | * fprintf -- print a formatted message on specified device (file) 7 | *------------------------------------------------------------------------ 8 | */ 9 | fprintf(dev, fmt, args) 10 | int dev; 11 | char *fmt; 12 | { 13 | int putc(); 14 | 15 | _doprnt(fmt, &args, putc, dev); 16 | return(OK); 17 | } 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/fputs.c: -------------------------------------------------------------------------------- 1 | /* fputs.c - fputs */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * fputs -- write a null-terminated string to a device (file) 5 | *------------------------------------------------------------------------ 6 | */ 7 | fputs(dev, s) 8 | register char *s; 9 | register int dev; 10 | { 11 | register r; 12 | register c; 13 | int putc(); 14 | 15 | while (c = *s++) 16 | r = putc(dev, c); 17 | return(r); 18 | } 19 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/getchar.c: -------------------------------------------------------------------------------- 1 | extern int console; 2 | getchar() 3 | { 4 | return getc(console); 5 | } 6 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/index.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Return the ptr in sp at which the character c appears; 3 | * NULL if not found 4 | */ 5 | 6 | #define NULL 0 7 | 8 | char * 9 | index(sp, c) 10 | register char *sp, c; 11 | { 12 | do { 13 | if (*sp == c) 14 | return(sp); 15 | } while (*sp++); 16 | return(NULL); 17 | } 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/printf.c: -------------------------------------------------------------------------------- 1 | /* printf.c - printf */ 2 | 3 | #define OK 1 4 | extern int console; 5 | /*------------------------------------------------------------------------ 6 | * printf -- write formatted output on console 7 | *------------------------------------------------------------------------ 8 | */ 9 | printf(fmt, args) 10 | char *fmt; 11 | { 12 | int putc(); 13 | 14 | _doprnt(fmt, &args, putc, console); 15 | return(OK); 16 | } 17 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/pscfuncts.c: -------------------------------------------------------------------------------- 1 | static int saved_ps; /* only one "process"--so one global saved_ps */ 2 | disable() 3 | { 4 | #ifdef DEBUG 5 | kprintf("disable()\n"); 6 | #endif 7 | _disable(&saved_ps); 8 | } 9 | 10 | restore() 11 | { 12 | #ifdef DEBUG 13 | kprintf("restore()\n"); 14 | #endif 15 | _restore(&saved_ps); 16 | } 17 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/putchar.c: -------------------------------------------------------------------------------- 1 | extern int console; 2 | putchar(ch) 3 | char ch; 4 | { 5 | putc(console,ch); 6 | } 7 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/puts.c: -------------------------------------------------------------------------------- 1 | /* puts.c - puts */ 2 | 3 | extern int console; 4 | /*------------------------------------------------------------------------ 5 | * puts -- write a null-terminated string to the console 6 | *------------------------------------------------------------------------ 7 | */ 8 | puts(s) 9 | register char *s; 10 | { 11 | register c; 12 | int putc(); 13 | 14 | while (c = *s++) 15 | putc(console,c); 16 | return(putc(console,'\n')); 17 | } 18 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/rand.c: -------------------------------------------------------------------------------- 1 | static long randx = 1; 2 | 3 | srand(x) 4 | unsigned x; 5 | { 6 | randx = x; 7 | } 8 | 9 | rand() 10 | { 11 | return(((randx = randx*1103515245 + 12345)>>16) & 077777); 12 | } 13 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/rindex.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Return the ptr in sp at which the character c last 3 | * appears; NULL if not found 4 | */ 5 | 6 | #define NULL 0 7 | 8 | char * 9 | rindex(sp, c) 10 | register char *sp, c; 11 | { 12 | register char *r; 13 | 14 | r = NULL; 15 | do { 16 | if (*sp == c) 17 | r = sp; 18 | } while (*sp++); 19 | return(r); 20 | } 21 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/strcat.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Concatenate s2 on the end of s1. S1's space must be large enough. 3 | * Return s1. 4 | */ 5 | 6 | char * 7 | strcat(s1, s2) 8 | register char *s1, *s2; 9 | { 10 | register char *os1; 11 | 12 | os1 = s1; 13 | while (*s1++) 14 | ; 15 | --s1; 16 | while (*s1++ = *s2++) 17 | ; 18 | return(os1); 19 | } 20 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/strcmp.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Compare strings: s1>s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1= 0 && *s1 == *s2++) 11 | if (*s1++ == '\0') 12 | return(0); 13 | return(n<0 ? 0 : *s1 - *--s2); 14 | } 15 | -------------------------------------------------------------------------------- /MECB/src/lib/libxc/strncpy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copy s2 to s1, truncating or null-padding to always copy n bytes 3 | * return s1 4 | */ 5 | 6 | char * 7 | strncpy(s1, s2, n) 8 | register char *s1, *s2; 9 | { 10 | register i; 11 | register char *os1; 12 | 13 | os1 = s1; 14 | for (i = 0; i < n; i++) 15 | if ((*s1++ = *s2++) == '\0') { 16 | while (++i < n) 17 | *s1++ = '\0'; 18 | return(os1); 19 | } 20 | return(os1); 21 | } 22 | -------------------------------------------------------------------------------- /MECB/src/lib/tutor_on7300/cpu.h: -------------------------------------------------------------------------------- 1 | /* there are 180 bytes of registers on a 68020 w/68881 */ 2 | /* many of the fpa registers are 12 byte (96 bit) registers */ 3 | 4 | /* for 68000/68010 w/o 68881, there are 17 4byte +1 2byte = 70, */ 5 | /* but we round up to mult of 4-- */ 6 | #define NUMREGBYTES 72 7 | enum regnames {D0,D1,D2,D3,D4,D5,D6,D7, 8 | A0,A1,A2,A3,A4,A5,A6,A7, 9 | PS,PC 10 | }; 11 | /* PS has SR in high word */ 12 | #define PS_TBIT 0x8000 13 | 14 | 15 | -------------------------------------------------------------------------------- /MECB/src/lib/tutor_on7300/slex.h: -------------------------------------------------------------------------------- 1 | /* header file slex.h */ 2 | struct cmd 3 | { 4 | char *cmdtoken; /* TM or whatever--uppercase version of cmd */ 5 | int (*cmdfn)(); /* implementation routine for cmd */ 6 | char *help; /* helpstring for cmd */ 7 | }; 8 | 9 | #define MAXTOKENLEN 80 10 | -------------------------------------------------------------------------------- /MECB/src/sys/con/Makefile: -------------------------------------------------------------------------------- 1 | config: lex.yy.c y.tab.c 2 | cc -o config y.tab.c -ll 3 | 4 | all: config 5 | 6 | lex.yy.c: config.l 7 | lex config.l 8 | 9 | y.tab.c: config.y 10 | yacc config.y 11 | 12 | install: config 13 | mv config ../sys/config 14 | 15 | clean: 16 | rm -f lex.yy.c y.tab.c core 17 | -------------------------------------------------------------------------------- /MECB/src/sys/con/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/src/sys/con/config -------------------------------------------------------------------------------- /MECB/src/sys/h/mark.h: -------------------------------------------------------------------------------- 1 | /* mark.h - unmarked */ 2 | 3 | #ifndef MAXMARK 4 | #define MAXMARK 20 /* maximum number of marked locations */ 5 | #endif 6 | #ifdef MEMMARK 7 | extern int *(marks[]); 8 | extern int nmarks; 9 | extern int mkmutex; 10 | typedef int MARKER[1]; /* by declaring it to be an array, the */ 11 | /* name provides an address so forgotten*/ 12 | /* &'s don't become a problem */ 13 | 14 | #define unmarked(L) (L[0]<0 || L[0]>=nmarks || marks[L[0]]!=L) 15 | #endif 16 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/.cupdate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/src/sys/sys/.cupdate -------------------------------------------------------------------------------- /MECB/src/sys/sys/.formatted: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/src/sys/sys/.formatted -------------------------------------------------------------------------------- /MECB/src/sys/sys/.hupdate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/src/sys/sys/.hupdate -------------------------------------------------------------------------------- /MECB/src/sys/sys/.supdate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/MECB/src/sys/sys/.supdate -------------------------------------------------------------------------------- /MECB/src/sys/sys/dlcstubs.c: -------------------------------------------------------------------------------- 1 | dlcinit() 2 | { 3 | } 4 | dlcread() 5 | { 6 | } 7 | dlcwrite() 8 | { 9 | } 10 | dlcputc() 11 | { 12 | } 13 | dlccntl() 14 | { 15 | } 16 | dlcoin() 17 | { 18 | } 19 | dlciin() 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/dotrace.c: -------------------------------------------------------------------------------- 1 | /* dotrace.c - dotrace */ 2 | 3 | #include 4 | 5 | int dotrace(procname, argv, argc) 6 | char *procname; 7 | int *argv; 8 | int argc; 9 | { 10 | } 11 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/dotrace.debug.c: -------------------------------------------------------------------------------- 1 | /* dotrace.c - dotrace */ 2 | 3 | #include 4 | 5 | int dotrace(procname, argv, argc) 6 | char *procname; 7 | int *argv; 8 | int argc; 9 | { 10 | int i; 11 | 12 | kprintf("%s(", procname); 13 | for (i=0; i 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * getpid -- get the process id of currently executing process 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL getpid() 12 | { 13 | return(currpid); 14 | } 15 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/getprio.c: -------------------------------------------------------------------------------- 1 | 2 | /* getprio.c */ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | SYSCALL getprio(pid) 9 | int pid; 10 | { 11 | struct pentry *pptr; 12 | 13 | disable(); 14 | if (isbadpid(pid) || (pptr = &proctab[pid])->pstate == PRFREE) 15 | { 16 | restore(); 17 | return(SYSERR); 18 | } 19 | restore(); 20 | return(pptr->pprio); 21 | } 22 | 23 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/ioerr.c: -------------------------------------------------------------------------------- 1 | /* ioerr.c - ioerr */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * ioerr - return an error (used for "error" entries in devtab) 8 | *------------------------------------------------------------------------ 9 | */ 10 | ioerr() 11 | { 12 | return(SYSERR); 13 | } 14 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/ionull.c: -------------------------------------------------------------------------------- 1 | /* ionull.c - ionull */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * ionull - do nothing (used for "don't care" entries in devtab) 8 | *------------------------------------------------------------------------ 9 | */ 10 | ionull() 11 | { 12 | return(OK); 13 | } 14 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/log1: -------------------------------------------------------------------------------- 1 | gcc -O -m68000 -c -I../h -DDEBUG -o lpstubs.o68 lpstubs.c 2 | gcc -O -m68000 -c -I../h -DDEBUG -DATT7300 -o lpstubs7300.o68 lpstubs.c 3 | /usr/local/gnu/bin/as -m68000 -o sizmem7300.o68 sizmem7300.s 4 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/nullnet.c: -------------------------------------------------------------------------------- 1 | netinit() 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/piint.s: -------------------------------------------------------------------------------- 1 | | as68 routine for interrupt programming 2 | .text 3 | .globl _piint 4 | 5 | _piint: movel a0,sp@- | save C scratch regs 6 | movel a1,sp@- 7 | movel d0,sp@- 8 | movel d1,sp@- | (or use movem for better performance) 9 | jsr _lpoin | C will save other regs on entry to routine 10 | movel sp@+,d1 11 | movel sp@+,d0 12 | movel sp@+,a1 13 | movel sp@+,a0 14 | rte | return from interrupt 15 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/pscfuncts.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | disable() 4 | { 5 | #ifdef DEBUG 6 | dotrace("disable()",NULL,NULL); 7 | #endif 8 | if (!(proctab[currpid].phasps)++) 9 | _disable(&(proctab[currpid].pstatreg)); 10 | } 11 | 12 | restore() 13 | { 14 | #ifdef DEBUG 15 | dotrace("restore()",NULL,NULL); 16 | #endif 17 | if (--(proctab[currpid].phasps) == 0) 18 | _restore(&(proctab[currpid].pstatreg)); 19 | } 20 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/pssfuncts.s: -------------------------------------------------------------------------------- 1 | DISABLE = 0x2700 2 | .data 3 | .text 4 | .globl __disable 5 | __disable: 6 | movl a0, sp@- 7 | movl sp@(8), a0 8 | movw sr, a0@ 9 | movw #DISABLE,sr 10 | movl sp@+, a0 11 | rts 12 | 13 | .globl __restore 14 | __restore: 15 | movl a0, sp@- 16 | movl sp@(8), a0 17 | movw a0@, sr 18 | movl sp@+, a0 19 | rts 20 | 21 | |for initial lowering of priority, after device initialization-- 22 | 23 | LOWPRI = 0x2000 24 | 25 | .globl _setlowpri 26 | 27 | _setlowpri: 28 | movw #LOWPRI,sr | set CPU SR register to 0x2000 29 | rts 30 | 31 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/setclkr.s: -------------------------------------------------------------------------------- 1 | |* setclkr.s - setclkr *| 2 | 3 | 4 | |*------------------------------------------------------------------------ 5 | |* setclkr -- set cklruns to 1 iff real-time clock exists, 0 otherwise 6 | |*------------------------------------------------------------------------ 7 | .data 8 | .text 9 | .globl _setclkr 10 | _setclkr: 11 | 12 | movl #1,_clkruns | On the MECB or ATT7300 there's always 13 | rts | a clock 14 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/slu1int.s: -------------------------------------------------------------------------------- 1 | | as68 routines for interrupt programming 2 | | read/xmit int for SLU1, i.e, the console -- 3 | 4 | .text 5 | .globl _slu1int | make _slu1int extern 6 | 7 | _slu1int: movel a0,sp@- | save C scratch regs 8 | movel a1,sp@- 9 | movel d0,sp@- 10 | movel d1,sp@- | (or use movem for better performance) 11 | jsr _slu1intc | C will save other regs on entry to routine 12 | movel sp@+,d1 13 | movel sp@+,d0 14 | movel sp@+,a1 15 | movel sp@+,a0 16 | rte | return from interrupt 17 | 18 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/slu2int.s: -------------------------------------------------------------------------------- 1 | | as68 routines for interrupt programming 2 | | read/xmit int for SLU2, i.e, the hostline -- 3 | 4 | .text 5 | .globl _slu2int | make _slu2int extern 6 | 7 | _slu2int: movel a0,sp@- | save C scratch regs 8 | movel a1,sp@- 9 | movel d0,sp@- 10 | movel d1,sp@- | (or use movem for better performance) 11 | jsr _slu2intc | C will save other regs on entry to routine 12 | movel sp@+,d1 13 | movel sp@+,d0 14 | movel sp@+,a1 15 | movel sp@+,a0 16 | rte | return from interrupt 17 | 18 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/slu3int.s: -------------------------------------------------------------------------------- 1 | | as68 routines for interrupt programming 2 | | read/xmit int for SLU3, i.e, the hostline -- 3 | 4 | .text 5 | .globl _slu3int | make _slu3int extern 6 | 7 | _slu3int: movel a0,sp@- | save C scratch regs 8 | movel a1,sp@- 9 | movel d0,sp@- 10 | movel d1,sp@- | (or use movem for better performance) 11 | jsr _slu3intc | C will save other regs on entry to routine 12 | movel sp@+,d1 13 | movel sp@+,d0 14 | movel sp@+,a1 15 | movel sp@+,a0 16 | rte | return from interrupt 17 | 18 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/spurint.s: -------------------------------------------------------------------------------- 1 | | as68 routine for interrupt programming 2 | .text 3 | .globl _spurint 4 | 5 | _spurint: movel a0,sp@- | save C scratch regs 6 | movel a1,sp@- 7 | movel d0,sp@- 8 | movel d1,sp@- | (or use movem for better performance) 9 | jsr _spurintc | C will save other regs on entry to routine 10 | movel sp@+,d1 11 | movel sp@+,d0 12 | movel sp@+,a1 13 | movel sp@+,a0 14 | rte | return from interrupt 15 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/startup.s: -------------------------------------------------------------------------------- 1 | .globl _console 2 | .data 3 | _console: .long 0 | for printf, etc. 4 | .text 5 | DISABLE = 0x2700 6 | 7 | movw #DISABLE,sr | make sure no ints for startup 8 | jsr _sizmem | find out how much mem we have 9 | movel _maxaddr,sp | relocate stack there 10 | jmp _nulluser | and run nulluser 11 | 12 | 13 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/userret.c: -------------------------------------------------------------------------------- 1 | /* userret.c - userret */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * userret -- entered when a process exits by return 8 | *------------------------------------------------------------------------ 9 | */ 10 | userret() 11 | { 12 | kill( getpid() ); 13 | } 14 | -------------------------------------------------------------------------------- /MECB/src/sys/sys/xdone.c: -------------------------------------------------------------------------------- 1 | /* xdone.c - xdone */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * xdone -- print system completion message as last process exits 5 | *------------------------------------------------------------------------ 6 | */ 7 | xdone() 8 | { 9 | printf("\n\nAll user processes have completed.\n\n"); 10 | } 11 | -------------------------------------------------------------------------------- /SUN/bin/cprint: -------------------------------------------------------------------------------- 1 | PATH=/usr/local/bin:/bin:/usr/bin:/usr/ucb 2 | case $# in 3 | 0) echo "usage: $0 \[-c coverfile] file.c ..." 4 | ;; 5 | 1) n=`echo $1 | sed 's/.*\///'` 6 | cat -n $1 | pr -h " $n" | lpr & 7 | ;; 8 | *) (TMP=/tmp/cpr$$ 9 | trap "rm -rf $TMP" 0 1 2 3 10 | rm -rf $TMP 11 | case $1 in 12 | -c) shift; 13 | cat $1 >> $TMP 14 | shift 15 | ;; 16 | esac 17 | for i in $* 18 | do n=`echo $i | sed 's/.*\///'` 19 | cat -n $i | pr -h " $n" >> $TMP 20 | done 21 | lpr $TMP 22 | rm -rf $TMP) & 23 | ;; 24 | esac 25 | -------------------------------------------------------------------------------- /SUN/bin/cvt: -------------------------------------------------------------------------------- 1 | PATH=/bin:/usr/bin 2 | sed "s/~ps=/ ~ps= /" < $1 | 3 | awk ' {if ($2 == "~ps") 4 | printf("%s %s(r5) %s\n",$1,val,$3); 5 | else if ($3 == "~ps") 6 | printf("%s %s %s(r5)\n",$1,$2,val); 7 | else { 8 | if ($1 == "~ps=") 9 | val = $2; 10 | else if ($2 == "~ps=") 11 | val = $3; 12 | print; 13 | } 14 | }' 15 | -------------------------------------------------------------------------------- /SUN/bin/fs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/bin/fs -------------------------------------------------------------------------------- /SUN/bin/fsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/bin/fsd -------------------------------------------------------------------------------- /SUN/bin/odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/bin/odt -------------------------------------------------------------------------------- /SUN/bin/pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/bin/pm -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/extrabin/README: -------------------------------------------------------------------------------- 1 | 2 | README 3 | ------ 4 | 5 | 6 | This directory contains shell scripts and any programs that make using 7 | the distributed odt system easier and more convenient. 8 | 9 | Most are commented, however they are not necessarily supported. Feel free 10 | to add your own. 11 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/extrabin/sbusers: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This shell script runs the busers command, 4 | # extracts only the class SUN entries, and 5 | # then sorts the resulting list 6 | 7 | busers | bm SUN | sort 8 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/h/bmutils.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * bmutils.h - Definitions for bm structure utilities 4 | * 5 | * Author: Shawn Oostermann/Jim Griffioen 6 | * Dept. of Computer Sciences 7 | * Purdue University 8 | * Date: Fri Jun 10 16:04:11 1988char 9 | * 10 | * Copyright (c) 1988char *CmdToSb (); Shawn Oostermann/Jim Griffioen 11 | */ 12 | 13 | char *UidToSb (); 14 | char *ServToSb (); 15 | char *DescToSb (); 16 | char *OmToSb (); 17 | char *BmToSb(); 18 | char *SbToBm(); 19 | 20 | #define BITMASK(n) (1<<(n)) 21 | 22 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/h/netutils.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * netutils.h - Header file for network utilitie routines 4 | * 5 | * Author: Tim Korb/Shawn Oostermann/Jim Griffioen 6 | * Dept. of Computer Sciences 7 | * Purdue University 8 | * Date: Fri Jun 10 16:06:18 1988 9 | * 10 | * Copyright (c) 1988 Tim Korb/Shawn Oostermann/Jim Griffioen 11 | */ 12 | 13 | # define lsa (sizeof (struct sockaddr_in)) 14 | 15 | char *IaToSb (); 16 | char *GetHostName (); 17 | struct sockaddr_in *FdToRemoteSa (); 18 | struct sockaddr_in *FdToLocalSa (); 19 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/h/tokens.h: -------------------------------------------------------------------------------- 1 | 2 | typedef union { 3 | char *sb; 4 | } YYSTYPE; 5 | extern YYSTYPE yylval; 6 | # define STRING 257 7 | # define NEWLINE 258 8 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/h/utils.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * utils.h - Header file for bed utilities 4 | * 5 | * Author: Shawn Oostermann 6 | * Dept. of Computer Sciences 7 | * Purdue University 8 | * Date: Fri Jun 10 16:07:47 1988 9 | * 10 | * Copyright (c) 1988 Shawn Oostermann 11 | */ 12 | 13 | # define FALSE 0 14 | # define TRUE 1 15 | 16 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/man/bedkill.1: -------------------------------------------------------------------------------- 1 | .TH BEDKILL 1 2 | .SH NAME 3 | bedkill \- kill all BED processes running on frontends 4 | .SH SYNOPSIS 5 | .B bedkill 6 | .SH DESCRIPTION 7 | .I Bedkill 8 | broadcasts a \f2kill\f1 message to all BED processes. It is useful for 9 | quickly stopping all BED processes. This is very helpful when debugging 10 | the distributed odt/download/upload software. 11 | .SH "SEE ALSO" 12 | bed(1), bedreboot(1) 13 | 14 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/man/bedreboot.1: -------------------------------------------------------------------------------- 1 | .TH BEDREBOOT 1 2 | .SH NAME 3 | bedreboot \- reboot the BED on the specified frontend 4 | .SH SYNOPSIS 5 | .B bedreboot 6 | [ frontend\-machine ] ... 7 | .SH DESCRIPTION 8 | .I Bedreboot 9 | restarts the BED process on all frontends specified on the command line. This 10 | is useful if it appears that a particular BED is functioning incorrectly and 11 | needs to be restarted. 12 | .SH "SEE ALSO" 13 | bed(1), bedkill(1) 14 | 15 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/bed.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/bed.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/bedkill.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/bedkill.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/bedreboot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/bedreboot.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/bedservers: -------------------------------------------------------------------------------- 1 | gwen.cs.purdue.edu 2 | walnut.cs.purdue.edu 3 | birch.cs.purdue.edu 4 | hickory.cs.purdue.edu 5 | elm.cs.purdue.edu 6 | sycamore.cs.purdue.edu 7 | poplar.cs.purdue.edu 8 | oak.cs.purdue.edu 9 | maple.cs.purdue.edu 10 | arthur.cs.purdue.edu 11 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/bmutils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/bmutils.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/busers.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/busers.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/download.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/download.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/downloadd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/downloadd.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/fusers.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/fusers.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/lib.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/lib.a -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/lock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/lock.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/netutils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/netutils.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/obtainlock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/obtainlock.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/obtainstatus.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/obtainstatus.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/odt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/odt.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/odtd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/odtd.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/odtunlock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/odtunlock.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/parsestatus.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/parsestatus.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/pm/connectsun.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/pm/connectsun.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/pm/pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/pm/pm -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/pm/pm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/pm/pm.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/pm/setup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/pm/setup.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/pm/sun3.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/pm/sun3.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/pm/trace.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/pm/trace.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/prstatus.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/prstatus.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/releaselock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/releaselock.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/scanner.l: -------------------------------------------------------------------------------- 1 | %{ 2 | /* 3 | * Scanner for machines database. 4 | * 5 | * Steve Chapin, 13 Apr 1988 6 | */ 7 | #include 8 | 9 | #include "../h/tokens.h" 10 | 11 | char *newsb(); 12 | %} 13 | C [^\n\t ] 14 | N [\n] 15 | W [\t ] 16 | %% 17 | {W} /* eat up white space */ ; 18 | "#"[^\n]*{N} /* eat up comment lines */ ; 19 | {N} { 20 | return(NEWLINE); 21 | } 22 | {C}+ { 23 | yylval.sb = newsb(yytext); 24 | return(STRING); 25 | } 26 | %% 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/scanner.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/scanner.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/status.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/status.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/support.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/support.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/sysstat.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/sysstat.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/utils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/utils.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/y.tab.h: -------------------------------------------------------------------------------- 1 | 2 | typedef union { 3 | char *sb; 4 | } YYSTYPE; 5 | extern YYSTYPE yylval; 6 | # define STRING 257 7 | # define NEWLINE 258 8 | -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/src/y.tab.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/src/y.tab.o -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/bed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/bed -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/bedkill: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/bedkill -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/bedreboot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/bedreboot -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/busers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/busers -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/download: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/download -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/fusers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/fusers -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/odt -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/odtunlock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/odtunlock -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/sunbin/status: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/sunbin/status -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/bed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/bed -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/bedkill: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/bedkill -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/bedreboot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/bedreboot -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/busers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/busers -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/download: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/download -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/fusers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/fusers -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/odt -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/odtunlock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/odtunlock -------------------------------------------------------------------------------- /SUN/contrib/distodt.old/vaxbin/status: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt.old/vaxbin/status -------------------------------------------------------------------------------- /SUN/contrib/distodt/man/bedkill.1: -------------------------------------------------------------------------------- 1 | .TH BEDKILL 1 2 | .SH NAME 3 | bedkill \- kill all BED processes running on frontends 4 | .SH SYNOPSIS 5 | .B bedkill 6 | [ frontend ] ... 7 | .SH DESCRIPTION 8 | .I Bedkill 9 | kills the BED processes on all frontends specified on the command line. 10 | .SH "SEE ALSO" 11 | bed(1), bedreboot(1), bedkillall(1) 12 | 13 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/man/bedkillall.1: -------------------------------------------------------------------------------- 1 | .TH BEDKILL 1 2 | .SH NAME 3 | bedkillall \- kill all BED processes running on frontends 4 | .SH SYNOPSIS 5 | .B bedkill 6 | .SH DESCRIPTION 7 | .I Bedkill 8 | broadcasts a \f2kill\f1 message to all BED processes. It is useful for 9 | quickly stopping all BED processes. This is very helpful when debugging 10 | the distributed odt/download/upload software. 11 | .SH "SEE ALSO" 12 | bed(1), bedreboot(1), bedkill(1) 13 | 14 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/man/bedreboot.1: -------------------------------------------------------------------------------- 1 | .TH BEDREBOOT 1 2 | .SH NAME 3 | bedreboot \- reboot the BED on the specified frontend 4 | .SH SYNOPSIS 5 | .B bedreboot 6 | [ frontend\-machine ] ... 7 | .SH DESCRIPTION 8 | .I Bedreboot 9 | restarts the BED process on all frontends specified on the command line. This 10 | is useful if it appears that a particular BED is functioning incorrectly and 11 | needs to be restarted. In addition, the BED process re-reads its machine 12 | database. 13 | to be reread. 14 | .SH "SEE ALSO" 15 | bed(1), bedkill(1), bedkillall(1) 16 | 17 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/sys/includes/RCS/tokens.h,v: -------------------------------------------------------------------------------- 1 | head 1.1; 2 | access; 3 | symbols; 4 | locks; strict; 5 | comment @ * @; 6 | 7 | 8 | 1.1 9 | date 91.11.25.02.06.50; author muckel; state Exp; 10 | branches; 11 | next ; 12 | 13 | 14 | desc 15 | @@ 16 | 17 | 18 | 1.1 19 | log 20 | @Initial revision 21 | @ 22 | text 23 | @typedef union { 24 | char * sb; 25 | } YYSTYPE; 26 | 27 | #define TKSTRING 257 28 | #define TKNEWLINE 258 29 | #define TKEOF 0 30 | 31 | @ 32 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/sys/includes/RCS/utils.h,v: -------------------------------------------------------------------------------- 1 | head 1.1; 2 | access; 3 | symbols; 4 | locks; strict; 5 | comment @ * @; 6 | 7 | 8 | 1.1 9 | date 91.11.25.02.06.50; author muckel; state Exp; 10 | branches; 11 | next ; 12 | 13 | 14 | desc 15 | @@ 16 | 17 | 18 | 1.1 19 | log 20 | @Initial revision 21 | @ 22 | text 23 | @@ 24 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/sys/includes/bmutils.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * bmutils.h - Definitions for bm structure utilities 4 | * 5 | * Author: Shawn Oostermann/Jim Griffioen 6 | * Dept. of Computer Sciences 7 | * Purdue University 8 | * Date: Fri Jun 10 16:04:11 1988char 9 | * 10 | * Copyright (c) 1988char *CmdToSb (); Shawn Oostermann/Jim Griffioen 11 | */ 12 | 13 | char *UidToSb (); 14 | char *ServToSb (); 15 | char *DescToSb (); 16 | char *OmToSb (); 17 | char *BmToSb(); 18 | char *SbToBm(); 19 | 20 | #define BITMASK(n) (1<<(n)) 21 | 22 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/sys/includes/odtd.h: -------------------------------------------------------------------------------- 1 | /* odtd.h - */ 2 | 3 | /* used by the odt and odtd command */ 4 | #define ODTD_BREAKCH '\000' 5 | #define ODTD_ESCCH '\\' 6 | 7 | /* used by the odt command */ 8 | #define ODT_DFLT_CH '\000' 9 | #define ODT_DFLT_MSG "Escape Character (control shift @) NULL\n" 10 | 11 | 12 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/sys/includes/tokens.h: -------------------------------------------------------------------------------- 1 | typedef union { 2 | char * sb; 3 | } YYSTYPE; 4 | 5 | #define TKSTRING 257 6 | #define TKNEWLINE 258 7 | #define TKEOF 0 8 | 9 | -------------------------------------------------------------------------------- /SUN/contrib/distodt/sys/includes/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/distodt/sys/includes/utils.h -------------------------------------------------------------------------------- /SUN/contrib/downloader/h/eeprom.h: -------------------------------------------------------------------------------- 1 | /* eeprom.h -- structures used for storing info in the Sun3 eeprom */ 2 | 3 | 4 | /* the (hopefully!) unused portion of the Sun3 eeprom space */ 5 | #define EEPROMADDR 0x0Fe04710 6 | 7 | /* maximum length of the boot file name */ 8 | #define MAXFILENAME 40 9 | 10 | 11 | struct eepromblock { 12 | IPaddr myaddr; 13 | Eaddr desteaddr; 14 | IPaddr destaddr; 15 | char fname[MAXFILENAME]; 16 | }; 17 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/h/idprom.h: -------------------------------------------------------------------------------- 1 | /* idprom.h -- structure of the ID prom */ 2 | 3 | /* Fields stored in the ID prom */ 4 | struct idprom { 5 | unsigned char id_format; /* format identifier */ 6 | unsigned char id_machine; /* machine type */ 7 | unsigned char id_ether[6]; /* ethernet address */ 8 | }; 9 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/b.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/b.out -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/big.c: -------------------------------------------------------------------------------- 1 | /* this file has a BIG image (just for testing) */ 2 | 3 | /* We need to make this structure large to increase the size of the image */ 4 | /* If we don't init it, it will go into bss instead of data portion */ 5 | char big[1000000] = {'a','b','c','d','e'}; /* about 1 meg */ 6 | 7 | main() 8 | { 9 | kprintf("\n\nThis is a REALLY big image\n\n"); 10 | } 11 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/blkcopy.c: -------------------------------------------------------------------------------- 1 | /* blkcopy.c - blkcopy */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * blkcopy - copy a block of memory form one location to another 5 | *------------------------------------------------------------------------ 6 | */ 7 | blkcopy(to, from, nbytes) 8 | register char *to; 9 | register char *from; 10 | register int nbytes; 11 | { 12 | while (--nbytes >= 0) 13 | *to++ = *from++; 14 | } 15 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/blkcopy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/blkcopy.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/blkequ.c: -------------------------------------------------------------------------------- 1 | /* blkequ.c - blkequ */ 2 | 3 | #include "../h/tftpload.h" 4 | 5 | /*------------------------------------------------------------------------ 6 | * blkequ - return TRUE iff one block of memory is equal to another 7 | *------------------------------------------------------------------------ 8 | */ 9 | blkequ(first, second, nbytes) 10 | register char *first; 11 | register char *second; 12 | register int nbytes; 13 | { 14 | while (--nbytes >= 0) 15 | if (*first++ != *second++) 16 | return(FALSE); 17 | return(TRUE); 18 | } 19 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/blkequ.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/blkequ.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/bzero.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Clear a block of characters to 0s 3 | */ 4 | bzero(pch, len) 5 | register char *pch; 6 | int len; 7 | { 8 | register int n; 9 | 10 | if ((n = len) <= 0) 11 | return; 12 | do 13 | *pch++ = 0; 14 | while (--n); 15 | } 16 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/bzero.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/bzero.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/cksum.c: -------------------------------------------------------------------------------- 1 | /* cksum.c -- cksum */ 2 | 3 | short cksum(buf, nwords) 4 | register unsigned short *buf; 5 | int nwords; 6 | { 7 | register unsigned long sum; 8 | register int i; 9 | 10 | sum = 0; 11 | for (i = nwords; i > 0; --i) 12 | sum += *buf++; 13 | 14 | /* add in the carry from high 2 bytes */ 15 | sum = (sum >> 16) + (sum & 0xffff); 16 | /* just in case there was another carry */ 17 | sum += (sum >> 16); 18 | return(~sum); 19 | } 20 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/cksum.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/cksum.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/eeprom.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/eeprom.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/einit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/einit.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/eread.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/eread.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/erstrt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/erstrt.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/estrt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/estrt.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/ewrite.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/ewrite.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/ewstrt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/ewstrt.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/getdmem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/getdmem.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/getidprom.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/getidprom.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/kgetline.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/kgetline.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/kprintf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/kprintf.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/makepack.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/makepack.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/mkrarp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/mkrarp.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/mmu.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/mmu.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/panic.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/panic.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/printaddr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/printaddr.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/readaddr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/readaddr.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/scanaddr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/scanaddr.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/setboot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/setboot.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/setboot.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/setboot.out -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/startup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/startup.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/strcpy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copy string s2 to s1. s1 must be large enough. 3 | * return s1 4 | */ 5 | 6 | char * 7 | strcpy(s1, s2) 8 | register char *s1, *s2; 9 | { 10 | register char *os1; 11 | 12 | os1 = s1; 13 | while (*s1++ = *s2++) 14 | ; 15 | return(os1); 16 | } 17 | -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/strcpy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/strcpy.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/tftpload.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/tftpload.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/tftpwr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/tftpwr.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/udpipwr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/udpipwr.o -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/xboot.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/xboot.a -------------------------------------------------------------------------------- /SUN/contrib/downloader/src/xboot.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/contrib/downloader/src/xboot.out -------------------------------------------------------------------------------- /SUN/lib/libx.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/lib/libx.a -------------------------------------------------------------------------------- /SUN/lib/libxc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/lib/libxc.a -------------------------------------------------------------------------------- /SUN/lib/xinu.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/lib/xinu.o -------------------------------------------------------------------------------- /SUN/man/man2/close.2: -------------------------------------------------------------------------------- 1 | .TH CLOSE 2 2 | .SH NAME 3 | close \- device independent close routine 4 | .SH SYNOPSIS 5 | .B int 6 | .B close(dev) 7 | .nf 8 | .B int dev; 9 | .fi 10 | .SH DESCRIPTION 11 | .I Close 12 | will disconnect I/O from the device given by 13 | .I dev. 14 | It returns SYSERR if 15 | .I dev 16 | is incorrect, or is not opened for I/O. 17 | Otherwise, 18 | .I close 19 | returns OK. 20 | .PP 21 | Normally tty devices like the console do not have to be opened and 22 | closed. 23 | .SH SEE ALSO 24 | control(2), getc(2), open(2), putc(2), read(2), seek(2), write(2) 25 | -------------------------------------------------------------------------------- /SUN/man/man2/getpid.2: -------------------------------------------------------------------------------- 1 | .TH GETPID 2 2 | .SH NAME 3 | getpid \- return the process id of the currently running process 4 | .SH SYNOPSIS 5 | .B int 6 | .B getpid() 7 | .fi 8 | .SH DESCRIPTION 9 | .I Getpid 10 | returns the process id of the currently executing process. 11 | It is necessary to be able to identify one's self in order to 12 | perform some operations (e.g., change one's scheduling priority). 13 | -------------------------------------------------------------------------------- /SUN/man/man2/getprio.2: -------------------------------------------------------------------------------- 1 | .TH GETPRIO 2 2 | .SH NAME 3 | getprio \- return the scheduling priority of a given process 4 | .SH SYNOPSIS 5 | .B int 6 | .B getprio(pid) 7 | .nf 8 | .B int pid; 9 | .fi 10 | .SH DESCRIPTION 11 | .I Getprio 12 | returns the scheduling priority of process 13 | .I pid. 14 | If pid is invalid, 15 | .I getprio 16 | returns SYSERR. 17 | -------------------------------------------------------------------------------- /SUN/man/man2/pinit.2: -------------------------------------------------------------------------------- 1 | .TH PINIT 2 2 | .SH NAME 3 | pinit \- initialize the ports table at system startup 4 | .SH SYNOPSIS 5 | .nf 6 | .B int pinit(maxmsgs) 7 | .B int maxmsgs; 8 | .fi 9 | .SH DESCRIPTION 10 | .I Pinit 11 | initializes the ports mechanism by clearing the ports table and 12 | allocating memory for messages. 13 | It should be called only once (usually at system startup). 14 | Argument \f2maxmsgs\f1 specifies an upper bound on the number 15 | of simultaneously outstanding messages at all ports. 16 | .SH SEE ALSO 17 | pcreate(2), pdelete(2), psend(2), preceive(2) 18 | -------------------------------------------------------------------------------- /SUN/man/man2/receive.2: -------------------------------------------------------------------------------- 1 | .TH RECEIVE 2 2 | .SH NAME 3 | receive \- receive a (one-word) message 4 | .SH SYNOPSIS 5 | .nf 6 | .B int receive() 7 | .fi 8 | .SH DESCRIPTION 9 | .I Receive 10 | returns the one-word 11 | message sent to a process using SEND(2). 12 | If no messages are waiting, 13 | .I receive 14 | blocks until one appears. 15 | .SH SEE ALSO 16 | preceive(2), psend(2), receive(2) 17 | -------------------------------------------------------------------------------- /SUN/man/man2/recvclr.2: -------------------------------------------------------------------------------- 1 | .TH RECVCLR 2 2 | .SH NAME 3 | recvclr \- clear incoming message buffer asynchronously 4 | .SH SYNOPSIS 5 | .nf 6 | .B int recvclr() 7 | .fi 8 | .SH DESCRIPTION 9 | A process executes \f2recvclr\f1 to clear its message buffer of 10 | any waiting message in preparation for receiving messages. 11 | If a message is waiting, \f2recvclr\f1 returns it to the caller. 12 | If no messages are waiting, 13 | .I recvclr 14 | returns OK. 15 | .SH SEE ALSO 16 | receive(2), send(2), preceive(2), psend(2) 17 | -------------------------------------------------------------------------------- /SUN/man/man2/sdelete.2: -------------------------------------------------------------------------------- 1 | .TH SDELETE 2 2 | .SH NAME 3 | sdelete \- delete a semaphore 4 | .SH SYNOPSIS 5 | .nf 6 | .B int sdelete(sem) 7 | .B int sem; 8 | .fi 9 | .SH DESCRIPTION 10 | .I Sdelete 11 | removes semaphore 12 | .I sem 13 | from the system and returns processes that were waiting for it 14 | to the ready state. 15 | The call returns SYSERR if 16 | .I sem 17 | is not a legal semaphore; 18 | it returns OK if the deletion was successful. 19 | .SH SEE ALSO 20 | scount(2), screate(2), signal(2), sreset(2), wait(2) 21 | -------------------------------------------------------------------------------- /SUN/man/man2/unmount.2: -------------------------------------------------------------------------------- 1 | .TH UNMOUNT 2 2 | .SH NAME 3 | unmount \- remove an entry from the syntactic namespace mapping table 4 | .SH SYNOPSIS 5 | .nf 6 | .B int unmount(prefix) 7 | .B char *prefix; 8 | .fi 9 | .SH DESCRIPTION 10 | .I Unmount 11 | searches the syntactic namespace mapping table and removes 12 | the mapping which has a prefix equal to the null-terminated 13 | string \f2prefix\f1. 14 | If no such entry exists, \f2unmount\f1 returns SYSERR. 15 | Otherwise, it returns OK. 16 | .SH SEE ALSO 17 | mount(2), namespace(4) 18 | -------------------------------------------------------------------------------- /SUN/man/man3/TEMPL: -------------------------------------------------------------------------------- 1 | .TH XXX 3 2 | .SH NAME 3 | xxx \- descr. of xxx 4 | .SH SYNOPSIS 5 | .B #include 6 | .PP 7 | .B int xxx(x,y) 8 | .br 9 | .B int x; 10 | .B int y; 11 | .br 12 | .SH DESCRIPTION 13 | .I Xxx 14 | does neat things. 15 | .SH "SEE ALSO" 16 | zzz(2) 17 | .SH SEE ALSO 18 | .SH DIAGNOSTICS 19 | -------------------------------------------------------------------------------- /SUN/man/man3/dot2ip.3: -------------------------------------------------------------------------------- 1 | .TH DOT2IP 3 2 | .SH NAME 3 | dot2ip \- convert dotted decimal notation to an IP address 4 | .SH SYNOPSIS 5 | .nf 6 | .B int dot2ip(ip, b1, b2, b3, b4) 7 | .B IPaddr ip; 8 | .B int b1; 9 | .B int b2; 10 | .B int b3; 11 | .B int b4; 12 | .br 13 | .SH DESCRIPTION 14 | Procedure 15 | .I dot2ip 16 | converts an Internet (IP) address from dotted decimal notation 17 | to its 32-bit integer form and stores it in argument \f2ip\f1. 18 | Each of the arguments \f2b1\f1, \f2b2\f1, \f2b3\f1, 19 | and \f2b4\f1, gives the value of one byte of the internet 20 | address. 21 | -------------------------------------------------------------------------------- /SUN/man/man3/swab.3: -------------------------------------------------------------------------------- 1 | .TH SWAB 3 2 | .SH NAME 3 | swab \- swap bytes 4 | .SH SYNOPSIS 5 | .nf 6 | .B swab(from, to, nbytes) 7 | .B char *from, *to; 8 | .fi 9 | .SH DESCRIPTION 10 | .I Swab 11 | copies 12 | .I nbytes 13 | bytes pointed to by 14 | .I from 15 | to the position pointed to by 16 | .I to, 17 | exchanging adjacent even and odd bytes. 18 | It is useful for carrying binary data between 19 | LSI 11's and other machines. 20 | .I Nbytes 21 | should be even. 22 | .SH SEE ALSO 23 | hs2net(3) hl2net(3), net2hl(3), net2hs(3) 24 | -------------------------------------------------------------------------------- /SUN/src/Makeall: -------------------------------------------------------------------------------- 1 | : 'Makeall -- make all pieces of Xinu cross-development system' 2 | : 3 | : 'Makeall' 4 | : 5 | PATH=/bin:/usr/bin 6 | echo '*** Making all pieces of Xinu cross-development system' 7 | echo 8 | echo 9 | for i in * 10 | do if test -d $i 11 | then if test -f $i/Makeall 12 | then cd $i 13 | ./Makeall 14 | cd .. 15 | fi 16 | fi 17 | done 18 | -------------------------------------------------------------------------------- /SUN/src/cmd/Makeall: -------------------------------------------------------------------------------- 1 | : ' makeall -- make all of src/cmd for Xinu' 2 | 3 | PATH=/bin:/usr/bin 4 | echo 5 | echo '*** Making commands in {Xinu-directory}/src/cmd' 6 | make 7 | make install 8 | for i in * 9 | do if test -d $i 10 | then cd $i 11 | echo 12 | echo "*** Making commands in {Xinu-directory}/src/cmd/$i" 13 | make 14 | make install 15 | cd .. 16 | fi 17 | done 18 | -------------------------------------------------------------------------------- /SUN/src/cmd/README: -------------------------------------------------------------------------------- 1 | This is README in {Xinu directory}/src/cmd. 2 | 3 | To make and install all commands, run 4 | 5 | Makeall 6 | 7 | To make particular programs (e.g., when you modify them), use 8 | 9 | make program-name 10 | -------------------------------------------------------------------------------- /SUN/src/cmd/cprint: -------------------------------------------------------------------------------- 1 | PATH=/usr/local/bin:/bin:/usr/bin:/usr/ucb 2 | case $# in 3 | 0) echo "usage: $0 \[-c coverfile] file.c ..." 4 | ;; 5 | 1) n=`echo $1 | sed 's/.*\///'` 6 | cat -n $1 | pr -h " $n" | lpr & 7 | ;; 8 | *) (TMP=/tmp/cpr$$ 9 | trap "rm -rf $TMP" 0 1 2 3 10 | rm -rf $TMP 11 | case $1 in 12 | -c) shift; 13 | cat $1 >> $TMP 14 | shift 15 | ;; 16 | esac 17 | for i in $* 18 | do n=`echo $i | sed 's/.*\///'` 19 | cat -n $i | pr -h " $n" >> $TMP 20 | done 21 | lpr $TMP 22 | rm -rf $TMP) & 23 | ;; 24 | esac 25 | -------------------------------------------------------------------------------- /SUN/src/cmd/cvt: -------------------------------------------------------------------------------- 1 | PATH=/bin:/usr/bin 2 | sed "s/~ps=/ ~ps= /" < $1 | 3 | awk ' {if ($2 == "~ps") 4 | printf("%s %s(r5) %s\n",$1,val,$3); 5 | else if ($3 == "~ps") 6 | printf("%s %s %s(r5)\n",$1,$2,val); 7 | else { 8 | if ($1 == "~ps=") 9 | val = $2; 10 | else if ($2 == "~ps=") 11 | val = $3; 12 | print; 13 | } 14 | }' 15 | -------------------------------------------------------------------------------- /SUN/src/cmd/cvt.sh: -------------------------------------------------------------------------------- 1 | : 'cvt -- convert to LSI 11 code by twiddling the mfps and mtps' 2 | : 3 | : 'cvt filename' 4 | : 5 | PATH=/bin:/usr/bin 6 | sed "s/~ps=/ ~ps= /" < $1 | 7 | awk ' {if ($2 == "~ps") 8 | printf("%s %s(r5) %s\n",$1,val,$3); 9 | else if ($3 == "~ps") 10 | printf("%s %s %s(r5)\n",$1,$2,val); 11 | else { 12 | if ($1 == "~ps=") 13 | val = $2; 14 | else if ($2 == "~ps=") 15 | val = $3; 16 | print; 17 | } 18 | }' 19 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Close.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/Close.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Doform: -------------------------------------------------------------------------------- 1 | DIR=/u5/xinu/xinu7 2 | FORDIR=$DIR/book/formatted 3 | for i in *.c *.h 4 | do expand < $i | sed 's/\\/&&&&/g;s/^\./\\\\\&./' > $FORDIR/$i 5 | done 6 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Doform.RAW: -------------------------------------------------------------------------------- 1 | DIR={Xinu-directory} 2 | FORDIR=$DIR/book/formatted 3 | for i in *.c *.h 4 | do expand < $i | sed 's/\\/&&&&/g;s/^\./\\\\\&./' > $FORDIR/$i 5 | done 6 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Open.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/Open.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Seek.c: -------------------------------------------------------------------------------- 1 | /* Seek.c - Seek */ 2 | 3 | #include "fs.h" 4 | 5 | /*------------------------------------------------------------------------ 6 | * Seek - seek in a file given its index in the file cache table 7 | *------------------------------------------------------------------------ 8 | */ 9 | Seek(rfd, newpos) 10 | int rfd; 11 | long newpos; 12 | { 13 | long lseek(); 14 | long pos; 15 | 16 | if ( (pos=lseek(fcache[rfd].fd, newpos, 0)) < 0) 17 | return(SYSERR); 18 | fcache[rfd].currpos = pos; 19 | return(OK); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Seek.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/Seek.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/Uncache.c: -------------------------------------------------------------------------------- 1 | /* Uncache.c - Uncache */ 2 | 3 | #include "fs.h" 4 | 5 | /*------------------------------------------------------------------------ 6 | * Uncache - remove the cached entry for a file and close the file 7 | *------------------------------------------------------------------------ 8 | */ 9 | Uncache(name) 10 | char *name; 11 | { 12 | int rfd; 13 | 14 | for(rfd=0 ; rfdfp_h; 17 | fptr->f_op = FS_ERROR; 18 | return(FHDRLEN); 19 | } 20 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsaccess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsaccess.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsclose.c: -------------------------------------------------------------------------------- 1 | /* fsclose.c - fsclose */ 2 | 3 | #include "fs.h" 4 | 5 | /*------------------------------------------------------------------------ 6 | * fsclose - handle request to close a file 7 | *------------------------------------------------------------------------ 8 | */ 9 | fsclose(fpacptr, flen) 10 | struct fpacket *fpacptr; 11 | int flen; 12 | { 13 | struct fphdr *fptr; 14 | int rfd; 15 | 16 | fptr = &fpacptr->fp_h; 17 | if (Uncache(fptr->f_name) == SYSERR) 18 | fptr->f_op = FS_ERROR; 19 | return(FHDRLEN); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsclose.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsclose.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsd -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsmkdir.c: -------------------------------------------------------------------------------- 1 | /* fsmkdir.c - fsmkdir */ 2 | 3 | #include "fs.h" 4 | 5 | /*------------------------------------------------------------------------ 6 | * fsmkdir - handle mkdir request and prepare reply 7 | *------------------------------------------------------------------------ 8 | */ 9 | fsmkdir(fpacptr, flen) 10 | struct fpacket *fpacptr; 11 | int flen; 12 | { 13 | struct fphdr *fptr; 14 | int rfd; 15 | 16 | if (mkdir(fptr->f_name, fptr->f_count) < 0) 17 | fptr->f_op = FS_ERROR; 18 | else 19 | Uncache(fptr->f_name); 20 | return(FHDRLEN); 21 | } 22 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsmkdir.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsmkdir.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsndrply.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsndrply.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsopen.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsopen.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsread.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsread.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsrename.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsrename.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsrmdir.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsrmdir.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fstrans.c: -------------------------------------------------------------------------------- 1 | /* fstrans.c - fstrans */ 2 | 3 | #include "fs.h" 4 | 5 | /*------------------------------------------------------------------------ 6 | * fstrans - handle transaction request and prepare reply 7 | *------------------------------------------------------------------------ 8 | */ 9 | fstrans(fpacptr, flen) 10 | struct fpacket *fpacptr; 11 | int flen; 12 | { 13 | struct fphdr *fptr; 14 | int rfd; 15 | 16 | fptr = &fpacptr->fp_h; 17 | fptr->f_op = FS_ERROR; /* presently, no transactions */ 18 | return(FHDRLEN); 19 | } 20 | -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fstrans.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fstrans.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fsunlink.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fsunlink.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/fswrite.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/fswrite.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/openfile.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/openfile.o -------------------------------------------------------------------------------- /SUN/src/cmd/fs/rmfile.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/fs/rmfile.o -------------------------------------------------------------------------------- /SUN/src/cmd/odt/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O -I./h 2 | odt: odt.o 3 | cc -o odt odt.o libd.a 4 | 5 | install: odt 6 | chmod 755 odt 7 | cp odt ../../../bin 8 | -------------------------------------------------------------------------------- /SUN/src/cmd/odt/libd.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/odt/libd.a -------------------------------------------------------------------------------- /SUN/src/cmd/odt/odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/odt/odt -------------------------------------------------------------------------------- /SUN/src/cmd/odt/odt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/odt/odt.o -------------------------------------------------------------------------------- /SUN/src/cmd/pm/pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/pm/pm -------------------------------------------------------------------------------- /SUN/src/cmd/pm/pm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/pm/pm.o -------------------------------------------------------------------------------- /SUN/src/cmd/pm/setup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/pm/setup.o -------------------------------------------------------------------------------- /SUN/src/cmd/pm/sun3.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/pm/sun3.o -------------------------------------------------------------------------------- /SUN/src/cmd/pm/trace.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/cmd/pm/trace.o -------------------------------------------------------------------------------- /SUN/src/lib/Makeall: -------------------------------------------------------------------------------- 1 | : ' Makeall -- make all of src/lib for Xinu' 2 | : 3 | : 'Makeall' 4 | PATH=/bin:/usr/bin 5 | for i in * 6 | do if test -d $i 7 | then cd $i 8 | echo 9 | echo "*** Making Xinu library {Xinu-directory}/src/lib/$i" 10 | make 11 | make install 12 | cd .. 13 | fi 14 | done 15 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/abs.c: -------------------------------------------------------------------------------- 1 | abs(arg) 2 | { 3 | 4 | if(arg < 0) 5 | arg = -arg; 6 | return(arg); 7 | } 8 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/abs.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/abs.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/aldiv.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/aldiv.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/almul.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/almul.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/alrem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/alrem.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/atof.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/atof.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/atoi.c: -------------------------------------------------------------------------------- 1 | atoi(p) 2 | register char *p; 3 | { 4 | register int n; 5 | register int f; 6 | 7 | n = 0; 8 | f = 0; 9 | for(;;p++) { 10 | switch(*p) { 11 | case ' ': 12 | case '\t': 13 | continue; 14 | case '-': 15 | f++; 16 | case '+': 17 | p++; 18 | } 19 | break; 20 | } 21 | while(*p >= '0' && *p <= '9') 22 | n = n*10 + *p++ - '0'; 23 | return(f? -n: n); 24 | } 25 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/atoi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/atoi.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/atol.c: -------------------------------------------------------------------------------- 1 | long 2 | atol(p) 3 | register char *p; 4 | { 5 | long n; 6 | register int f; 7 | 8 | n = 0; 9 | f = 0; 10 | for(;;p++) { 11 | switch(*p) { 12 | case ' ': 13 | case '\t': 14 | continue; 15 | case '-': 16 | f++; 17 | case '+': 18 | p++; 19 | } 20 | break; 21 | } 22 | while(*p >= '0' && *p <= '9') 23 | n = n*10 + *p++ - '0'; 24 | return(f? -n: n); 25 | } 26 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/atol.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/atol.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/auldiv.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/auldiv.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/aulmul.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/aulmul.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/aulrem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/aulrem.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/blt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/blt.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/bzero.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Clear a block of characters to 0s 3 | */ 4 | bzero(pch, len) 5 | register char *pch; 6 | int len; 7 | { 8 | register int n; 9 | 10 | if ((n = len) <= 0) 11 | return; 12 | do 13 | *pch++ = 0; 14 | while (--n); 15 | } 16 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/bzero.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/bzero.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/clear.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/clear.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/ctype_.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/ctype_.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/doprnt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/doprnt.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/doscan.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/doscan.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/ecvt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/ecvt.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/fgets.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/fgets.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/float.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/float.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/fprintf.c: -------------------------------------------------------------------------------- 1 | /* fprintf.c - fprintf */ 2 | 3 | #define OK 1 4 | 5 | /*------------------------------------------------------------------------ 6 | * fprintf -- print a formatted message on specified device (file) 7 | *------------------------------------------------------------------------ 8 | */ 9 | fprintf(dev, fmt, args) 10 | int dev; 11 | char *fmt; 12 | { 13 | int putc(); 14 | 15 | _doprnt(fmt, &args, putc, dev); 16 | return(OK); 17 | } 18 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/fprintf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/fprintf.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/fputs.c: -------------------------------------------------------------------------------- 1 | /* fputs.c - fputs */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * fputs -- write a null-terminated string to a device (file) 5 | *------------------------------------------------------------------------ 6 | */ 7 | fputs(dev, s) 8 | register char *s; 9 | register int dev; 10 | { 11 | register r; 12 | register c; 13 | int putc(); 14 | 15 | while (c = *s++) 16 | r = putc(dev, c); 17 | return(r); 18 | } 19 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/fputs.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/fputs.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/gets.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/gets.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/index.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Return the ptr in sp at which the character c appears; 3 | * NULL if not found 4 | */ 5 | 6 | #define NULL 0 7 | 8 | char * 9 | index(sp, c) 10 | register char *sp, c; 11 | { 12 | do { 13 | if (*sp == c) 14 | return(sp); 15 | } while (*sp++); 16 | return(NULL); 17 | } 18 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/index.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/index.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/ldiv.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/ldiv.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/libxc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/libxc.a -------------------------------------------------------------------------------- /SUN/src/lib/libxc/lmul.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/lmul.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/lrem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/lrem.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/mcount.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/mcount.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/printf.c: -------------------------------------------------------------------------------- 1 | /* printf.c - printf */ 2 | 3 | #define OK 1 4 | #define CONSOLE 0 5 | 6 | /*------------------------------------------------------------------------ 7 | * printf -- write formatted output on CONSOLE 8 | *------------------------------------------------------------------------ 9 | */ 10 | printf(fmt, args) 11 | char *fmt; 12 | { 13 | int putc(); 14 | 15 | _doprnt(fmt, &args, putc, CONSOLE); 16 | return(OK); 17 | } 18 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/printf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/printf.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/puts.c: -------------------------------------------------------------------------------- 1 | /* puts.c - puts */ 2 | 3 | #define CONSOLE 0 4 | 5 | /*------------------------------------------------------------------------ 6 | * puts -- write a null-terminated string to the console 7 | *------------------------------------------------------------------------ 8 | */ 9 | puts(s) 10 | register char *s; 11 | { 12 | register c; 13 | int putc(); 14 | 15 | while (c = *s++) 16 | putc(CONSOLE,c); 17 | return(putc(CONSOLE,'\n')); 18 | } 19 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/puts.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/puts.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/qsort.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/qsort.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/rand.c: -------------------------------------------------------------------------------- 1 | static long randx = 1; 2 | 3 | srand(x) 4 | unsigned x; 5 | { 6 | randx = x; 7 | } 8 | 9 | rand() 10 | { 11 | return(((randx = randx*1103515245 + 12345)>>16) & 077777); 12 | } 13 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/rand.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/rand.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/rindex.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Return the ptr in sp at which the character c last 3 | * appears; NULL if not found 4 | */ 5 | 6 | #define NULL 0 7 | 8 | char * 9 | rindex(sp, c) 10 | register char *sp, c; 11 | { 12 | register char *r; 13 | 14 | r = NULL; 15 | do { 16 | if (*sp == c) 17 | r = sp; 18 | } while (*sp++); 19 | return(r); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/rindex.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/rindex.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/scanf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/scanf.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/setjmp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/setjmp.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/sprintf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/sprintf.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/strcat.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Concatenate s2 on the end of s1. S1's space must be large enough. 3 | * Return s1. 4 | */ 5 | 6 | char * 7 | strcat(s1, s2) 8 | register char *s1, *s2; 9 | { 10 | register char *os1; 11 | 12 | os1 = s1; 13 | while (*s1++) 14 | ; 15 | --s1; 16 | while (*s1++ = *s2++) 17 | ; 18 | return(os1); 19 | } 20 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/strcat.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/strcat.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/strcmp.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Compare strings: s1>s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1= 0 && *s1 == *s2++) 11 | if (*s1++ == '\0') 12 | return(0); 13 | return(n<0 ? 0 : *s1 - *--s2); 14 | } 15 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/strncmp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/strncmp.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/strncpy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copy s2 to s1, truncating or null-padding to always copy n bytes 3 | * return s1 4 | */ 5 | 6 | char * 7 | strncpy(s1, s2, n) 8 | register char *s1, *s2; 9 | { 10 | register i; 11 | register char *os1; 12 | 13 | os1 = s1; 14 | for (i = 0; i < n; i++) 15 | if ((*s1++ = *s2++) == '\0') { 16 | while (++i < n) 17 | *s1++ = '\0'; 18 | return(os1); 19 | } 20 | return(os1); 21 | } 22 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/strncpy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/strncpy.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/swab.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Swap bytes in 16-bit [half-]words 3 | * for going between the 11 and the interdata 4 | */ 5 | 6 | swab(pf, pt, n) 7 | register short *pf, *pt; 8 | register n; 9 | { 10 | 11 | n = n/2; 12 | while (--n >= 0) { 13 | *pt++ = (*pf << 8) + ((*pf >> 8) & 0377); 14 | pf++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /SUN/src/lib/libxc/swab.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/swab.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/uldiv.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/uldiv.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/ulmul.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/ulmul.o -------------------------------------------------------------------------------- /SUN/src/lib/libxc/ulrem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/lib/libxc/ulrem.o -------------------------------------------------------------------------------- /SUN/src/sys/con/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Make the Xinu configuration program 3 | # 4 | all: config 5 | 6 | config: lex.yy.c y.tab.c 7 | cc -o config y.tab.c -ll 8 | 9 | lex.yy.c: config.l 10 | lex config.l 11 | 12 | y.tab.c: config.y 13 | yacc config.y 14 | 15 | install: config 16 | cp config ../sys/config 17 | 18 | clean: 19 | rm -f lex.yy.c y.tab.c core 20 | -------------------------------------------------------------------------------- /SUN/src/sys/con/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/con/config -------------------------------------------------------------------------------- /SUN/src/sys/h/mark.h: -------------------------------------------------------------------------------- 1 | /* mark.h - unmarked */ 2 | 3 | #ifndef MAXMARK 4 | #define MAXMARK 20 /* maximum number of marked locations */ 5 | #endif 6 | #ifdef MEMMARK 7 | extern int *(marks[]); 8 | extern int nmarks; 9 | extern int mkmutex; 10 | typedef int MARKER[1]; /* by declaring it to be an array, the */ 11 | /* name provides an address so forgotten*/ 12 | /* &'s don't become a problem */ 13 | 14 | #define unmarked(L) (L[0]<0 || L[0]>=nmarks || marks[L[0]]!=L) 15 | #define marked(L) !unmarked(L) 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /SUN/src/sys/h/slu.h: -------------------------------------------------------------------------------- 1 | /* slu.h */ 2 | 3 | #define SVECTOR 0x0078 /* location of zilog interrupt vector (6) */ 4 | #define ZSCC_PCLK 4915200 5 | #define SERIAL0_BASE ((struct zscc_device *) 0x0FE02000) 6 | #define EVEC_LEVEL6 0x078 7 | 8 | /* 9 | * Delay units are in microseconds. 10 | */ 11 | #define DELAY(n) \ 12 | { \ 13 | extern int cpudelay; \ 14 | register int N = (((n)<<4) >> cpudelay); \ 15 | \ 16 | while (--N > 0) ; \ 17 | } 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/Mknlist: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | PATH=/bin:/usr/bin 3 | DIR=/usr/sun 4 | OUTFILE=$1 5 | shift 6 | nm -n b.out | egrep ' T | D | B ' > $OUTFILE & 7 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/README: -------------------------------------------------------------------------------- 1 | Files in this directory are not meant to be used -- they are just 2 | some of the test programs we used during development. 3 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.buserr: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * main -- force bus error 5 | *------------------------------------------------------------------------ 6 | */ 7 | main() 8 | { 9 | int *buserr; 10 | 11 | kprintf ("about to force bus error\n"); 12 | buserr = (int *) 0xfffff000; 13 | *buserr = 0; 14 | } 15 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.clk1: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * main -- current test routines 8 | *------------------------------------------------------------------------ 9 | */ 10 | main() 11 | { 12 | int prhello(); 13 | int i; 14 | 15 | prhello(); 16 | for (i=0; i<10; i++) { 17 | kprintf ("sleeping for %d seconds...\n",i); 18 | sleep (i); 19 | } 20 | } 21 | prhello() 22 | { 23 | kprintf ("Hello, world\n"); 24 | } 25 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.file: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * main -- call disk utility program 5 | *------------------------------------------------------------------------ 6 | */ 7 | main() 8 | { 9 | dutil(); 10 | } 11 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.hello: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * main -- generic test routine 8 | *------------------------------------------------------------------------ 9 | */ 10 | main() 11 | { 12 | kprintf ("Hello, world\n"); 13 | } 14 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.hello_world: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | main () 7 | { 8 | kprintf("\n\nHello world, Xinu lives\n\n"); 9 | } 10 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.io: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | #include 4 | 5 | main () 6 | { 7 | char ch; 8 | char line[128]; 9 | int i,l; 10 | 11 | printf("Starting I/O test\n"); 12 | printf("type line(s) to be echoed (you have 5 seconds): "); 13 | sleep10(50); 14 | printf("I got %d characters\n\n" , l=read(CONSOLE,line,0)); 15 | for (i=0 ; i 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * main -- current test routines 8 | *------------------------------------------------------------------------ 9 | */ 10 | main() 11 | { 12 | int i; 13 | 14 | kprintf("Testing integer overflow trap\n"); 15 | for (i=0x7ffffffc; i != 0x80000000; i++) 16 | kprintf ("trying %d\n", i); 17 | kprintf("No overflow trap!!!!\n"); 18 | } 19 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.panic: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * main -- current test routines 8 | *------------------------------------------------------------------------ 9 | */ 10 | main() 11 | { 12 | panic("Testing panic call\n"); 13 | } 14 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.panic0: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * main -- current test routines 8 | *------------------------------------------------------------------------ 9 | */ 10 | main() 11 | { 12 | kprintf ("about to try jump to location 0\n"); 13 | asm ("jmp lowcore"); 14 | } 15 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.printf: -------------------------------------------------------------------------------- 1 | /* test.c - main */ 2 | 3 | /*------------------------------------------------------------------------ 4 | * main -- Do simplest possible test for Xinu 5 | *------------------------------------------------------------------------ 6 | */ 7 | main() 8 | { 9 | printf("Hello world.\n"); 10 | printf("That's all folks.\n\n"); 11 | } 12 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.register.int: -------------------------------------------------------------------------------- 1 | 2 | main() 3 | { 4 | register int i = 10; 5 | register int j = 20; 6 | register int k = 30; 7 | 8 | proc2(); 9 | 10 | kprintf("i is %2d, j is %2d, k is %2d\n",i,j,k); 11 | 12 | sleep(1); 13 | 14 | kprintf("i is %2d, j is %2d, k is %2d\n",i,j,k); 15 | 16 | sleep(1); 17 | ret_mon(); 18 | } 19 | 20 | proc2() 21 | { 22 | register int x; 23 | 24 | kprintf("x is %d\n",x); 25 | x = 100; 26 | kprintf("x is %d\n",x); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/TEST/test.c.traps: -------------------------------------------------------------------------------- 1 | long t; 2 | 3 | main() 4 | { 5 | 6 | kprintf("\n\nHello world, Xinu lives\n\n"); 7 | 8 | 1/(t=0); 9 | 10 | while(1==1) { 11 | sleep(1); 12 | kprintf("Click\n"); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/a.out -------------------------------------------------------------------------------- /SUN/src/sys/sys/access.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/access.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/arp_in.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/arp_in.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/arpfind.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/arpfind.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/arpinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/arpinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/autostart.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/autostart.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/b.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/b.out -------------------------------------------------------------------------------- /SUN/src/sys/sys/blkcopy.c: -------------------------------------------------------------------------------- 1 | /* blkcopy.c - blkcopy */ 2 | 3 | #include 4 | 5 | /*------------------------------------------------------------------------ 6 | * blkcopy - copy a block of memory form one location to another 7 | *------------------------------------------------------------------------ 8 | */ 9 | blkcopy(to, from, nbytes) 10 | register char *to; 11 | register char *from; 12 | register int nbytes; 13 | { 14 | while (--nbytes >= 0) 15 | *to++ = *from++; 16 | return(OK); 17 | } 18 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/blkcopy.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/blkcopy.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/blkequ.c: -------------------------------------------------------------------------------- 1 | /* blkequ.c - blkequ */ 2 | 3 | #include 4 | 5 | /*------------------------------------------------------------------------ 6 | * blkequ - return TRUE iff one block of memory is equal to another 7 | *------------------------------------------------------------------------ 8 | */ 9 | blkequ(first, second, nbytes) 10 | register char *first; 11 | register char *second; 12 | register int nbytes; 13 | { 14 | while (--nbytes >= 0) 15 | if (*first++ != *second++) 16 | return(FALSE); 17 | return(TRUE); 18 | } 19 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/blkequ.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/blkequ.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/chprio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/chprio.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ckmode.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ckmode.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/cksum.c: -------------------------------------------------------------------------------- 1 | /* cksum.c -- cksum */ 2 | 3 | short cksum(buf, nwords) 4 | register unsigned short *buf; 5 | int nwords; 6 | { 7 | register unsigned long sum; 8 | register int i; 9 | 10 | sum = 0; 11 | for (i = nwords; i > 0; --i) 12 | sum += *buf++; 13 | 14 | /* from /etc/ping */ 15 | /* add in the carry from high 2 bytes */ 16 | sum = (sum >> 16) + (sum & 0xffff); 17 | /* just in case there was another carry */ 18 | sum += (sum >> 16); 19 | return(~sum); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/cksum.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/cksum.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/clkinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/clkinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/clkint.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/clkint.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/close.c: -------------------------------------------------------------------------------- 1 | /* close.c - close */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * close - close a device 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL close(descrp) 12 | int descrp; 13 | { 14 | struct devsw *devptr; 15 | 16 | if (isbaddev(descrp) ) 17 | return(SYSERR); 18 | devptr = &devtab[descrp]; 19 | return( (*devptr->dvclose)(devptr)); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/close.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/close.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/compare: -------------------------------------------------------------------------------- 1 | for FILE in `/bin/ls *.c` 2 | do 3 | echo ======================== $FILE ========================= 4 | diff /u5/xinu/xinu7/src/sys/sys/$FILE $FILE 5 | done 6 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/concntl.c: -------------------------------------------------------------------------------- 1 | /* concntl.c - concntl */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * concntl - control a tty device by setting modes 8 | *------------------------------------------------------------------------ 9 | */ 10 | concntl(devptr, func, addr) 11 | struct devsw *devptr; 12 | int func; 13 | char *addr; 14 | { 15 | return(SYSERR); 16 | } 17 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/concntl.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/concntl.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/conf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/conf.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/config -------------------------------------------------------------------------------- /SUN/src/sys/sys/coniin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/coniin.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/coninit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/coninit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/coninput.o: -------------------------------------------------------------------------------- 1 | NVpN^NuNVpN^Nu  2 | _congetc_conread -------------------------------------------------------------------------------- /SUN/src/sys/sys/conint.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/conint.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/conoutput.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/conoutput.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/control.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/control.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/create.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/create.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ctxsw.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ctxsw.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgalloc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgalloc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgclose.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgclose.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgcntl.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgcntl.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dginit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dginit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgmcntl.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgmcntl.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgmopen.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgmopen.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgparse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgparse.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgread.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgread.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dgwrite.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dgwrite.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dma.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dma.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dot2ip.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/dot2ip.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/dotrace.c: -------------------------------------------------------------------------------- 1 | /* dotrace.c - dotrace */ 2 | 3 | #include 4 | 5 | int dotrace(procname, argv, argc) 6 | char *procname; 7 | int *argv; 8 | int argc; 9 | { 10 | int i; 11 | 12 | kprintf("%s(", procname); 13 | for (i=0; i 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * getc - get one character from a device 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL getc(descrp) 12 | int descrp; 13 | { 14 | struct devsw *devptr; 15 | 16 | if (isbaddev(descrp) ) 17 | return(SYSERR); 18 | devptr = &devtab[descrp]; 19 | return( (*devptr->dvgetc)(devptr) ); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/getc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getdmem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getdmem.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getidprom.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getidprom.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getitem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getitem.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getmem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getmem.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getname.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getname.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getnet.c: -------------------------------------------------------------------------------- 1 | /* getnet.c - getnet */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * getnet - obtain the network portion of this system's IP address 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL getnet(address) 12 | IPaddr address; 13 | { 14 | if (!Net.mavalid && getaddr(address) == SYSERR) 15 | return(SYSERR); 16 | blkcopy(address, Net.mynet, IPLEN); 17 | return(OK); 18 | } 19 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/getnet.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getnet.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getpath.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getpath.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getpid.c: -------------------------------------------------------------------------------- 1 | /* getpid.c - getpid */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * getpid -- get the process id of currently executing process 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL getpid() 12 | { 13 | return(currpid); 14 | } 15 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/getpid.o: -------------------------------------------------------------------------------- 1 | NV 9N^NuP _currpid_getpid -------------------------------------------------------------------------------- /SUN/src/sys/sys/getprio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getprio.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getstk.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getstk.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/gettime.c: -------------------------------------------------------------------------------- 1 | /* gettime.c - gettime */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * gettime - get local time in seconds past Jan 1, 1970 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL gettime(timvar) 12 | long *timvar; 13 | { 14 | long now; 15 | 16 | if (getutim(&now) == SYSERR) 17 | return(SYSERR); 18 | *timvar = ut2ltim(now); /* adjust for timezone */ 19 | return(OK); 20 | } 21 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/gettime.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/gettime.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/getutim.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/getutim.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/icmp_in.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/icmp_in.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/init.c: -------------------------------------------------------------------------------- 1 | /* init.c - init */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * init - initialize a device 9 | *------------------------------------------------------------------------ 10 | */ 11 | init(descrp) 12 | int descrp; 13 | { 14 | struct devsw *devptr; 15 | 16 | if (isbaddev(descrp) ) { 17 | return(SYSERR); 18 | } 19 | devptr = &devtab[descrp]; 20 | return( (*devptr->dvinit)(devptr) ); 21 | } 22 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/init.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/init.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/initialize.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/initialize.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/insert.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/insert.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/insertd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/insertd.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/intr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/intr.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ioerr.c: -------------------------------------------------------------------------------- 1 | /* ioerr.c - ioerr */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * ioerr - return an error (used for "error" entries in devtab) 8 | *------------------------------------------------------------------------ 9 | */ 10 | ioerr() 11 | { 12 | return(SYSERR); 13 | } 14 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/ioerr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ioerr.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ionull.c: -------------------------------------------------------------------------------- 1 | /* ionull.c - ionull */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * ionull - do nothing (used for "don't care" entries in devtab) 8 | *------------------------------------------------------------------------ 9 | */ 10 | ionull() 11 | { 12 | return(OK); 13 | } 14 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/ionull.o: -------------------------------------------------------------------------------- 1 |  NVpN^Nu _ionull -------------------------------------------------------------------------------- /SUN/src/sys/sys/ip2name.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ip2name.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ip_in.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ip_in.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ipsend.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ipsend.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/kill.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/kill.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/kprintf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/kprintf.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/libx.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/libx.a -------------------------------------------------------------------------------- /SUN/src/sys/sys/mark.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/mark.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/mkarp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/mkarp.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/mkdpool.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/mkdpool.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/mkpool.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/mkpool.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/mmu.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/mmu.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/mount.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/mount.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/naminit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/naminit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/nammap.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/nammap.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/namopen.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/namopen.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/namrepl.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/namrepl.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/netdump.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/netdump.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/netin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/netin.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/netinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/netinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/netnum.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/netnum.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/netout.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/netout.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/newqueue.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/newqueue.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/nqalloc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/nqalloc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/open.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/open.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/panic.c: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------ 2 | * panic -- panic and abort XINU 3 | *------------------------------------------------------------------------ 4 | */ 5 | 6 | #include 7 | 8 | panic (msg) 9 | char *msg; 10 | { 11 | STATWORD ps; 12 | disable(ps); 13 | kprintf("Panic: %s\n", msg); 14 | ret_mon(); 15 | restore(ps); 16 | } 17 | 18 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/panic.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/panic.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/pcount.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/pcount.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/pcreate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/pcreate.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/pdelete.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/pdelete.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/pinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/pinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/pm.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/pm.out -------------------------------------------------------------------------------- /SUN/src/sys/sys/poolinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/poolinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/preceive.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/preceive.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/preset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/preset.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/printq.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | printq(head) 4 | int head; 5 | { 6 | int i, tail; 7 | 8 | tail = head + 1; 9 | printf("queue contents:\n\n"); 10 | for(i=q[head].qnext; i != tail; i=q[i].qnext) 11 | kprintf("key: %d next: %d prev: %d\n",q[i].qkey,q[i].qnext,q[i].qprev); 12 | } 13 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/printq.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/printq.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/psend.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/psend.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ptclear.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ptclear.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/putc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/putc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/queue.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/queue.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rarp_in.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rarp_in.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/read.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/read.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ready.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ready.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/receive.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/receive.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/recvclr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/recvclr.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/recvtim.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/recvtim.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/remove.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/remove.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rename.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rename.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/resched.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/resched.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/resume.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/resume.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ret_mon.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ret_mon.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfalloc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfalloc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfclose.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfclose.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfcntl.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfcntl.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfdump.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfdump.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfgetc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfgetc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfio.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfmkpac.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfmkpac.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfopen.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfopen.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfputc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfputc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfread.c: -------------------------------------------------------------------------------- 1 | /* rfread.c - rfread */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * rfread -- read one or more bytes from a remote file 9 | *------------------------------------------------------------------------ 10 | */ 11 | rfread(devptr, buff, len) 12 | struct devsw *devptr; 13 | char *buff; 14 | int len; 15 | { 16 | return( rfio(devptr, FS_READ, buff, min(len,RDATLEN) ) ); 17 | } 18 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfread.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfread.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfseek.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfseek.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfsend.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfsend.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rfwrite.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rfwrite.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/route.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/route.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rwho.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rwho.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rwhod.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rwhod.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/rwhoind.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/rwhoind.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/scount.c: -------------------------------------------------------------------------------- 1 | /* scount.c - scount */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * scount -- return a semaphore count 9 | *------------------------------------------------------------------------ 10 | */ 11 | SYSCALL scount(sem) 12 | int sem; 13 | { 14 | extern struct sentry semaph[]; 15 | 16 | if (isbadsem(sem) || semaph[sem].sstate==SFREE) 17 | return(SYSERR); 18 | return(semaph[sem].semcnt); 19 | } 20 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/scount.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/scount.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/screate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/screate.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sdelete.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sdelete.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/seek.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/seek.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/send.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/send.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sendf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sendf.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/set_evec.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/set_evec.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/setdev.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/setdev.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/setnok.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/setnok.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sh.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sh.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/Dosizes: -------------------------------------------------------------------------------- 1 | PATH=/bin:/usr/bin:/usr/ucb 2 | trap 'rm -rf ,,size[12s] ; exit' 1 2 3 15 3 | wc *.h *.c > ,,ssizes 4 | echo ' Sorted By Name' > ,,ssize1 5 | echo ' ------ -- ----' >> ,,ssize1 6 | cat ,,ssizes >> ,,ssize1 7 | echo ' Sorted By Size' > ,,ssize2 8 | echo ' ------ -- ----' >> ,,ssize2 9 | sort +0n ,,ssizes >> ,,ssize2 10 | pr -2 -t -m ,,ssize[12] | sed '/^$$/d' > ,ssizes 11 | rm -rf ,,ssize[12s] 12 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/Doxref: -------------------------------------------------------------------------------- 1 | PATH=/bin:/usr/bin 2 | sed 's/[?^$$]//g' < ,tags \ 3 | | awk '{printf("%-11s %-13s %s %s %s %s %s%s\n", \ 4 | $1,$2,$3,$4,$5,$6,$7,$8)}' | 5 | sed 's/\^//;s/\$//;s/\///g;s/ / /g;s/)[^)]*$/)/;s/\.\.h\([^ ]*\) /\1 /; 6 | s/#\(define [^(]*([^)]*)\).*/\1/;s/ //;s/, /,/g' > ,,xref 7 | mv ,,xref ,xref 8 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/Flint: -------------------------------------------------------------------------------- 1 | : 'Flint -- filter lint output for emacs ^X^N' 2 | : 3 | PATH=/bin:/usr/bin 4 | awk ' {if( $1 ~ /[^ ]+\([0-9]+\)/ ) print $0; else \ 5 | for (i=2;i<=NF;i++) if( $i~/[^ ]+([0-9]+)/ ) print $i":"$0} ' | \ 6 | sed 's/^[^(]*/"&", line /;s/(\([0-9][0-9]*\))/\1/' | sort 7 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/addarg.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/addarg.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/ascdate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/ascdate.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/cmd.h: -------------------------------------------------------------------------------- 1 | ../../h/cmd.h -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/install: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/install -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/lexan.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/lexan.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/libS.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/libS.a -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/login.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/login.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/sh.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/sh.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/shell.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/shell.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/b.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/b.out -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/main.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/mesg.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/mesg.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/mover.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/mover.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/plotter.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "game.h" 6 | 7 | 8 | int src; 9 | int nargs; 10 | int x; 11 | int y; 12 | int chint; 13 | 14 | plotter() 15 | { 16 | int i; 17 | 18 | while (TRUE) { 19 | nargs = 3; 20 | newrecv(&src, &nargs, &x, &y, &chint); 21 | plotchar(x,y,(char) chint); 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/plotter.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/plotter.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/pm.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/pm.out -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/referee.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/referee.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/robot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/robot.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/targeter.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/targeter.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/test.c: -------------------------------------------------------------------------------- 1 | /* test.c -- for playing worm stadalone */ 2 | /* simple Xinu worm game by Shawn Ostermann */ 3 | 4 | #include 5 | #include 6 | 7 | 8 | main() 9 | { 10 | while (TRUE) { 11 | playworm(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/timedgetchar.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/timedgetchar.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/utils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/utils.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/worm/worm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/worm/worm.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_bpool.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_bpool.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_cat.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_cat.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_close.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_close.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_conf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_conf.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_cp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_cp.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_create.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_create.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_date.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_date.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_devs.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_devs.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_dg.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_dg.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_echo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_echo.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_exit.c: -------------------------------------------------------------------------------- 1 | /* x_exit.c - x_exit */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /*------------------------------------------------------------------------ 8 | * x_exit - (builtin command exit) exit from the shell 9 | *------------------------------------------------------------------------ 10 | */ 11 | BUILTIN x_exit(stdin, stdout, stderr, nargs, args) 12 | int stdin, stdout, stderr, nargs; 13 | char *args[]; 14 | { 15 | return(SHEXIT); 16 | } 17 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_exit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_exit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_help.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_help.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_kill.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_kill.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_mem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_mem.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_mount.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_mount.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_mv.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_mv.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_net.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_net.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_ps.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_ps.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_reboot.c: -------------------------------------------------------------------------------- 1 | /* x_reboot.c - x_reboot */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * x_reboot - (builtin command reboot) restart the system from scratch 8 | *------------------------------------------------------------------------ 9 | */ 10 | BUILTIN x_reboot(stdin, stdout, stderr, nargs, args) 11 | int stdin, stdout, stderr, nargs; 12 | char *args[]; 13 | { 14 | ret_mon(); /* warning! This terminates everything. */ 15 | } 16 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_reboot.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_reboot.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_rf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_rf.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_rls.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_rls.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_rm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_rm.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_routes.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_routes.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_sleep.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_sleep.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_snap.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_snap.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_unmou.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_unmou.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_uptime.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_uptime.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/shell/x_who.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/shell/x_who.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/signal.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/signal.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/signaln.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/signaln.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sleep.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sleep.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sleep10.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sleep10.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sndrarp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sndrarp.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/sreset.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/sreset.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ssclock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ssclock.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/startup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/startup.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/suspend.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/suspend.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/test.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/trap.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/trap.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/trap.s: -------------------------------------------------------------------------------- 1 | | 2 | | trap.s -- handle Xinu traps elegantly so we can return to the monitor 3 | .globl _trapX 4 | 5 | 6 | .text 7 | _trapX: 8 | jbsr _doevec 9 | rte 10 | 11 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttycntl.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttycntl.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttygetc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttygetc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyiin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyiin.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyinit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyinit.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyint.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyint.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyoin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyoin.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyputc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyputc.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyread.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyread.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttyutils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttyutils.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/ttywrite.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/ttywrite.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/udpecho.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/udpecho.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/udpnxtp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/udpnxtp.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/udpsend.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/udpsend.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/unmount.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/unmount.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/unsleep.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/unsleep.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/userret.c: -------------------------------------------------------------------------------- 1 | /* userret.c - userret */ 2 | 3 | #include 4 | #include 5 | 6 | /*------------------------------------------------------------------------ 7 | * userret -- entered when a process exits by return 8 | *------------------------------------------------------------------------ 9 | */ 10 | userret() 11 | { 12 | kill( getpid() ); 13 | } 14 | -------------------------------------------------------------------------------- /SUN/src/sys/sys/userret.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/userret.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/wait.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/wait.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/wakeup.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/wakeup.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/write.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/write.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/xdone.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/xdone.o -------------------------------------------------------------------------------- /SUN/src/sys/sys/xinu.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonjh/xinu68k/178051d06b0571b75b7a4941629719f123f7cc38/SUN/src/sys/sys/xinu.o -------------------------------------------------------------------------------- /SUN/storage/README: -------------------------------------------------------------------------------- 1 | This is the Xinu working directory. Sample output from commands is 2 | found in subdirectory "output". 3 | 4 | --DEC 5 | -------------------------------------------------------------------------------- /SUN/storage/lf100: -------------------------------------------------------------------------------- 1 | 000000000 2 | 000000001 3 | 000000002 4 | 000000003 5 | 000000004 6 | 000000005 7 | 000000006 8 | 000000007 9 | 000000008 10 | 000000009 11 | -------------------------------------------------------------------------------- /SUN/storage/output/date: -------------------------------------------------------------------------------- 1 | Mar 3 1988 9:59:34 2 | -------------------------------------------------------------------------------- /SUN/storage/output/dg: -------------------------------------------------------------------------------- 1 | Dev= 3: lport= 513, fport= 0, mode=002, xport=18 addr=128.10.2.8 2 | Dev= 4: lport= 7, fport= 0, mode=001, xport=17 addr=0.0.0.0 3 | Dev= 5: lport=2052, fport=2001, mode=042, xport=16 addr=128.10.2.88 4 | -------------------------------------------------------------------------------- /SUN/storage/output/echo: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /SUN/storage/output/mem: -------------------------------------------------------------------------------- 1 | Memory: 4177920 bytes real memory, 69960 text, 7276 data, 19216 bss 2 | initially: 4081468 avail 3 | presently: 3999324 avail, 24764 stack, 57380 heap 4 | free list: 5 | block at 444344, length 3999324 (0x3d065c) 6 | -------------------------------------------------------------------------------- /SUN/storage/output/netstat: -------------------------------------------------------------------------------- 1 | bpool=0, mutex/cnt=26/1, nxt prt=2073, addr valid 2 | Packets: recvd=18268, tossed=4343 (0 for overrun) 3 | (0 missed: no buffer space) (0 LANCE errors) 4 | 0. uport= 513, pid= -1, xprt=18, size=-1 5 | 1. uport= 7, pid= -1, xprt=17, size=-1 6 | 2. uport=2052, pid= -1, xprt=16, size= 0 7 | -------------------------------------------------------------------------------- /SUN/storage/output/rf: -------------------------------------------------------------------------------- 1 | Remote files: server on dev=5, server mutex=41 2 | 8. name=/usr/xinu7/storage/output/mem, pos= 203, mode=002, sem=42 3 | 9. name=/usr/xinu7/storage/output/ps, pos= 618, mode=002, sem=40 4 | 10. name=/usr/xinu7/storage/output/rf, pos= 186, mode=002, sem=39 5 | -------------------------------------------------------------------------------- /SUN/storage/output/who: -------------------------------------------------------------------------------- 1 | persimmon!Knuth Console : Mar 3 1988 1:03:48 2 | --------------------------------------------------------------------------------