├── COPYRIGHT ├── README.md ├── bin ├── 1 ├── ac ├── adb ├── ar ├── arcv ├── as ├── at ├── awk ├── basename ├── bc ├── cal ├── calendar ├── cat ├── cb ├── cc ├── checkeq ├── chgrp ├── chmod ├── chown ├── clri ├── cmp ├── col ├── comm ├── cp ├── crypt ├── csh ├── cu ├── date ├── dc ├── dcheck ├── dd ├── deroff ├── df ├── diff ├── diff3 ├── du ├── dump ├── dumpdir ├── echo ├── ed ├── egrep ├── enroll ├── eqn ├── expr ├── false ├── fgrep ├── file ├── find ├── graph ├── grep ├── icheck ├── iostat ├── join ├── kill ├── ld ├── learn ├── lex ├── lint ├── ln ├── login ├── look ├── lookbib ├── lorder ├── ls ├── m4 ├── mail ├── make ├── man ├── mesg ├── mkdir ├── mv ├── ncheck ├── neqn ├── newgrp ├── nice ├── nm ├── nohup ├── nroff ├── od ├── osh ├── passwd ├── plot ├── pr ├── prep ├── prof ├── ps ├── pstat ├── ptx ├── pwd ├── quot ├── random ├── ranlib ├── ratfor ├── refer ├── restor ├── rev ├── rm ├── rmdir ├── sa ├── sed ├── sh ├── size ├── sleep ├── sort ├── sp ├── spell ├── spline ├── split ├── strip ├── struct ├── stty ├── su ├── sum ├── sync ├── t300 ├── t300s ├── t450 ├── tabs ├── tail ├── tar ├── tbl ├── tc ├── tee ├── tek ├── test ├── time ├── tk ├── touch ├── tp ├── tr ├── troff ├── true ├── tsort ├── tty ├── uniq ├── units ├── uucp ├── uulog ├── uux ├── vplot ├── vpr ├── wc ├── who ├── write ├── xget ├── xsend ├── yacc └── yes ├── boot ├── dev ├── MKSTDDEV └── makefile ├── etc ├── accton ├── cron ├── ddate ├── dmesg ├── fsck ├── getty ├── group ├── init ├── mkfs ├── mknod ├── mount ├── passwd ├── rc ├── termcap ├── ttys ├── umount ├── update └── wall ├── hd0unix ├── hd1unix ├── lib ├── cc │ ├── em_cemcom │ ├── em_opt │ └── i386cg ├── cpp ├── crt0.o ├── libc.a ├── libem.a ├── libln.a ├── libm.a ├── libplot.a ├── libt300.a ├── libt300s.a ├── libt4014.a ├── libt450.a └── mcrt0.o ├── md0unix └── usr ├── bin ├── buildall ├── cdcat ├── chroot ├── compress ├── fatdir ├── fatget ├── fatput ├── ptdisk ├── uncompress └── zcat ├── boot ├── makefile ├── mbr ├── mbr.s ├── pcuboot └── pcuboot.s ├── contrib ├── README ├── compress │ ├── README │ ├── compress.1 │ ├── compress.c │ └── makefile ├── new │ ├── cdcat │ │ ├── cdcat.1 │ │ ├── cdcat.c │ │ └── makefile │ ├── chroot │ │ ├── chroot.1 │ │ ├── chroot.c │ │ └── makefile │ ├── fatfs │ │ ├── fatfs.1 │ │ ├── fatfs.c │ │ ├── makefile │ │ └── mem.c │ ├── makeall │ └── ptdisk │ │ ├── makefile │ │ ├── ptdisk.1 │ │ └── ptdisk.c └── ucb │ ├── csh │ ├── alloc.c │ ├── csh.1 │ ├── doc │ │ └── csh │ ├── makefile │ ├── printf.c │ ├── sh.c │ ├── sh.dol.c │ ├── sh.err.c │ ├── sh.exec.c │ ├── sh.exp.c │ ├── sh.func.c │ ├── sh.glob.c │ ├── sh.h │ ├── sh.hist.c │ ├── sh.init.c │ ├── sh.lex.c │ ├── sh.local.h │ ├── sh.misc.c │ ├── sh.parse.c │ ├── sh.print.c │ ├── sh.sem.c │ ├── sh.set.c │ └── sh.wait.c │ ├── ex │ ├── README.ov │ ├── READ_ME │ ├── bcopy.c │ ├── doc │ │ ├── edit.1 │ │ ├── edit.tut │ │ ├── edit.vindex │ │ ├── ex.1 │ │ ├── ex.rm │ │ ├── ex.summary │ │ ├── ex1.1-2.0 │ │ ├── ex2.0-3.1 │ │ ├── ex3.1-3.5 │ │ ├── makefile │ │ ├── termcap.5 │ │ ├── termlib.3 │ │ ├── vi.1 │ │ ├── vi.apwh.ms │ │ ├── vi.chars │ │ ├── vi.in │ │ └── vi.summary │ ├── ex.1 │ ├── ex.c │ ├── ex.h │ ├── ex_addr.c │ ├── ex_argv.h │ ├── ex_cmds.c │ ├── ex_cmds2.c │ ├── ex_cmdsub.c │ ├── ex_data.c │ ├── ex_get.c │ ├── ex_io.c │ ├── ex_put.c │ ├── ex_re.c │ ├── ex_re.h │ ├── ex_set.c │ ├── ex_subr.c │ ├── ex_temp.c │ ├── ex_temp.h │ ├── ex_tty.c │ ├── ex_tty.h │ ├── ex_tune.h │ ├── ex_unix.c │ ├── ex_v.c │ ├── ex_vadj.c │ ├── ex_vars.h │ ├── ex_vget.c │ ├── ex_vis.h │ ├── ex_vmain.c │ ├── ex_voper.c │ ├── ex_vops.c │ ├── ex_vops2.c │ ├── ex_vops3.c │ ├── ex_vput.c │ ├── ex_vwind.c │ ├── expreserve.c │ ├── exrecover.c │ ├── makefile │ ├── printf.c │ └── vi.1 │ ├── factor │ ├── factor.c │ └── makefile │ ├── include │ └── local │ │ └── uparm.h │ ├── libcurses │ ├── addch.c │ ├── addstr.c │ ├── box.c │ ├── clear.c │ ├── clrtobot.c │ ├── clrtoeol.c │ ├── cr_ex.h │ ├── cr_put.c │ ├── cr_tty.c │ ├── curses.3 │ ├── curses.c │ ├── curses.ext │ ├── curses.h │ ├── delch.c │ ├── deleteln.c │ ├── delwin.c │ ├── doc │ │ ├── Makefile │ │ ├── Master │ │ ├── Spellit │ │ ├── appen.A │ │ ├── appen.A.tbl │ │ ├── appen.B │ │ ├── appen.C │ │ ├── c_macros │ │ ├── curses.3 │ │ ├── disclaim │ │ ├── doc.I │ │ ├── doc.II │ │ ├── doc.III │ │ ├── doc.IV │ │ ├── intro.0 │ │ ├── intro.1 │ │ ├── intro.2 │ │ ├── intro.2.tbl │ │ ├── intro.3 │ │ ├── intro.4 │ │ ├── intro.5 │ │ ├── life.c │ │ ├── life.gr │ │ ├── macros │ │ ├── macros.coms │ │ ├── regexp.c │ │ ├── twinkle1.c │ │ ├── twinkle1.gr │ │ ├── twinkle2.c │ │ ├── twinkle2.gr │ │ ├── vfontedpr.c │ │ ├── vgrindefs.c │ │ ├── win_st.c │ │ └── win_st.gr │ ├── endwin.c │ ├── erase.c │ ├── getch.c │ ├── getstr.c │ ├── initscr.c │ ├── insch.c │ ├── insertln.c │ ├── llib-lcurses │ ├── longname.c │ ├── makefile │ ├── move.c │ ├── mvprintw.c │ ├── mvscanw.c │ ├── mvwin.c │ ├── newwin.c │ ├── overlay.c │ ├── overwrite.c │ ├── printw.c │ ├── refresh.c │ ├── scanw.c │ ├── scroll.c │ ├── standout.c │ ├── tags │ ├── touchwin.c │ ├── tstp.c │ ├── unctrl.c │ └── unctrl.h │ ├── makeall │ ├── more │ ├── makefile │ ├── more.1 │ ├── more.c │ ├── more.help │ └── regex.c │ ├── primes │ ├── makefile │ └── primes.c │ ├── printenv │ ├── makefile │ ├── printenv.1 │ └── printenv.c │ ├── termcap │ ├── READ_ME │ ├── makefile │ ├── reorder │ ├── tabset │ │ ├── beehive │ │ ├── diablo │ │ ├── std │ │ ├── teleray │ │ ├── vt100 │ │ └── xerox1720 │ ├── talk │ │ ├── README │ │ ├── clear.c │ │ ├── page.c │ │ ├── termcap.talk │ │ ├── tgoto │ │ ├── tl1.c │ │ └── tl2.c │ ├── termcap.5 │ └── termcap.src │ ├── termlib │ ├── makefile │ ├── tc1.c │ ├── tc2.c │ ├── tc3.c │ ├── termcap.c │ ├── termlib.3 │ ├── tgoto.c │ └── tputs.c │ └── whereis │ ├── makefile │ ├── whereis.1 │ └── whereis.c ├── dict ├── hlista ├── hlistb ├── hstop ├── papers │ ├── Ind.ia │ ├── Ind.ib │ ├── Ind.ic │ ├── Rv7man │ └── runinv ├── spellhist └── words ├── doc ├── README ├── adb │ ├── tut │ └── tut1 ├── adv.ed │ ├── ae.mac │ ├── ae0 │ ├── ae1 │ ├── ae2 │ ├── ae3 │ ├── ae4 │ ├── ae5 │ ├── ae6 │ ├── ae7 │ └── ae9 ├── assembler ├── awk ├── bc ├── beginners │ ├── u.mac │ ├── u0 │ ├── u1 │ ├── u2 │ ├── u3 │ ├── u4 │ └── u5 ├── cacm │ ├── p.mac │ ├── p1 │ ├── p2 │ ├── p3 │ ├── p4 │ ├── p5 │ └── p6 ├── cman ├── csh ├── ctour │ ├── cdoc0 │ ├── cdoc1 │ ├── cdoc2 │ ├── cdoc3 │ └── cdoc4 ├── curses │ ├── Makefile │ ├── Master │ ├── Spellit │ ├── appen.A │ ├── appen.A.tbl │ ├── appen.B │ ├── appen.C │ ├── c_macros │ ├── curses.3 │ ├── disclaim │ ├── doc.I │ ├── doc.II │ ├── doc.III │ ├── doc.IV │ ├── intro.0 │ ├── intro.1 │ ├── intro.2 │ ├── intro.2.tbl │ ├── intro.3 │ ├── intro.4 │ ├── intro.5 │ ├── life.c │ ├── life.gr │ ├── macros │ ├── macros.coms │ ├── regexp.c │ ├── twinkle1.c │ ├── twinkle1.gr │ ├── twinkle2.c │ ├── twinkle2.gr │ ├── vfontedpr.c │ ├── vgrindefs.c │ ├── win_st.c │ └── win_st.gr ├── dc ├── edtut │ ├── e.mac │ ├── e0 │ ├── e1 │ ├── e2 │ ├── e3 │ ├── e4 │ ├── e5 │ ├── e6 │ └── e7 ├── eqn │ ├── e.mac │ ├── e0 │ ├── e1 │ ├── e2 │ ├── e3 │ ├── e4 │ ├── e5 │ ├── e6 │ ├── e7 │ ├── g.mac │ ├── g0 │ ├── g1 │ ├── g2 │ ├── g3 │ ├── g4 │ └── g5 ├── ex │ ├── edit.1 │ ├── edit.tut │ ├── edit.vindex │ ├── ex.1 │ ├── ex.rm │ ├── ex.summary │ ├── ex1.1-2.0 │ ├── ex2.0-3.1 │ ├── ex3.1-3.5 │ ├── makefile │ ├── termcap.5 │ ├── termlib.3 │ ├── vi.1 │ ├── vi.apwh.ms │ ├── vi.chars │ ├── vi.in │ └── vi.summary ├── f77 ├── implement ├── index ├── iosys ├── learn │ ├── p0 │ ├── p2 │ ├── p3 │ ├── p4 │ ├── p5 │ ├── p6 │ └── p7 ├── lex ├── lint ├── m4 ├── make ├── msmacros │ ├── ms │ └── refcard ├── password ├── porttour │ ├── porttour1 │ └── porttour2 ├── ratfor │ ├── m.mac │ ├── m0 │ ├── m1 │ ├── m2 │ ├── m3 │ ├── m4 │ ├── m5 │ ├── m9 │ └── m99 ├── refer │ ├── pubuse │ └── refer ├── regen ├── run ├── scope ├── security ├── sed ├── setup ├── shell │ ├── t.mac │ ├── t1 │ ├── t2 │ ├── t3 │ └── t4 ├── summary │ ├── hel.mac │ ├── hel0 │ ├── hel1 │ ├── hel2 │ ├── hel3 │ ├── hel4 │ ├── hel5 │ └── hel6 ├── tbl ├── troff │ ├── add │ ├── m.mac │ ├── m0 │ ├── m0a │ ├── m1 │ ├── m2 │ ├── m3 │ ├── m4 │ ├── m5 │ ├── table1 │ ├── table2 │ └── tprint ├── trofftut │ ├── tt.mac │ ├── tt00 │ ├── tt01 │ ├── tt02 │ ├── tt03 │ ├── tt04 │ ├── tt05 │ ├── tt06 │ ├── tt07 │ ├── tt08 │ ├── tt09 │ ├── tt10 │ ├── tt11 │ ├── tt12 │ ├── tt13 │ ├── tt14 │ ├── ttack │ ├── ttcharset │ └── ttindex ├── uprog │ ├── cwscript │ ├── p.mac │ ├── p0 │ ├── p1 │ ├── p2 │ ├── p3 │ ├── p4 │ ├── p5 │ ├── p6 │ ├── p8 │ └── p9 ├── uucp │ ├── implement │ └── network └── yacc │ ├── ss.. │ ├── ss0 │ ├── ss1 │ ├── ss2 │ ├── ss3 │ ├── ss4 │ ├── ss5 │ ├── ss6 │ ├── ss7 │ ├── ss8 │ ├── ss9 │ ├── ssA │ ├── ssB │ ├── ssa │ ├── ssb │ ├── ssc │ └── ssd ├── games ├── arithmetic ├── backgammon ├── fish ├── fortune ├── hangman ├── lib │ └── fortunes ├── quiz ├── quiz.k │ ├── africa │ ├── america │ ├── areas │ ├── arith │ ├── asia │ ├── babies │ ├── bard │ ├── chinese │ ├── collectives │ ├── ed │ ├── elements │ ├── europe │ ├── greek │ ├── inca │ ├── index │ ├── latin │ ├── locomotive │ ├── midearth │ ├── morse │ ├── murders │ ├── poetry │ ├── posneg │ ├── pres │ ├── province │ ├── seq-easy │ ├── seq-hard │ ├── sexes │ ├── sov │ ├── spell │ ├── state │ ├── trek │ └── ucc ├── words └── wump ├── include ├── a.out.h ├── ar.h ├── assert.h ├── core.h ├── ctype.h ├── curses.h ├── dk.h ├── dumprestor.h ├── errno.h ├── execargs.h ├── grp.h ├── ident.h ├── math.h ├── mp.h ├── olddump.h ├── pack.h ├── pwd.h ├── saio.h ├── setjmp.h ├── sgtty.h ├── signal.h ├── stdio.h ├── symbol.h ├── sys.s ├── sys │ ├── acct.h │ ├── buf.h │ ├── callo.h │ ├── conf.h │ ├── dir.h │ ├── fblk.h │ ├── file.h │ ├── filsys.h │ ├── ino.h │ ├── inode.h │ ├── map.h │ ├── mount.h │ ├── mpx.h │ ├── mx.h │ ├── param.h │ ├── part.h │ ├── pk.h │ ├── pk.p │ ├── prim.h │ ├── proc.h │ ├── reg.h │ ├── seg.h │ ├── stat.h │ ├── systm.h │ ├── text.h │ ├── timeb.h │ ├── times.h │ ├── tty.h │ ├── types.h │ └── user.h ├── time.h ├── tp_defs.h ├── unctrl.h ├── utmp.h ├── varargs.h └── whoami.h ├── lib ├── atrun ├── calendar ├── cign ├── crontab ├── diff3 ├── diffh ├── eign ├── ex3.6preserve ├── ex3.6recover ├── font │ ├── ftB │ ├── ftBC │ ├── ftC │ ├── ftCE │ ├── ftCI │ ├── ftCK │ ├── ftCS │ ├── ftCW │ ├── ftG │ ├── ftGI │ ├── ftGM │ ├── ftGR │ ├── ftI │ ├── ftL │ ├── ftLI │ ├── ftPA │ ├── ftPB │ ├── ftPI │ ├── ftR │ ├── ftS │ ├── ftSB │ ├── ftSI │ ├── ftSM │ ├── ftUD │ └── ftXM ├── learn │ ├── C.a │ ├── Linfo │ ├── Xinfo │ ├── editor.a │ ├── eqn.a │ ├── files.a │ ├── lcount │ ├── macros.a │ ├── morefiles.a │ └── tee ├── lex │ └── ncform ├── libcurses.a ├── libdbm.a ├── libmp.a ├── libtermlib.a ├── lint1 ├── lint2 ├── llib-lc ├── llib-lm ├── llib-port ├── makekey ├── more.help ├── refer │ ├── hunt │ ├── inv │ └── mkey ├── spell ├── struct │ ├── beautify │ └── structure ├── term │ ├── tab300 │ ├── tab300-12 │ ├── tab300s │ ├── tab300s-12 │ ├── tab37 │ ├── tab450 │ ├── tab450-12 │ ├── tab450-12-8 │ ├── tab832 │ ├── taba1 │ ├── tablp │ └── tabtn300 ├── tmac │ ├── tmac.an │ ├── tmac.r │ ├── tmac.s │ ├── tmac.scover │ ├── tmac.sdisp │ ├── tmac.skeep │ └── tmac.srefs ├── units ├── uucp │ ├── L-devices │ ├── L-dialcodes │ ├── L.sys │ ├── USERFILE │ ├── uucico │ ├── uuclean │ └── uuxqt └── yaccpar ├── man ├── man0 │ ├── intro │ ├── permindex │ ├── pref │ ├── ptxmac │ ├── title │ └── xx ├── man1 │ ├── ac.1m │ ├── adb.1 │ ├── ar.1 │ ├── arcv.1m │ ├── as.1 │ ├── at.1 │ ├── awk.1 │ ├── bas.1 │ ├── basename.1 │ ├── bc.1 │ ├── cal.1 │ ├── calendar.1 │ ├── cat.1 │ ├── cb.1 │ ├── cc.1 │ ├── cd.1 │ ├── cdcat.1 │ ├── chmod.1 │ ├── chown.1 │ ├── chroot.1 │ ├── clri.1m │ ├── cmp.1 │ ├── col.1 │ ├── comm.1 │ ├── compress.1 │ ├── cp.1 │ ├── crypt.1 │ ├── csh.1 │ ├── cu.1c │ ├── date.1 │ ├── dc.1 │ ├── dcheck.1m │ ├── dd.1 │ ├── deroff.1 │ ├── df.1m │ ├── diff.1 │ ├── diff3.1 │ ├── du.1 │ ├── dump.1m │ ├── dumpdir.1m │ ├── echo.1 │ ├── ed.1 │ ├── eqn.1 │ ├── ex.1 │ ├── expr.1 │ ├── f77.1 │ ├── factor.1 │ ├── fatdir.1 │ ├── fatget.1 │ ├── fatput.1 │ ├── file.1 │ ├── find.1 │ ├── fsck.1m │ ├── graph.1g │ ├── grep.1 │ ├── icheck.1m │ ├── intro.1 │ ├── iostat.1m │ ├── join.1 │ ├── kill.1 │ ├── ld.1 │ ├── lex.1 │ ├── lint.1 │ ├── ln.1 │ ├── login.1 │ ├── look.1 │ ├── lookall.1 │ ├── lorder.1 │ ├── ls.1 │ ├── m4.1 │ ├── mail.1 │ ├── make.1 │ ├── man.1 │ ├── mesg.1 │ ├── mkconf.1m │ ├── mkdir.1 │ ├── mkfs.1m │ ├── mknod.1m │ ├── more.1 │ ├── mount.1m │ ├── mv.1 │ ├── ncheck.1m │ ├── newgrp.1 │ ├── nice.1 │ ├── nm.1 │ ├── od.1 │ ├── passwd.1 │ ├── plot.1g │ ├── pr.1 │ ├── prep.1 │ ├── printenv.1 │ ├── prof.1 │ ├── ps.1 │ ├── pstat.1m │ ├── ptdisk.1 │ ├── ptx.1 │ ├── pubindex.1 │ ├── pwd.1 │ ├── quot.1m │ ├── ranlib.1 │ ├── ratfor.1 │ ├── refer.1 │ ├── restor.1m │ ├── rev.1 │ ├── rm.1 │ ├── roff.1 │ ├── sa.1m │ ├── sed.1 │ ├── sh.1 │ ├── size.1 │ ├── sleep.1 │ ├── sort.1 │ ├── spell.1 │ ├── spline.1g │ ├── split.1 │ ├── strip.1 │ ├── struct.1 │ ├── stty.1 │ ├── su.1 │ ├── sum.1 │ ├── sync.1m │ ├── tabs.1 │ ├── tail.1 │ ├── tar.1 │ ├── tbl.1 │ ├── tc.1 │ ├── tee.1 │ ├── test.1 │ ├── time.1 │ ├── tk.1 │ ├── touch.1 │ ├── tp.1 │ ├── tr.1 │ ├── troff.1 │ ├── true.1 │ ├── tsort.1 │ ├── tty.1 │ ├── uncompress.1 │ ├── uniq.1 │ ├── units.1 │ ├── uucp.1c │ ├── uux.1c │ ├── vi.1 │ ├── wait.1 │ ├── wall.1m │ ├── wc.1 │ ├── whereis.1 │ ├── who.1 │ ├── write.1 │ ├── xsend.1 │ ├── yacc.1 │ └── zcat.1 ├── man2 │ ├── access.2 │ ├── acct.2 │ ├── alarm.2 │ ├── brk.2 │ ├── chdir.2 │ ├── chmod.2 │ ├── chown.2 │ ├── close.2 │ ├── creat.2 │ ├── dup.2 │ ├── exec.2 │ ├── exit.2 │ ├── fork.2 │ ├── getpid.2 │ ├── getuid.2 │ ├── indir.2 │ ├── intro.2 │ ├── ioctl.2 │ ├── kill.2 │ ├── link.2 │ ├── lock.2 │ ├── lseek.2 │ ├── mknod.2 │ ├── mount.2 │ ├── mpx.2 │ ├── mpxcall.2 │ ├── nice.2 │ ├── open.2 │ ├── pause.2 │ ├── phys.2 │ ├── pipe.2 │ ├── pkon.2 │ ├── profil.2 │ ├── ptrace.2 │ ├── read.2 │ ├── setuid.2 │ ├── signal.2 │ ├── stat.2 │ ├── stime.2 │ ├── sync.2 │ ├── time.2 │ ├── times.2 │ ├── umask.2 │ ├── unlink.2 │ ├── utime.2 │ ├── wait.2 │ └── write.2 ├── man3 │ ├── abort.3 │ ├── abs.3 │ ├── assert.3x │ ├── atof.3 │ ├── crypt.3 │ ├── ctime.3 │ ├── ctype.3 │ ├── curses.3 │ ├── dbm.3x │ ├── ecvt.3 │ ├── end.3 │ ├── exp.3m │ ├── fclose.3s │ ├── ferror.3s │ ├── floor.3m │ ├── fopen.3s │ ├── fread.3s │ ├── frexp.3 │ ├── fseek.3s │ ├── getc.3s │ ├── getenv.3 │ ├── getgrent.3 │ ├── getlogin.3 │ ├── getpass.3 │ ├── getpw.3 │ ├── getpwent.3 │ ├── gets.3s │ ├── hypot.3m │ ├── intro.3 │ ├── j0.3m │ ├── l3tol.3 │ ├── malloc.3 │ ├── mktemp.3 │ ├── monitor.3 │ ├── mp.3x │ ├── nlist.3 │ ├── perror.3 │ ├── pkopen.3 │ ├── plot.3x │ ├── popen.3s │ ├── printf.3s │ ├── putc.3s │ ├── puts.3s │ ├── qsort.3 │ ├── rand.3 │ ├── scanf.3s │ ├── setbuf.3s │ ├── setjmp.3 │ ├── sin.3m │ ├── sinh.3m │ ├── sleep.3 │ ├── stdio.3s │ ├── string.3 │ ├── swab.3 │ ├── system.3 │ ├── termlib.3 │ ├── ttyname.3 │ └── ungetc.3s ├── man4 │ ├── cd.4 │ ├── fd.4 │ ├── hd.4 │ ├── md.4 │ ├── mem.4 │ ├── null.4 │ ├── pk.4 │ ├── sc.4 │ ├── sr.4 │ └── tty.4 ├── man5 │ ├── a.out.5 │ ├── acct.5 │ ├── ar.5 │ ├── core.5 │ ├── dir.5 │ ├── dump.5 │ ├── environ.5 │ ├── filsys.5 │ ├── group.5 │ ├── mpxio.5 │ ├── mtab.5 │ ├── passwd.5 │ ├── plot.5 │ ├── termcap.5 │ ├── tp.5 │ ├── ttys.5 │ ├── types.5 │ └── utmp.5 ├── man6 │ ├── arithmetic.6 │ ├── backgammon.6 │ ├── quiz.6 │ ├── words.6 │ └── wump.6 ├── man7 │ ├── ascii.7 │ ├── eqnchar.7 │ ├── hier.7 │ ├── man.7 │ ├── ms.7 │ └── term.7 └── man8 │ ├── boot.8 │ ├── cron.8 │ ├── getty.8 │ ├── init.8 │ ├── lpd.8 │ ├── makekey.8 │ └── update.8 ├── pub ├── ascii ├── eqnchar └── greek ├── release ├── INSTALL ├── LICENSE ├── README ├── RELNOTES └── version ├── spool ├── at │ └── lasttimedone ├── dpd │ └── empty ├── mail │ └── root └── secretmail │ ├── bin.key │ ├── notice │ ├── root.0 │ └── root.key ├── src ├── cmd │ ├── ac.c │ ├── accton.c │ ├── adb │ │ ├── access.c │ │ ├── command.c │ │ ├── defs.h │ │ ├── expr.c │ │ ├── findfn.c │ │ ├── format.c │ │ ├── input.c │ │ ├── mac.h │ │ ├── machine.h │ │ ├── main.c │ │ ├── makefile │ │ ├── message.c │ │ ├── mode.h │ │ ├── opset.c │ │ ├── optab.c │ │ ├── optab.h │ │ ├── output.c │ │ ├── pcs.c │ │ ├── print.c │ │ ├── runpcs.c │ │ ├── setup.c │ │ └── sym.c │ ├── ar.c │ ├── arcv.c │ ├── as │ │ ├── as.c │ │ ├── lookup.c │ │ ├── lookup.h │ │ ├── makefile │ │ ├── mntbl.c │ │ ├── optbl.c │ │ ├── optbl.h │ │ ├── potbl.c │ │ ├── rmtbl.c │ │ ├── token.c │ │ └── token.h │ ├── at.c │ ├── atrun.c │ ├── awk │ │ ├── EXPLAIN │ │ ├── README │ │ ├── awk.def │ │ ├── awk.g.y │ │ ├── awk.lx.l │ │ ├── b.c │ │ ├── freeze.c │ │ ├── lib.c │ │ ├── main.c │ │ ├── makefile │ │ ├── parse.c │ │ ├── proc.c │ │ ├── run.c │ │ ├── token.c │ │ ├── tokenscript │ │ └── tran.c │ ├── basename.c │ ├── bc.y │ ├── cal.c │ ├── calendar.c │ ├── cat.c │ ├── cb.c │ ├── cc.c │ ├── checkeq.c │ ├── chgrp.c │ ├── chmod.c │ ├── chown.c │ ├── clri.c │ ├── cmake │ ├── cmp.c │ ├── col.c │ ├── comm.c │ ├── cp.c │ ├── cpp │ │ ├── README │ │ ├── cpp.c │ │ ├── cpy.y │ │ ├── makefile │ │ └── yylex.c │ ├── cron.c │ ├── crypt.c │ ├── cu.c │ ├── date.c │ ├── dc │ │ ├── dc.c │ │ ├── dc.h │ │ └── makefile │ ├── dcheck.c │ ├── dd.c │ ├── deroff.c │ ├── df.c │ ├── diff.c │ ├── diff3.c │ ├── diffh.c │ ├── dmesg.c │ ├── du.c │ ├── dump.c │ ├── dumpdir.c │ ├── echo.c │ ├── ed.c │ ├── egrep.y │ ├── eqn │ │ ├── diacrit.c │ │ ├── e.h │ │ ├── e.y │ │ ├── eqnbox.c │ │ ├── font.c │ │ ├── fromto.c │ │ ├── funny.c │ │ ├── glob.c │ │ ├── integral.c │ │ ├── io.c │ │ ├── lex.c │ │ ├── lookup.c │ │ ├── makefile │ │ ├── mark.c │ │ ├── matrix.c │ │ ├── move.c │ │ ├── over.c │ │ ├── paren.c │ │ ├── pile.c │ │ ├── shift.c │ │ ├── size.c │ │ ├── sqrt.c │ │ └── text.c │ ├── expr.y │ ├── fgrep.c │ ├── file.c │ ├── find.c │ ├── fsck.c │ ├── getty.c │ ├── graph.c │ ├── grep.c │ ├── icheck.c │ ├── in │ ├── init.c │ ├── iostat.c │ ├── join.c │ ├── kill.c │ ├── ld.c │ ├── learn │ │ ├── README │ │ ├── copy.c │ │ ├── dounit.c │ │ ├── lcount.c │ │ ├── learn.c │ │ ├── list.c │ │ ├── lrndef │ │ ├── lrnref │ │ ├── makefile │ │ ├── makpipe.c │ │ ├── maktee.c │ │ ├── mem.c │ │ ├── mysys.c │ │ ├── selsub.c │ │ ├── selunit.c │ │ ├── start.c │ │ ├── tee.c │ │ ├── whatnow.c │ │ └── wrapup.c │ ├── lex │ │ ├── header.c │ │ ├── ldefs.c │ │ ├── lib │ │ │ ├── allprint.c │ │ │ ├── main.c │ │ │ ├── reject.c │ │ │ ├── yyless.c │ │ │ └── yywrap.c │ │ ├── lmain.c │ │ ├── makefile │ │ ├── once.c │ │ ├── parser.y │ │ ├── sub1.c │ │ └── sub2.c │ ├── lint │ │ ├── READ_ME │ │ ├── SHELL │ │ ├── lint.c │ │ ├── lmanifest │ │ ├── lpass2.c │ │ ├── macdefs │ │ └── makefile │ ├── ln.c │ ├── login.c │ ├── look.c │ ├── lpr │ │ ├── chrtab.c │ │ ├── daemon.c │ │ ├── daemon0.c │ │ ├── lpd.c │ │ ├── lpr.c │ │ ├── makefile │ │ └── spool.c │ ├── ls.c │ ├── m4 │ │ ├── m4.c │ │ ├── m4y.y │ │ └── makefile │ ├── mail.c │ ├── make │ │ ├── defs │ │ ├── doname.c │ │ ├── dosys.c │ │ ├── files.c │ │ ├── gram.y │ │ ├── ident.c │ │ ├── main.c │ │ ├── makefile │ │ └── misc.c │ ├── makeall │ ├── makekey.c │ ├── mesg.c │ ├── mip │ │ ├── INDEX │ │ ├── allo.c │ │ ├── cgram.y │ │ ├── comm1.c │ │ ├── common │ │ ├── convert │ │ ├── fallo.c │ │ ├── fcomm2.c │ │ ├── fconvert │ │ ├── flocal2.c │ │ ├── fmatch.c │ │ ├── forder.c │ │ ├── fort.c │ │ ├── freader.c │ │ ├── ftable.c │ │ ├── g │ │ ├── makefile │ │ ├── manifest │ │ ├── match.c │ │ ├── mfile1 │ │ ├── mfile2 │ │ ├── optim.c │ │ ├── pftn.c │ │ ├── reader.c │ │ ├── scan.c │ │ ├── trees.c │ │ └── xdefs.c │ ├── mkdir.c │ ├── mkfs.c │ ├── mknod.c │ ├── mount.c │ ├── mv.c │ ├── ncheck.c │ ├── neqn │ │ ├── diacrit.c │ │ ├── e.h │ │ ├── e.y │ │ ├── eqnbox.c │ │ ├── font.c │ │ ├── fromto.c │ │ ├── funny.c │ │ ├── glob.c │ │ ├── integral.c │ │ ├── io.c │ │ ├── lex.c │ │ ├── lookup.c │ │ ├── makefile │ │ ├── mark.c │ │ ├── matrix.c │ │ ├── move.c │ │ ├── over.c │ │ ├── paren.c │ │ ├── pile.c │ │ ├── shift.c │ │ ├── size.c │ │ ├── sqrt.c │ │ └── text.c │ ├── newgrp.c │ ├── nice.c │ ├── nm.c │ ├── od.c │ ├── osh.c │ ├── passwd.c │ ├── plot │ │ ├── chrtab.c │ │ ├── driver.c │ │ ├── makefile │ │ └── vplot.c │ ├── pr.c │ ├── prep │ │ ├── makefile │ │ ├── prep.h │ │ ├── prep0.c │ │ ├── prep1.c │ │ └── prep2.c │ ├── prof.c │ ├── ps.c │ ├── pstat.c │ ├── ptx.c │ ├── pwd.c │ ├── quot.c │ ├── random.c │ ├── ranlib.c │ ├── ratfor │ │ ├── makefile │ │ ├── r.g │ │ ├── r.h │ │ ├── r0.c │ │ ├── r1.c │ │ ├── r2.c │ │ ├── rio.c │ │ ├── rlex.c │ │ └── rlook.c │ ├── refer │ │ ├── deliv1.c │ │ ├── deliv2.c │ │ ├── flagger.c │ │ ├── glue1.c │ │ ├── glue2.c │ │ ├── glue3.c │ │ ├── glue4.c │ │ ├── glue5.c │ │ ├── hunt1.c │ │ ├── hunt2.c │ │ ├── hunt3.c │ │ ├── hunt5.c │ │ ├── hunt6.c │ │ ├── hunt7.c │ │ ├── hunt8.c │ │ ├── hunt9.c │ │ ├── inv1.c │ │ ├── inv2.c │ │ ├── inv3.c │ │ ├── inv5.c │ │ ├── inv6.c │ │ ├── kaiser.c │ │ ├── makefile │ │ ├── mkey1.c │ │ ├── mkey2.c │ │ ├── mkey3.c │ │ ├── refer..c │ │ ├── refer0.c │ │ ├── refer1.c │ │ ├── refer2.c │ │ ├── refer3.c │ │ ├── refer4.c │ │ ├── refer5.c │ │ ├── refer6.c │ │ ├── refer7.c │ │ ├── refer8.c │ │ ├── shell.c │ │ ├── test │ │ ├── thash.c │ │ ├── types.c │ │ ├── what..c │ │ ├── what1.c │ │ ├── what2.c │ │ ├── what3.c │ │ └── what4.c │ ├── restor.c │ ├── rev.c │ ├── rm.c │ ├── rmdir.c │ ├── sa.c │ ├── sed │ │ ├── makefile │ │ ├── sed.h │ │ ├── sed0.c │ │ └── sed1.c │ ├── sh │ │ ├── args.c │ │ ├── blok.c │ │ ├── brkincr.h │ │ ├── builtin.c │ │ ├── cmd.c │ │ ├── ctype.c │ │ ├── ctype.h │ │ ├── defs.h │ │ ├── dup.h │ │ ├── error.c │ │ ├── expand.c │ │ ├── fault.c │ │ ├── io.c │ │ ├── mac.h │ │ ├── macro.c │ │ ├── main.c │ │ ├── makefile │ │ ├── mode.h │ │ ├── msg.c │ │ ├── name.c │ │ ├── name.h │ │ ├── print.c │ │ ├── service.c │ │ ├── setbrk.c │ │ ├── stak.c │ │ ├── stak.h │ │ ├── string.c │ │ ├── sym.h │ │ ├── timeout.h │ │ ├── word.c │ │ └── xec.c │ ├── size.c │ ├── sleep.c │ ├── sort.c │ ├── sp.c │ ├── spell │ │ ├── american │ │ ├── british │ │ ├── local │ │ ├── makefile │ │ ├── spell.c │ │ ├── spell.h │ │ ├── spellin │ │ ├── spellin.c │ │ ├── spellout.c │ │ └── stop │ ├── spline.c │ ├── split.c │ ├── strip.c │ ├── struct │ │ ├── 0.alloc.c │ │ ├── 0.args.c │ │ ├── 0.def.c │ │ ├── 0.extr.c │ │ ├── 0.graph.c │ │ ├── 0.list.c │ │ ├── 0.parts.c │ │ ├── 0.string.c │ │ ├── 1.defs.h │ │ ├── 1.finish.c │ │ ├── 1.form.c │ │ ├── 1.fort.c │ │ ├── 1.hash.c │ │ ├── 1.incl.h │ │ ├── 1.init.c │ │ ├── 1.line.c │ │ ├── 1.main.c │ │ ├── 1.node.c │ │ ├── 1.recog.c │ │ ├── 1.tables.c │ │ ├── 2.def.h │ │ ├── 2.dfs.c │ │ ├── 2.dom.c │ │ ├── 2.head.c │ │ ├── 2.inarc.c │ │ ├── 2.main.c │ │ ├── 2.test.c │ │ ├── 2.tree.c │ │ ├── 3.branch.c │ │ ├── 3.def.h │ │ ├── 3.flow.c │ │ ├── 3.loop.c │ │ ├── 3.main.c │ │ ├── 3.reach.c │ │ ├── 3.test.c │ │ ├── 3.then.c │ │ ├── 4.brace.c │ │ ├── 4.def.h │ │ ├── 4.form.c │ │ ├── 4.main.c │ │ ├── 4.out.c │ │ ├── b.h │ │ ├── bdef.c │ │ ├── beauty.y │ │ ├── def.h │ │ ├── lextab.l │ │ ├── main.c │ │ ├── makefile │ │ └── tree.c │ ├── stty.c │ ├── su.c │ ├── sum.c │ ├── sync.c │ ├── tabs.c │ ├── tail.c │ ├── tar │ │ ├── makefile │ │ └── tar.c │ ├── tbl │ │ ├── makefile │ │ ├── t..c │ │ ├── t0.c │ │ ├── t1.c │ │ ├── t2.c │ │ ├── t3.c │ │ ├── t4.c │ │ ├── t5.c │ │ ├── t6.c │ │ ├── t7.c │ │ ├── t8.c │ │ ├── t9.c │ │ ├── tb.c │ │ ├── tc.c │ │ ├── te.c │ │ ├── tf.c │ │ ├── tg.c │ │ ├── ti.c │ │ ├── tm.c │ │ ├── ts.c │ │ ├── tt.c │ │ ├── tu.c │ │ └── tv.c │ ├── tc.c │ ├── tee.c │ ├── test.c │ ├── time.c │ ├── tk.c │ ├── touch.c │ ├── tp │ │ ├── makefile │ │ ├── tp.h │ │ ├── tp0.c │ │ ├── tp1.c │ │ ├── tp2.c │ │ └── tp3.c │ ├── tr.c │ ├── troff │ │ ├── README │ │ ├── d.h │ │ ├── font │ │ │ ├── chars.c │ │ │ ├── ftB.c │ │ │ ├── ftBC.c │ │ │ ├── ftC.c │ │ │ ├── ftCE.c │ │ │ ├── ftCI.c │ │ │ ├── ftCK.c │ │ │ ├── ftCS.c │ │ │ ├── ftCW.c │ │ │ ├── ftG.c │ │ │ ├── ftGI.c │ │ │ ├── ftGM.c │ │ │ ├── ftGR.c │ │ │ ├── ftI.c │ │ │ ├── ftL.c │ │ │ ├── ftLI.c │ │ │ ├── ftPA.c │ │ │ ├── ftPB.c │ │ │ ├── ftPI.c │ │ │ ├── ftR.c │ │ │ ├── ftS.c │ │ │ ├── ftSB.c │ │ │ ├── ftSI.c │ │ │ ├── ftSM.c │ │ │ ├── ftUD.c │ │ │ ├── ftXM.c │ │ │ ├── linkrc │ │ │ ├── makefile │ │ │ ├── mkfont.c │ │ │ └── mkfont1.c │ │ ├── hytab.c │ │ ├── makefile │ │ ├── n1.c │ │ ├── n10.c │ │ ├── n2.c │ │ ├── n3.c │ │ ├── n4.c │ │ ├── n5.c │ │ ├── n6.c │ │ ├── n7.c │ │ ├── n8.c │ │ ├── n9.c │ │ ├── ni.c │ │ ├── nii.c │ │ ├── nmake │ │ ├── ntab.c │ │ ├── s.h │ │ ├── suftab.c │ │ ├── t10.c │ │ ├── t6.c │ │ ├── tab3.c │ │ ├── tdef.h │ │ ├── term │ │ │ ├── code.300 │ │ │ ├── makefile │ │ │ ├── tab300-12.c │ │ │ ├── tab300.c │ │ │ ├── tab300s-12.c │ │ │ ├── tab300s.c │ │ │ ├── tab37.c │ │ │ ├── tab450-12-8.c │ │ │ ├── tab450-12.c │ │ │ ├── tab450.c │ │ │ ├── tab832.c │ │ │ ├── taba1.c │ │ │ ├── tablp.c │ │ │ └── tabtn300.c │ │ ├── textscript │ │ ├── tmake │ │ ├── tw.h │ │ └── v.h │ ├── tsort.c │ ├── tty.c │ ├── umount.c │ ├── uniq.c │ ├── units.c │ ├── update.c │ ├── uucp │ │ ├── anlwrk.c │ │ ├── chkpth.c │ │ ├── cico.c │ │ ├── cntrl.c │ │ ├── conn.c │ │ ├── cpmv.c │ │ ├── expfile.c │ │ ├── gename.c │ │ ├── getargs.c │ │ ├── getprm.c │ │ ├── getpwinfo.c │ │ ├── gio.c │ │ ├── gnamef.c │ │ ├── gnsys.c │ │ ├── gnxseq.c │ │ ├── gwd.c │ │ ├── imsg.c │ │ ├── index.c │ │ ├── ioctl.c │ │ ├── lastpart.c │ │ ├── logent.c │ │ ├── makefile │ │ ├── pk0.c │ │ ├── pk1.c │ │ ├── pkon.c │ │ ├── prefix.c │ │ ├── sdmail.c │ │ ├── shio.c │ │ ├── sysacct.c │ │ ├── systat.c │ │ ├── ulockf.c │ │ ├── uuclean.c │ │ ├── uucp.c │ │ ├── uucp.h │ │ ├── uucpdefs.h │ │ ├── uulog.c │ │ ├── uurecover.c │ │ ├── uux.c │ │ ├── uuxqt.c │ │ ├── versys.c │ │ └── xqt.c │ ├── vpr.c │ ├── wall.c │ ├── wc.c │ ├── who.c │ ├── write.c │ ├── xsend │ │ ├── enroll.c │ │ ├── lib.c │ │ ├── makefile │ │ ├── xget.c │ │ ├── xmail.h │ │ └── xsend.c │ ├── yacc │ │ ├── dextern │ │ ├── files │ │ ├── makefile │ │ ├── y1.c │ │ ├── y2.c │ │ ├── y3.c │ │ └── y4.c │ └── yes.c ├── games │ ├── arithmetic.c │ ├── backgammon.c │ ├── fish.c │ ├── fortune.c │ ├── hangman.c │ ├── quiz.c │ └── wump.c ├── libc │ ├── compall │ ├── crt │ │ ├── cerror.s │ │ └── mcount.s │ ├── csu │ │ ├── crt0.s │ │ └── mcrt0.s │ ├── gen │ │ ├── abort.c │ │ ├── abs.c │ │ ├── atof.c │ │ ├── atoi.c │ │ ├── atol.c │ │ ├── calloc.c │ │ ├── crypt.c │ │ ├── ctime.c │ │ ├── ctype_.c │ │ ├── cuexit.s │ │ ├── ecvt.c │ │ ├── errlst.c │ │ ├── execvp.c │ │ ├── fakcu.s │ │ ├── frexp87.s │ │ ├── getenv.c │ │ ├── getlogin.c │ │ ├── index.c │ │ ├── isatty.c │ │ ├── l3.c │ │ ├── ldexp87.s │ │ ├── ldfps.s │ │ ├── malloc.c │ │ ├── mktemp.c │ │ ├── modf87.s │ │ ├── mon.c │ │ ├── mpx.c │ │ ├── nlist.c │ │ ├── perror.c │ │ ├── pkon.c │ │ ├── qsort.c │ │ ├── rand.c │ │ ├── rindex.c │ │ ├── setjmp.s │ │ ├── sleep.c │ │ ├── strcat.c │ │ ├── strcmp.c │ │ ├── strcpy.c │ │ ├── strlen.c │ │ ├── strncat.c │ │ ├── strncmp.c │ │ ├── strncpy.c │ │ ├── stty.c │ │ ├── swab.c │ │ ├── tell.c │ │ ├── timezone.c │ │ ├── ttyname.c │ │ └── ttyslot.c │ ├── mklib │ ├── stdio │ │ ├── clrerr.c │ │ ├── data.c │ │ ├── doprnt.s │ │ ├── doscan.c │ │ ├── endopen.c │ │ ├── fdopen.c │ │ ├── ffltpr.s │ │ ├── fgetc.c │ │ ├── fgets.c │ │ ├── filbuf.c │ │ ├── findiop.c │ │ ├── flsbuf.c │ │ ├── fltpr.s │ │ ├── fopen.c │ │ ├── fprintf.c │ │ ├── fputc.c │ │ ├── fputs.c │ │ ├── freopen.c │ │ ├── fseek.c │ │ ├── ftell.c │ │ ├── gcvt.c │ │ ├── getchar.c │ │ ├── getgrent.c │ │ ├── getgrgid.c │ │ ├── getgrnam.c │ │ ├── getpass.c │ │ ├── getpw.c │ │ ├── getpwent.c │ │ ├── getpwnam.c │ │ ├── getpwuid.c │ │ ├── gets.c │ │ ├── getw.c │ │ ├── popen.c │ │ ├── printf.c │ │ ├── putchar.c │ │ ├── puts.c │ │ ├── putw.c │ │ ├── rdwr.c │ │ ├── rew.c │ │ ├── scanf.c │ │ ├── setbuf.c │ │ ├── sprintf.c │ │ ├── strout.c │ │ ├── system.c │ │ └── ungetc.c │ └── sys │ │ ├── access.s │ │ ├── acct.s │ │ ├── alarm.s │ │ ├── chdir.s │ │ ├── chmod.s │ │ ├── chown.s │ │ ├── chroot.s │ │ ├── close.s │ │ ├── creat.s │ │ ├── dup.s │ │ ├── execl.c │ │ ├── execle.s │ │ ├── execv.c │ │ ├── execve.s │ │ ├── exit.s │ │ ├── fork.s │ │ ├── fstat.s │ │ ├── getgid.s │ │ ├── getpid.s │ │ ├── getuid.s │ │ ├── ioctl.s │ │ ├── kill.s │ │ ├── link.s │ │ ├── lock.s │ │ ├── lseek.s │ │ ├── mknod.s │ │ ├── mount.s │ │ ├── mpxcall.s │ │ ├── nice.s │ │ ├── open.s │ │ ├── pause.s │ │ ├── phys.s │ │ ├── pipe.s │ │ ├── profil.s │ │ ├── ptrace.s │ │ ├── read.s │ │ ├── sbrk.s │ │ ├── setgid.s │ │ ├── setuid.s │ │ ├── signal.s │ │ ├── stat.s │ │ ├── stime.s │ │ ├── sync.s │ │ ├── time.s │ │ ├── times.s │ │ ├── umask.s │ │ ├── umount.s │ │ ├── unlink.s │ │ ├── utime.s │ │ ├── wait.s │ │ └── write.s ├── libdbm │ ├── compall │ ├── dbm.c │ ├── dbm.h │ └── mklib ├── libm │ ├── asin.c │ ├── atan.c │ ├── compall │ ├── exp.c │ ├── fabs.c │ ├── floor.c │ ├── hypot.c │ ├── j0.c │ ├── j1.c │ ├── jn.c │ ├── log.c │ ├── mklib │ ├── pow.c │ ├── sin.c │ ├── sinh.c │ ├── sqrt.c │ ├── tan.c │ └── tanh.c ├── libmp │ ├── compall │ ├── gcd.c │ ├── madd.c │ ├── mdiv.c │ ├── mklib │ ├── mout.c │ ├── msqrt.c │ ├── mult.c │ ├── pow.c │ └── util.c └── libplot │ ├── con.h │ ├── makefile │ ├── plot.c.a │ ├── t300.c.a │ ├── t300s.c.a │ ├── t4014.c.a │ ├── t450.c.a │ └── vt0.c.a ├── sys ├── conf │ ├── hd0conf │ ├── hd1conf │ ├── makefile │ ├── mch.s │ ├── md0conf │ └── mkconf.c ├── dev │ ├── bio.c │ ├── cd.c │ ├── dsort.c │ ├── fd.c │ ├── hd.c │ ├── md.c │ ├── mem.c │ ├── mklib │ ├── mx1.c │ ├── mx2.c │ ├── partab.c │ ├── pk0.c │ ├── pk1.c │ ├── pk2.c │ ├── pk3.c │ ├── sc.c │ ├── sr.c │ ├── sys.c │ └── tty.c ├── h │ ├── acct.h │ ├── buf.h │ ├── callo.h │ ├── conf.h │ ├── dir.h │ ├── fblk.h │ ├── file.h │ ├── filsys.h │ ├── ino.h │ ├── inode.h │ ├── map.h │ ├── mount.h │ ├── mpx.h │ ├── mx.h │ ├── param.h │ ├── part.h │ ├── pk.h │ ├── pk.p │ ├── prim.h │ ├── proc.h │ ├── reg.h │ ├── seg.h │ ├── stat.h │ ├── systm.h │ ├── text.h │ ├── timeb.h │ ├── tty.h │ ├── types.h │ └── user.h └── sys │ ├── acct.c │ ├── alloc.c │ ├── clock.c │ ├── fakemx.c │ ├── fio.c │ ├── iget.c │ ├── machdep.c │ ├── main.c │ ├── malloc.c │ ├── mklib │ ├── nami.c │ ├── pipe.c │ ├── prf.c │ ├── prim.c │ ├── rdwri.c │ ├── sig.c │ ├── slp.c │ ├── subr.c │ ├── sys1.c │ ├── sys2.c │ ├── sys3.c │ ├── sys4.c │ ├── sysent.c │ ├── text.c │ ├── trap.c │ └── utab.c └── ucb ├── edit ├── ex ├── factor ├── more ├── primes ├── printenv ├── vi ├── view └── whereis /README.md: -------------------------------------------------------------------------------- 1 | ## v7x86 2 | 3 | This is a fork of v7/x86, designed to maintain and update the operating system. 4 | -------------------------------------------------------------------------------- /bin/1: -------------------------------------------------------------------------------- 1 | case $# in 2 | 3 | 0) 4 | if random -e 1.1 5 | then 6 | echo one bell system - it works 7 | elif random -e 1.1 8 | then 9 | /usr/games/fortune 10 | else 1;1;1;1;1;1;1;1;1;1 11 | fi 12 | ;; 13 | 14 | *) 15 | echo one $* - it works 16 | 17 | esac 18 | -------------------------------------------------------------------------------- /bin/ac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ac -------------------------------------------------------------------------------- /bin/adb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/adb -------------------------------------------------------------------------------- /bin/ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ar -------------------------------------------------------------------------------- /bin/arcv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/arcv -------------------------------------------------------------------------------- /bin/as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/as -------------------------------------------------------------------------------- /bin/at: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/at -------------------------------------------------------------------------------- /bin/awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/awk -------------------------------------------------------------------------------- /bin/basename: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/basename -------------------------------------------------------------------------------- /bin/bc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/bc -------------------------------------------------------------------------------- /bin/cal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cal -------------------------------------------------------------------------------- /bin/calendar: -------------------------------------------------------------------------------- 1 | PATH=/bin:/usr/bin 2 | tmp=/tmp/cal$$ 3 | trap "rm $tmp; exit" 0 1 2 13 15 4 | /usr/lib/calendar >$tmp 5 | case $1 in 6 | -) 7 | sed ' 8 | s/\([^:]*\):.*:\(.*\):[^:]*$/y=\2 z=\1/ 9 | ' /etc/passwd \ 10 | | while read x 11 | do 12 | eval $x 13 | if test -r $y/calendar; then 14 | egrep -f $tmp $y/calendar 2>/dev/null | mail $z 15 | fi 16 | done;; 17 | *) 18 | egrep -f $tmp calendar 19 | esac 20 | -------------------------------------------------------------------------------- /bin/cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cat -------------------------------------------------------------------------------- /bin/cb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cb -------------------------------------------------------------------------------- /bin/cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cc -------------------------------------------------------------------------------- /bin/checkeq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/checkeq -------------------------------------------------------------------------------- /bin/chgrp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/chgrp -------------------------------------------------------------------------------- /bin/chmod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/chmod -------------------------------------------------------------------------------- /bin/chown: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/chown -------------------------------------------------------------------------------- /bin/clri: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/clri -------------------------------------------------------------------------------- /bin/cmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cmp -------------------------------------------------------------------------------- /bin/col: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/col -------------------------------------------------------------------------------- /bin/comm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/comm -------------------------------------------------------------------------------- /bin/cp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cp -------------------------------------------------------------------------------- /bin/crypt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/crypt -------------------------------------------------------------------------------- /bin/csh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/csh -------------------------------------------------------------------------------- /bin/cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/cu -------------------------------------------------------------------------------- /bin/date: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/date -------------------------------------------------------------------------------- /bin/dc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/dc -------------------------------------------------------------------------------- /bin/dcheck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/dcheck -------------------------------------------------------------------------------- /bin/dd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/dd -------------------------------------------------------------------------------- /bin/deroff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/deroff -------------------------------------------------------------------------------- /bin/df: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/df -------------------------------------------------------------------------------- /bin/diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/diff -------------------------------------------------------------------------------- /bin/diff3: -------------------------------------------------------------------------------- 1 | e= 2 | case $1 in 3 | -*) 4 | e=$1 5 | shift;; 6 | esac 7 | if test $# = 3 -a -f $1 -a -f $2 -a -f $3 8 | then 9 | : 10 | else 11 | echo usage: diff3 file1 file2 file3 1>&2 12 | exit 13 | fi 14 | trap "rm -f /tmp/d3[ab]$$" 0 1 2 13 15 15 | diff $1 $3 >/tmp/d3a$$ 16 | diff $2 $3 >/tmp/d3b$$ 17 | /usr/lib/diff3 $e /tmp/d3[ab]$$ $1 $2 $3 18 | -------------------------------------------------------------------------------- /bin/du: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/du -------------------------------------------------------------------------------- /bin/dump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/dump -------------------------------------------------------------------------------- /bin/dumpdir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/dumpdir -------------------------------------------------------------------------------- /bin/echo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/echo -------------------------------------------------------------------------------- /bin/ed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ed -------------------------------------------------------------------------------- /bin/egrep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/egrep -------------------------------------------------------------------------------- /bin/enroll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/enroll -------------------------------------------------------------------------------- /bin/eqn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/eqn -------------------------------------------------------------------------------- /bin/expr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/expr -------------------------------------------------------------------------------- /bin/false: -------------------------------------------------------------------------------- 1 | exit 1 2 | -------------------------------------------------------------------------------- /bin/fgrep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/fgrep -------------------------------------------------------------------------------- /bin/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/file -------------------------------------------------------------------------------- /bin/find: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/find -------------------------------------------------------------------------------- /bin/graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/graph -------------------------------------------------------------------------------- /bin/grep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/grep -------------------------------------------------------------------------------- /bin/icheck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/icheck -------------------------------------------------------------------------------- /bin/iostat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/iostat -------------------------------------------------------------------------------- /bin/join: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/join -------------------------------------------------------------------------------- /bin/kill: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/kill -------------------------------------------------------------------------------- /bin/ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ld -------------------------------------------------------------------------------- /bin/learn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/learn -------------------------------------------------------------------------------- /bin/lex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/lex -------------------------------------------------------------------------------- /bin/ln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ln -------------------------------------------------------------------------------- /bin/login: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/login -------------------------------------------------------------------------------- /bin/look: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/look -------------------------------------------------------------------------------- /bin/lookbib: -------------------------------------------------------------------------------- 1 | A= 2 | case $1 in 3 | -p) A="$1 $2" 4 | shift; shift;; 5 | -*) A=$1 6 | shift;; 7 | esac 8 | case $1 in 9 | -p) A="$A $1 $2" 10 | shift; shift;; 11 | -*) A="$A $1" 12 | shift;; 13 | esac 14 | if test $1x = x 15 | then /usr/lib/refer/mkey -s 16 | else echo $* | /usr/lib/refer/mkey -s 17 | fi | /usr/lib/refer/hunt $A /usr/dict/papers/Ind 18 | -------------------------------------------------------------------------------- /bin/ls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ls -------------------------------------------------------------------------------- /bin/m4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/m4 -------------------------------------------------------------------------------- /bin/mail: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/mail -------------------------------------------------------------------------------- /bin/make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/make -------------------------------------------------------------------------------- /bin/mesg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/mesg -------------------------------------------------------------------------------- /bin/mkdir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/mkdir -------------------------------------------------------------------------------- /bin/mv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/mv -------------------------------------------------------------------------------- /bin/ncheck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ncheck -------------------------------------------------------------------------------- /bin/neqn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/neqn -------------------------------------------------------------------------------- /bin/newgrp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/newgrp -------------------------------------------------------------------------------- /bin/nice: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/nice -------------------------------------------------------------------------------- /bin/nm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/nm -------------------------------------------------------------------------------- /bin/nohup: -------------------------------------------------------------------------------- 1 | trap "" 1 15 2 | if test -t 2>&1 ; then 3 | echo "Sending output to 'nohup.out'" 4 | exec nice -5 $* >>nohup.out 2>&1 5 | else 6 | exec nice -5 $* 2>&1 7 | fi 8 | -------------------------------------------------------------------------------- /bin/nroff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/nroff -------------------------------------------------------------------------------- /bin/od: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/od -------------------------------------------------------------------------------- /bin/osh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/osh -------------------------------------------------------------------------------- /bin/passwd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/passwd -------------------------------------------------------------------------------- /bin/plot: -------------------------------------------------------------------------------- 1 | PATH=/bin:/usr/bin 2 | case $1 in 3 | -T*) t=$1 4 | shift ;; 5 | *) t=-T$TERM 6 | esac 7 | case $t in 8 | -T450) exec t450 $*;; 9 | -T300) exec t300 $*;; 10 | -T300S|-T300s) exec t300s $*;; 11 | -Tver) exec vplot $*;; 12 | -Ttek|-T4014|-T) exec tek $* ;; 13 | *) echo plot: terminal type $t not known 1>&2; exit 1 14 | esac 15 | -------------------------------------------------------------------------------- /bin/pr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/pr -------------------------------------------------------------------------------- /bin/prep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/prep -------------------------------------------------------------------------------- /bin/prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/prof -------------------------------------------------------------------------------- /bin/ps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ps -------------------------------------------------------------------------------- /bin/pstat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/pstat -------------------------------------------------------------------------------- /bin/ptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ptx -------------------------------------------------------------------------------- /bin/pwd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/pwd -------------------------------------------------------------------------------- /bin/quot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/quot -------------------------------------------------------------------------------- /bin/random: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/random -------------------------------------------------------------------------------- /bin/ranlib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ranlib -------------------------------------------------------------------------------- /bin/ratfor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/ratfor -------------------------------------------------------------------------------- /bin/refer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/refer -------------------------------------------------------------------------------- /bin/restor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/restor -------------------------------------------------------------------------------- /bin/rev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/rev -------------------------------------------------------------------------------- /bin/rm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/rm -------------------------------------------------------------------------------- /bin/rmdir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/rmdir -------------------------------------------------------------------------------- /bin/sa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/sa -------------------------------------------------------------------------------- /bin/sed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/sed -------------------------------------------------------------------------------- /bin/sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/sh -------------------------------------------------------------------------------- /bin/size: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/size -------------------------------------------------------------------------------- /bin/sleep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/sleep -------------------------------------------------------------------------------- /bin/sort: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/sort -------------------------------------------------------------------------------- /bin/sp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/sp -------------------------------------------------------------------------------- /bin/spline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/spline -------------------------------------------------------------------------------- /bin/split: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/split -------------------------------------------------------------------------------- /bin/strip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/bin/strip -------------------------------------------------------------------------------- /bin/struct: -------------------------------------------------------------------------------- 1 | trap "rm -f /tmp/struct*$$" 0 1 2 3 13 15 2 | files=no 3 | for i 4 | do 5 | case $i in 6 | -*) ;; 7 | *) files=yes 8 | esac 9 | done 10 | 11 | case $files in 12 | yes) 13 | /usr/lib/struct/structure $* >/tmp/struct$$ 14 | ;; 15 | no) 16 | cat >/tmp/structin$$ 17 | /usr/lib/struct/structure /tmp/structin$$ $* >/tmp/struct$$ 18 | esac && 19 | /usr/lib/struct/beautify/dev/console 5 | rm /etc/mtab 6 | cat /dev/null >/etc/utmp 7 | /etc/mount /dev/hd0e /usr 8 | rm -f /usr/spool/lpd/lock 9 | : /etc/accton /usr/adm/acct 10 | rm -f /usr/tmp/* 11 | rm -f /tmp/* 12 | /etc/update 13 | date >/dev/console 14 | /etc/cron 15 | -------------------------------------------------------------------------------- /etc/ttys: -------------------------------------------------------------------------------- 1 | 12console 2 | 00tty00 3 | 00tty01 4 | 00tty02 5 | 00tty03 6 | 00tty04 7 | 00tty05 8 | 00tty06 9 | 00tty07 10 | 00tty08 11 | 00tty09 12 | 00tty10 13 | 00tty11 14 | 00tty12 15 | 00tty13 16 | 00tty14 17 | 00tty15 18 | 00tty16 19 | 00tty17 20 | 00tty18 21 | 00tty19 22 | 00tty20 23 | 00tty21 24 | 00tty22 25 | 00tty23 26 | 00tty24 27 | 00tty25 28 | 00tty26 29 | 00tty27 30 | 00tty28 31 | 00tty29 32 | 00tty30 33 | 00tty31 34 | -------------------------------------------------------------------------------- /etc/umount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/etc/umount -------------------------------------------------------------------------------- /etc/update: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/etc/update -------------------------------------------------------------------------------- /etc/wall: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/etc/wall -------------------------------------------------------------------------------- /hd0unix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/hd0unix -------------------------------------------------------------------------------- /hd1unix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/hd1unix -------------------------------------------------------------------------------- /lib/cc/em_cemcom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/cc/em_cemcom -------------------------------------------------------------------------------- /lib/cc/em_opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/cc/em_opt -------------------------------------------------------------------------------- /lib/cc/i386cg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/cc/i386cg -------------------------------------------------------------------------------- /lib/cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/cpp -------------------------------------------------------------------------------- /lib/crt0.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/crt0.o -------------------------------------------------------------------------------- /lib/libc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libc.a -------------------------------------------------------------------------------- /lib/libem.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libem.a -------------------------------------------------------------------------------- /lib/libln.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libln.a -------------------------------------------------------------------------------- /lib/libm.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libm.a -------------------------------------------------------------------------------- /lib/libplot.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libplot.a -------------------------------------------------------------------------------- /lib/libt300.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libt300.a -------------------------------------------------------------------------------- /lib/libt300s.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libt300s.a -------------------------------------------------------------------------------- /lib/libt4014.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libt4014.a -------------------------------------------------------------------------------- /lib/libt450.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/libt450.a -------------------------------------------------------------------------------- /lib/mcrt0.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/lib/mcrt0.o -------------------------------------------------------------------------------- /md0unix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/md0unix -------------------------------------------------------------------------------- /usr/bin/cdcat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/cdcat -------------------------------------------------------------------------------- /usr/bin/chroot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/chroot -------------------------------------------------------------------------------- /usr/bin/compress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/compress -------------------------------------------------------------------------------- /usr/bin/fatdir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/fatdir -------------------------------------------------------------------------------- /usr/bin/fatget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/fatget -------------------------------------------------------------------------------- /usr/bin/fatput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/fatput -------------------------------------------------------------------------------- /usr/bin/ptdisk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/ptdisk -------------------------------------------------------------------------------- /usr/bin/uncompress: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/uncompress -------------------------------------------------------------------------------- /usr/bin/zcat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/bin/zcat -------------------------------------------------------------------------------- /usr/boot/makefile: -------------------------------------------------------------------------------- 1 | all: mbr pcuboot 2 | 3 | mbr: 4 | as -o mbr.o mbr.s 5 | ld -s -T 600 -o mbr.x mbr.o 6 | dd if=mbr.x of=mbr bs=1 skip=32 7 | rm mbr.x mbr.o 8 | 9 | pcuboot: 10 | as -o pcuboot.o pcuboot.s 11 | ld -s -T 7c00 -o pcuboot pcuboot.o 12 | rm pcuboot.o 13 | -------------------------------------------------------------------------------- /usr/boot/mbr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/boot/mbr -------------------------------------------------------------------------------- /usr/boot/pcuboot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/boot/pcuboot -------------------------------------------------------------------------------- /usr/contrib/README: -------------------------------------------------------------------------------- 1 | These are from the following: 2 | 3 | compress mod.sources volume 2 4 | 5 | ucb 2.8BSD: csh, ex, curses, more, 6 | printenv, termcap, termlib, 7 | whereis 8 | 4.3BSD: factor, primes 9 | -------------------------------------------------------------------------------- /usr/contrib/new/cdcat/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | all: cdcat 4 | 5 | cp: all 6 | cp cdcat /usr/bin 7 | cp cdcat.1 /usr/man/man1 8 | rm cdcat 9 | 10 | cmp: all 11 | cmp cdcat /usr/bin/cdcat 12 | cmp cdcat.1 /usr/man/man1/cdcat.1 13 | rm cdcat 14 | 15 | cdcat: cdcat.c 16 | cc $(CFLAGS) -n -s -o cdcat cdcat.c 17 | -------------------------------------------------------------------------------- /usr/contrib/new/chroot/chroot.1: -------------------------------------------------------------------------------- 1 | .\" V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | .\" Copyright (c) 2006 Robert Nordier. All rights reserved. 3 | .TH CHROOT 1 4 | .SH NAME 5 | chroot \- change root directory 6 | .SH SYNOPSIS 7 | .B chroot 8 | path command ... 9 | .SH DESCRIPTION 10 | .I Chroot 11 | changes its current and root directories to 12 | .I path 13 | and then executes 14 | .I command 15 | with any supplied arguments. 16 | -------------------------------------------------------------------------------- /usr/contrib/new/chroot/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | all: chroot 4 | 5 | cp: all 6 | cp chroot /usr/bin 7 | cp chroot.1 /usr/man/man1 8 | rm chroot 9 | 10 | cmp: all 11 | cmp chroot /usr/bin/chroot 12 | cmp chroot.1 /usr/man/man1/chroot.1 13 | rm chroot 14 | 15 | chroot: chroot.c 16 | cc $(CFLAGS) -n -s -o chroot chroot.c 17 | -------------------------------------------------------------------------------- /usr/contrib/new/makeall: -------------------------------------------------------------------------------- 1 | list="cdcat chroot fatfs ptdisk" 2 | 3 | for i in $list 4 | do 5 | (echo "==== $i ===="; cd $i; make cp) 6 | done 7 | -------------------------------------------------------------------------------- /usr/contrib/new/ptdisk/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | all: ptdisk 4 | 5 | cp: all 6 | cp ptdisk /usr/bin 7 | cp ptdisk.1 /usr/man/man1 8 | rm ptdisk 9 | 10 | cmp: all 11 | cmp ptdisk /usr/bin/ptdisk 12 | cmp ptdisk.1 /usr/man/man1/ptdisk.1 13 | rm ptdisk 14 | 15 | ptdisk: ptdisk.c 16 | cc $(CFLAGS) -n -s -o ptdisk ptdisk.c 17 | -------------------------------------------------------------------------------- /usr/contrib/ucb/csh/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O -DTELL -DBUFSIZ=1024 2 | 3 | OBJS = sh.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.func.o sh.glob.o\ 4 | sh.hist.o sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.sem.o\ 5 | sh.set.o sh.wait.o alloc.o sh.init.o printf.o 6 | 7 | all: csh 8 | 9 | cp: all 10 | cp csh /bin 11 | cp csh.1 /usr/man/man1 12 | cp doc/csh /usr/doc 13 | @make clean 14 | 15 | csh: $(OBJS) 16 | cc -s -o csh $(OBJS) 17 | 18 | clean: 19 | rm -f csh $(OBJS) 20 | -------------------------------------------------------------------------------- /usr/contrib/ucb/ex/bcopy.c: -------------------------------------------------------------------------------- 1 | /* block copy from from to to, count bytes */ 2 | static char *sccsid = "@(#)bcopy.c 6.1 10/18/80"; 3 | bcopy(from, to, count) 4 | #ifdef vax 5 | char *from, *to; 6 | int count; 7 | { 8 | 9 | asm(" movc3 12(ap),*4(ap),*8(ap)"); 10 | } 11 | #else 12 | register char *from, *to; 13 | register int count; 14 | { 15 | while (count--) 16 | *to++ = *from++; 17 | } 18 | #endif 19 | -------------------------------------------------------------------------------- /usr/contrib/ucb/ex/doc/edit.1: -------------------------------------------------------------------------------- 1 | .so /usr/man/man1/ex.1 2 | -------------------------------------------------------------------------------- /usr/contrib/ucb/factor/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | all: factor 4 | 5 | cp: all 6 | cp factor /usr/ucb 7 | @make clean 8 | 9 | factor: factor.c 10 | cc $(CFLAGS) -n -s -o factor factor.c 11 | 12 | clean: 13 | rm -f factor 14 | -------------------------------------------------------------------------------- /usr/contrib/ucb/include/local/uparm.h: -------------------------------------------------------------------------------- 1 | #define libpath(file) "/usr/lib/file" 2 | #define loclibpath(file) "/usr/local/lib/file" 3 | #define binpath(file) "/usr/ucb/file" 4 | #define usrpath(file) "/usr/file" 5 | #define E_TERMCAP "/etc/termcap" 6 | #define B_CSH "/bin/csh" 7 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/addstr.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * This routine adds a string starting at (_cury,_curx) 5 | * 6 | * 1/26/81 (Berkeley) @(#)addstr.c 1.1 7 | */ 8 | waddstr(win,str) 9 | reg WINDOW *win; 10 | reg char *str; 11 | { 12 | # ifdef DEBUG 13 | fprintf(outf, "WADDSTR(\"%s\")\n", str); 14 | # endif 15 | while (*str) 16 | if (waddch(win, *str++) == ERR) 17 | return ERR; 18 | return OK; 19 | } 20 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/clear.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * This routine clears the window. 5 | * 6 | * 1/26/81 (Berkeley) @(#)clear.c 1.1 7 | */ 8 | wclear(win) 9 | reg WINDOW *win; { 10 | 11 | if (win == curscr) { 12 | # ifdef DEBUG 13 | fprintf(outf,"WCLEAR: win == curscr\n"); 14 | fprintf(outf,"WCLEAR: curscr = %d\n",curscr); 15 | fprintf(outf,"WCLEAR: stdscr = %d\n",stdscr); 16 | # endif 17 | clear(); 18 | return refresh(); 19 | } 20 | werase(win); 21 | win->_clear = TRUE; 22 | return OK; 23 | } 24 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/curses.ext: -------------------------------------------------------------------------------- 1 | /* 2 | * External variables for the library 3 | * 4 | * @(#)curses.ext 1.2 (Berkeley) 3/5/81 5 | */ 6 | 7 | /* LINTLIBRARY */ 8 | 9 | # include "curses.h" 10 | # include "unctrl.h" 11 | 12 | extern bool _echoit, _rawmode, My_term, _endwin; 13 | 14 | extern char ttytype[], *_unctrl[]; 15 | 16 | extern int _tty_ch, LINES, COLS; 17 | 18 | extern SGTTY _tty; 19 | 20 | char _putchar(); 21 | 22 | #ifdef DEBUG 23 | # define outf _outf 24 | 25 | FILE *outf; 26 | #endif 27 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/delwin.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * This routine deletes a window and releases it back to the system. 5 | * 6 | * 1/26/81 (Berkeley) @(#)delwin.c 1.1 7 | */ 8 | delwin(win) 9 | reg WINDOW *win; { 10 | 11 | reg int i; 12 | 13 | if (!(win->_flags & _SUBWIN)) 14 | for (i = 0; i < win->_maxy && win->_y[i]; i++) 15 | cfree(win->_y[i]); 16 | cfree(win->_y); 17 | cfree(win); 18 | } 19 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/doc/Master: -------------------------------------------------------------------------------- 1 | .ds Ln Screen Package 2 | .so macros 3 | .so intro.0 4 | . \" .bp 5 | . \" .so disclaim 6 | .bp 7 | .so intro.1 8 | .so intro.2.tbl 9 | .so intro.3 10 | .so intro.4 11 | .so intro.5 12 | .so appen.A.tbl 13 | .so c_macros 14 | .so appen.B 15 | .so appen.C 16 | .he ''\*(Ln'' 17 | .bp 18 | .nr % 1 19 | .af % i 20 | .bi Contents 21 | .sp 22 | .xp 23 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/doc/Spellit: -------------------------------------------------------------------------------- 1 | # 2 | foreach f ($argv) 3 | echo /usr/bin/spell $f \> $f.sp 4 | /usr/bin/spell $f > $f.sp 5 | end 6 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/doc/disclaim: -------------------------------------------------------------------------------- 1 | .(x 2 | Disclaimer 3 | .)x 4 | .ev 1 5 | .sp 10 6 | .ps 28 7 | .ce 8 | .b DISCLAIMER 9 | .sp 4 10 | .ps 11 | .ps 18 12 | .pp 13 | This is a preliminary document. 14 | All things in it are subject to change without notice. 15 | Please direct any comments, 16 | suggestions, 17 | or complaints 18 | to Ken Arnold, 19 | via the account 20 | .b Cory:arnold , 21 | or 22 | .b CSVAX.arnold@BERKELEY . 23 | .ps 24 | .ps 28 25 | .sp 4 26 | .ce 27 | .b DISCLAIMER 28 | .ps 29 | .ev 30 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/doc/win_st.c: -------------------------------------------------------------------------------- 1 | # define WINDOW struct _win_st 2 | 3 | struct _win_st { 4 | short _cury, _curx; 5 | short _maxy, _maxx; 6 | short _begy, _begx; 7 | short _flags; 8 | bool _clear; 9 | bool _leave; 10 | bool _scroll; 11 | char **_y; 12 | short *_firstch; 13 | short *_lastch; 14 | }; 15 | 16 | # define _SUBWIN 01 17 | # define _ENDLINE 02 18 | # define _FULLWIN 04 19 | # define _SCROLLWIN 010 20 | # define _STANDOUT 0200 21 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/endwin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Clean things up before exiting 3 | * 4 | * 1/26/81 (Berkeley) %W 5 | */ 6 | 7 | # include "curses.ext" 8 | 9 | endwin() 10 | { 11 | resetty(); 12 | _puts(VE); 13 | _puts(TE); 14 | if (curscr) { 15 | if (curscr->_flags & _STANDOUT) { 16 | _puts(SE); 17 | curscr->_flags &= ~_STANDOUT; 18 | } 19 | _endwin = TRUE; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/getstr.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * This routine gets a string starting at (_cury,_curx) 5 | * 6 | * 4/29/81 (Berkeley) @(#)getstr.c 1.3 7 | */ 8 | wgetstr(win,str) 9 | reg WINDOW *win; 10 | reg char *str; { 11 | 12 | while ((*str = wgetch(win)) != ERR && *str != '\n'); 13 | str++; 14 | if (*str == ERR) { 15 | *str = '\0'; 16 | return ERR; 17 | } 18 | *str = '\0'; 19 | return OK; 20 | } 21 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/longname.c: -------------------------------------------------------------------------------- 1 | # define reg register 2 | 3 | /* 4 | * This routine fills in "def" with the long name of the terminal. 5 | * 6 | * 1/26/81 (Berkeley) @(#)longname.c 1.1 7 | */ 8 | char * 9 | longname(bp, def) 10 | reg char *bp, *def; { 11 | 12 | reg char *cp; 13 | 14 | while (*bp && *bp != ':' && *bp != '|') 15 | bp++; 16 | if (*bp == '|') { 17 | bp++; 18 | cp = bp; 19 | while (*cp && *cp != ':' && *cp != '|') 20 | cp++; 21 | *cp = 0; 22 | return bp; 23 | } 24 | return def; 25 | } 26 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/move.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * This routine moves the cursor to the given point 5 | * 6 | * 1/26/81 (Berkeley) @(#)move.c 1.1 7 | */ 8 | wmove(win, y, x) 9 | reg WINDOW *win; 10 | reg int y, x; { 11 | 12 | # ifdef DEBUG 13 | fprintf(outf, "MOVE to (%d, %d)\n", y, x); 14 | # endif 15 | if (x >= win->_maxx || y >= win->_maxy) 16 | return ERR; 17 | win->_curx = x; 18 | win->_cury = y; 19 | return OK; 20 | } 21 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/mvwin.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * relocate the starting position of a window 5 | * 6 | * 1/26/81 (Berkeley) @(#)mvwin.c 1.1 7 | */ 8 | 9 | mvwin(win, by, bx) 10 | reg WINDOW *win; 11 | reg int by, bx; { 12 | 13 | if (by + win->_maxy > LINES || bx + win->_maxx > COLS) 14 | return ERR; 15 | win->_begy = by; 16 | win->_begx = bx; 17 | touchwin(win); 18 | return OK; 19 | } 20 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/touchwin.c: -------------------------------------------------------------------------------- 1 | # include "curses.ext" 2 | 3 | /* 4 | * make it look like the whole window has been changed. 5 | * 6 | * 1/26/81 (Berkeley) @(#)touchwin.c 1.1 7 | */ 8 | touchwin(win) 9 | reg WINDOW *win; 10 | { 11 | reg int y, maxy, maxx; 12 | 13 | maxy = win->_maxy; 14 | maxx = win->_maxx - 1; 15 | for (y = 0; y < maxy; y++) { 16 | win->_firstch[y] = 0; 17 | win->_lastch[y] = maxx; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /usr/contrib/ucb/libcurses/unctrl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * unctrl.h 3 | * 4 | * 1/26/81 (Berkeley) @(#)unctrl.h 1.1 5 | */ 6 | 7 | extern char *_unctrl[]; 8 | 9 | # define unctrl(ch) (_unctrl[(unsigned) ch]) 10 | -------------------------------------------------------------------------------- /usr/contrib/ucb/makeall: -------------------------------------------------------------------------------- 1 | list="termcap termlib libcurses csh ex factor more primes printenv whereis" 2 | 3 | for i in $list 4 | do 5 | (echo "==== $i ===="; cd $i; make cp) 6 | done 7 | -------------------------------------------------------------------------------- /usr/contrib/ucb/more/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O -I../include 2 | 3 | all: more 4 | 5 | cp: all 6 | cp more /usr/ucb 7 | cp more.help /usr/lib 8 | cp more.1 /usr/man/man1 9 | @make clean 10 | 11 | more: more.o regex.o 12 | cc -n -s -o more more.o regex.o -ltermlib 13 | 14 | clean: 15 | rm -f more *.o 16 | -------------------------------------------------------------------------------- /usr/contrib/ucb/primes/makefile: -------------------------------------------------------------------------------- 1 | 2 | CFLAGS = -O 3 | 4 | all: primes 5 | 6 | cp: all 7 | cp primes /usr/ucb 8 | @make clean 9 | 10 | primes: primes.c 11 | cc $(CFLAGS) -n -s -o primes primes.c -lm 12 | 13 | clean: 14 | rm -f primes 15 | -------------------------------------------------------------------------------- /usr/contrib/ucb/printenv/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | all: printenv 4 | 5 | cp: all 6 | cp printenv /usr/ucb 7 | cp printenv.1 /usr/man/man1 8 | @make clean 9 | 10 | printenv: printenv.c 11 | cc $(CFLAGS) -n -s -o printenv printenv.c 12 | 13 | clean: 14 | rm -f printenv 15 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/makefile: -------------------------------------------------------------------------------- 1 | all: termcap 2 | 3 | cp: all 4 | cp termcap /etc 5 | cp termcap.5 /usr/man/man5 6 | @make clean 7 | 8 | termcap: termcap.src 9 | ed - termcap.src < reorder 10 | 11 | tabset: 12 | mkdir /usr/lib/tabset 13 | cp tabset/* /usr/lib/tabset 14 | 15 | clean: 16 | rm -f termcap 17 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/reorder: -------------------------------------------------------------------------------- 1 | /|adm3|/;.,/^[^ ]/-m0 2 | /|h19|/;.,/^[^ ]/-m0 3 | /|mime|/;.,/^[^ ]/-m0 4 | /|c100|/;.,/^[^ ]/-m0 5 | /|c100rv|/;.,/^[^ ]/-m0 6 | /|2621|/;.,/^[^ ]/-m0 7 | /|adm3a|/;.,/^[^ ]/-m0 8 | /|cons|/;.,/^[^ ]/-m0 9 | 1,/^# ---/g/^s/.m0 10 | 0a 11 | # Do not edit: this file is created automatically from termcap.src. 12 | . 13 | w termcap 14 | q 15 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/tabset/beehive: -------------------------------------------------------------------------------- 1 | 2 |                                                                                 3 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/tabset/diablo: -------------------------------------------------------------------------------- 1 |  9 2 | 2 1 1 1 !1 )1 11 91 A1 I1 Q1 X1 3 | 9 4 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/tabset/std: -------------------------------------------------------------------------------- 1 | 3 1 1 1 1 1 1 1 1 1 1 1 1 1 2 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/tabset/teleray: -------------------------------------------------------------------------------- 1 | GY9(FY90FY98FY9@FY9HFY9PFY9XFY9`FY9hF 2 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/tabset/vt100: -------------------------------------------------------------------------------- 1 | 2 |  3 | H H H H H H H H H H H H H H H H 4 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/tabset/xerox1720: -------------------------------------------------------------------------------- 1 | 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 | 3 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termcap/talk/README: -------------------------------------------------------------------------------- 1 | Wed Jan 28 14:09:18 PST 1981 2 | 3 | These files were used to make slides for a talk about termcap 4 | given at Usenix in January 1980. Between these, the manual pages 5 | for termcap(3), termcap(5), and curses(3), the curses paper, 6 | and a few examples, it should be pretty clear how to use termcap 7 | at any level. 8 | 9 | Mark Horton 10 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termlib/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS= -O -I../include -DCM_N -DCM_GT -DCM_B -DCM_D 2 | 3 | all: termlib.a 4 | 5 | cp: all 6 | cp termlib.a /usr/lib/libtermlib.a 7 | cp termlib.3 /usr/man/man3 8 | @make clean 9 | 10 | termlib.a: termcap.o tgoto.o tputs.o 11 | ar cr termlib.a termcap.o tgoto.o tputs.o 12 | 13 | clean: 14 | rm -f termlib.a *.o 15 | -------------------------------------------------------------------------------- /usr/contrib/ucb/termlib/tc1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * tc1 [term] 3 | * dummy program to test termlib. 4 | * gets entry, counts it, and prints it. 5 | */ 6 | #include 7 | char buf[1024]; 8 | char *getenv(); 9 | 10 | main(argc, argv) char **argv; { 11 | char *p; 12 | int rc; 13 | 14 | if (argc < 2) 15 | p = getenv("TERM"); 16 | else 17 | p = argv[1]; 18 | rc = tgetent(buf,p); 19 | printf("tgetent returns %d, len=%d, text=\n'%s'\n",rc,strlen(buf),buf); 20 | } 21 | -------------------------------------------------------------------------------- /usr/contrib/ucb/whereis/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | all: whereis 4 | 5 | cp: all 6 | cp whereis /usr/ucb 7 | cp whereis.1 /usr/man/man1 8 | @make clean 9 | 10 | whereis: whereis.c 11 | cc $(CFLAGS) -n -s -o whereis whereis.c 12 | 13 | clean: 14 | rm -f whereis 15 | -------------------------------------------------------------------------------- /usr/dict/hlista: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/dict/hlista -------------------------------------------------------------------------------- /usr/dict/hlistb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/dict/hlistb -------------------------------------------------------------------------------- /usr/dict/hstop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/dict/hstop -------------------------------------------------------------------------------- /usr/dict/papers/Ind.ia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/dict/papers/Ind.ia -------------------------------------------------------------------------------- /usr/dict/papers/Ind.ib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/dict/papers/Ind.ib -------------------------------------------------------------------------------- /usr/dict/papers/runinv: -------------------------------------------------------------------------------- 1 | /usr/lib/refer/mkey R* | /usr/lib/refer/inv -v -h997 -n Xind 2 | mv Xind.ia Ind.ia 3 | mv Xind.ib Ind.ib 4 | mv Xind.ic Ind.ic 5 | -------------------------------------------------------------------------------- /usr/dict/spellhist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/dict/spellhist -------------------------------------------------------------------------------- /usr/doc/README: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | This directory contains source for most of the 4 | documents contained in Volume 2 of The UNIX 5 | Programmer's Manual, 7th Edition. 6 | Most use -ms to format; many also use 7 | refer, tbl and eqn. Precise incantations 8 | are engraved in ./run. 9 | 10 | The citations for those papers that use 11 | refer are taken from /usr/dict/papers/Rv7man. 12 | -------------------------------------------------------------------------------- /usr/doc/adv.ed/ae9: -------------------------------------------------------------------------------- 1 | .SH 2 | Acknowledgement 3 | .PP 4 | I am grateful to Ted Dolotta 5 | for his careful reading and valuable suggestions. 6 | .SH 7 | References 8 | .IP [1] 9 | Brian W. Kernighan, 10 | .ul 11 | A Tutorial Introduction to the UNIX Text Editor, 12 | Bell Laboratories internal memorandum. 13 | .IP [2] 14 | Brian W. Kernighan, 15 | .ul 16 | UNIX For Beginners, 17 | Bell Laboratories internal memorandum. 18 | .IP [3] 19 | Ken L. Thompson and Dennis M. Ritchie, 20 | .ul 21 | The UNIX Programmer's Manual. 22 | Bell Laboratories. 23 | -------------------------------------------------------------------------------- /usr/doc/cacm/p.mac: -------------------------------------------------------------------------------- 1 | .de P1 2 | .DS 3 | .. 4 | .de P2 5 | .DE 6 | .. 7 | .de UL 8 | .lg 0 9 | .if n .ul 10 | \%\&\\$3\f3\\$1\fR\&\\$2 11 | .lg 12 | .. 13 | .de UC 14 | \&\\$3\s-1\\$1\\s0\&\\$2 15 | .. 16 | .de IT 17 | .lg 0 18 | .if n .ul 19 | \%\&\\$3\f2\\$1\fR\&\\$2 20 | .lg 21 | .. 22 | .de SP 23 | .sp \\$1 24 | .. 25 | -------------------------------------------------------------------------------- /usr/doc/cman: -------------------------------------------------------------------------------- 1 | Sorry, but for copyright reasons, the source 2 | for the C Reference Manual is not distributed. 3 | -------------------------------------------------------------------------------- /usr/doc/ctour/cdoc0: -------------------------------------------------------------------------------- 1 | .TL 2 | A Tour through the UNIX\(dg C Compiler 3 | .AU "MH 2C517 3770 4 | D. M. Ritchie 5 | .AI 6 | .MH 7 | .OK 8 | Languages 9 | Computing 10 | ..AB 11 | ..AE 12 | .CS a b c d e f 13 | .de II 14 | .I 15 | \\$1 16 | .R 17 | .. 18 | .de Op 19 | .SH 20 | \\$1 \fI\\$2 21 | .IP 22 | .. 23 | .PP 24 | -------------------------------------------------------------------------------- /usr/doc/curses/Master: -------------------------------------------------------------------------------- 1 | .ds Ln Screen Package 2 | .so macros 3 | .so intro.0 4 | . \" .bp 5 | . \" .so disclaim 6 | .bp 7 | .so intro.1 8 | .so intro.2.tbl 9 | .so intro.3 10 | .so intro.4 11 | .so intro.5 12 | .so appen.A.tbl 13 | .so c_macros 14 | .so appen.B 15 | .so appen.C 16 | .he ''\*(Ln'' 17 | .bp 18 | .nr % 1 19 | .af % i 20 | .bi Contents 21 | .sp 22 | .xp 23 | -------------------------------------------------------------------------------- /usr/doc/curses/Spellit: -------------------------------------------------------------------------------- 1 | # 2 | foreach f ($argv) 3 | echo /usr/bin/spell $f \> $f.sp 4 | /usr/bin/spell $f > $f.sp 5 | end 6 | -------------------------------------------------------------------------------- /usr/doc/curses/disclaim: -------------------------------------------------------------------------------- 1 | .(x 2 | Disclaimer 3 | .)x 4 | .ev 1 5 | .sp 10 6 | .ps 28 7 | .ce 8 | .b DISCLAIMER 9 | .sp 4 10 | .ps 11 | .ps 18 12 | .pp 13 | This is a preliminary document. 14 | All things in it are subject to change without notice. 15 | Please direct any comments, 16 | suggestions, 17 | or complaints 18 | to Ken Arnold, 19 | via the account 20 | .b Cory:arnold , 21 | or 22 | .b CSVAX.arnold@BERKELEY . 23 | .ps 24 | .ps 28 25 | .sp 4 26 | .ce 27 | .b DISCLAIMER 28 | .ps 29 | .ev 30 | -------------------------------------------------------------------------------- /usr/doc/curses/win_st.c: -------------------------------------------------------------------------------- 1 | # define WINDOW struct _win_st 2 | 3 | struct _win_st { 4 | short _cury, _curx; 5 | short _maxy, _maxx; 6 | short _begy, _begx; 7 | short _flags; 8 | bool _clear; 9 | bool _leave; 10 | bool _scroll; 11 | char **_y; 12 | short *_firstch; 13 | short *_lastch; 14 | }; 15 | 16 | # define _SUBWIN 01 17 | # define _ENDLINE 02 18 | # define _FULLWIN 04 19 | # define _SCROLLWIN 010 20 | # define _STANDOUT 0200 21 | -------------------------------------------------------------------------------- /usr/doc/eqn/g.mac: -------------------------------------------------------------------------------- 1 | .tr %$ 2 | .de SC 3 | .NH 4 | \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 5 | .. 6 | .de UC 7 | \&\\$3\s-2\\$1\\s+2\\$2 8 | .. 9 | .de P1 10 | .nf 11 | .tr -\(mi 12 | .tr ^. 13 | .tr '\(fm 14 | .ss 18 15 | .if \\n(.$ .DS I \\$1 16 | .if !\\n(.$ .DS 17 | .. 18 | .de P2 19 | .DE 20 | .fi 21 | .ss 12 22 | .tr -- 23 | .tr ^^ 24 | .tr '' 25 | .. 26 | .tr _\(em 27 | -------------------------------------------------------------------------------- /usr/doc/ex/edit.1: -------------------------------------------------------------------------------- 1 | .so /usr/man/man1/ex.1 2 | -------------------------------------------------------------------------------- /usr/doc/scope: -------------------------------------------------------------------------------- 1 | ./run $1 -t | tc 2 | -------------------------------------------------------------------------------- /usr/doc/summary/hel.mac: -------------------------------------------------------------------------------- 1 | .hy 9 2 | .de op 3 | .nr PD 0 4 | .IP \h'1i'\(ci 1i+2 5 | .nr PD .5v 6 | .. 7 | .de sh 8 | .IP "\(sq\ \\$1" 1i 9 | .. 10 | .de OP 11 | .op \\$1 \\$2 \\$3 12 | .. 13 | .de UC 14 | \&\\$3\\s-1\\$1\\s0\\$2\& 15 | .. 16 | -------------------------------------------------------------------------------- /usr/doc/troff/tprint: -------------------------------------------------------------------------------- 1 | troff $* m.mac m0 2 | tbl m0a | troff $* m.mac - 3 | tbl m[1234] | troff $* m.mac - 4 | troff $* m.mac m5 5 | troff $* m.mac table1 6 | troff $* m.mac table2 7 | troff $* m.mac add 8 | -------------------------------------------------------------------------------- /usr/doc/uprog/p8: -------------------------------------------------------------------------------- 1 | .SH 2 | References 3 | .LP 4 | .IP [1] 5 | K. L. Thompson and D. M. Ritchie, 6 | .ul 7 | The 8 | .ul 9 | .UC UNIX 10 | .ul 11 | Programmer's Manual, 12 | Bell Laboratories, 1978. 13 | .IP [2] 14 | B. W. Kernighan and D. M. Ritchie, 15 | .ul 16 | The C Programming Language, 17 | Prentice-Hall, Inc., 1978. 18 | .IP [3] 19 | B. W. Kernighan, 20 | .UC UNIX \& `` 21 | for Beginners \(em Second Edition.'' 22 | Bell Laboratories, 1978. 23 | -------------------------------------------------------------------------------- /usr/games/arithmetic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/arithmetic -------------------------------------------------------------------------------- /usr/games/backgammon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/backgammon -------------------------------------------------------------------------------- /usr/games/fish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/fish -------------------------------------------------------------------------------- /usr/games/fortune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/fortune -------------------------------------------------------------------------------- /usr/games/hangman: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/hangman -------------------------------------------------------------------------------- /usr/games/quiz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/quiz -------------------------------------------------------------------------------- /usr/games/quiz.k/babies: -------------------------------------------------------------------------------- 1 | cub:lion|tiger|bear 2 | kitten:cat|fox|skunk|rabbit|bobcat|panther 3 | gosling:goose 4 | colt|foal:horse|donkey|zebra 5 | puppy:dog 6 | pup:seal|fox|beaver 7 | duckling:duck 8 | fawn:deer 9 | piglet|shoat:pig 10 | lamb:sheep 11 | kid:goat|antelope 12 | chick:chicken 13 | tadpole|polliwog:frog|toad 14 | joey:kangaroo 15 | calf:cow|whale|moose|elephant|buffalo|giraffe 16 | caterpillar:butterfly|moth 17 | elver:eel 18 | eaglet:eagle 19 | owlet:owl 20 | fingerling|fry:fish 21 | nestling:bird 22 | -------------------------------------------------------------------------------- /usr/games/quiz.k/chinese: -------------------------------------------------------------------------------- 1 | rabbit:dragon 2 | dragon:snake 3 | snake:horse 4 | horse:sheep 5 | sheep:monkey 6 | monkey:rooster 7 | rooster:dog 8 | dog:boar 9 | boar:rat 10 | rat:ox 11 | ox:tiger 12 | tiger:rabbit 13 | -------------------------------------------------------------------------------- /usr/games/quiz.k/greek: -------------------------------------------------------------------------------- 1 | $luw$:{I} [loose|destroy] 2 | $eluon$:{I} [loosed|destroyed|was loosing|was destroying] 3 | $elusa$:{I} [loosed|destroyed] 4 | $leluka$:{I} have [loosed|destroyed] 5 | $lusw$:{I} will [loose|destroy] 6 | $luswn$:[loosing|destroying] 7 | $lusas$:{having} [loosed|destroyed] 8 | -------------------------------------------------------------------------------- /usr/games/quiz.k/inca: -------------------------------------------------------------------------------- 1 | manco capac:sinchi roca 2 | sinchi roca:lloque yupanqui 3 | lloque yupanqui:mayta capac 4 | mayta capac:capac yupanqui 5 | capac yupanqui:inca roca 6 | inca roca:yahuar huacac 7 | yahuar huacac:viracocha 8 | viracocha:pachacuti 9 | pachacuti:tupa inca yupanqui 10 | tupa inca yupanqui:huayna capac 11 | huayna capac:huascar 12 | huascar:atahuallpa 13 | -------------------------------------------------------------------------------- /usr/games/quiz.k/locomotive: -------------------------------------------------------------------------------- 1 | 4-4-0:American 2 | 4-6-0:Mogul 3 | 4-4-2:Atlantic 4 | 4-6-2:Pacific 5 | 2-8-0:Consolidation 6 | 2-8-2:Mikado 7 | 4-8-2:Mountain 8 | 2-8-4:Berkshire 9 | 4-6-4:Hudson 10 | 4-8-4:Northern 11 | 2-10-2:Decapod 12 | -------------------------------------------------------------------------------- /usr/games/quiz.k/midearth: -------------------------------------------------------------------------------- 1 | Shire:Michel Delving|Hobbiton 2 | Mordor:Minas Morgul 3 | Gondor:Minas Tirith 4 | Umbar:{City of the }Corsairs 5 | Rhovanion:Esgaroth{ upon the Long Lake} 6 | Rohan:Edoras 7 | Lothl['o|o|o']rien:Caras Galadon 8 | Breeland:Bree 9 | Arnor:Ann['u|u'|u]minas 10 | Arthedain:Fornost{ Erain}|Norbury of the Kings 11 | -------------------------------------------------------------------------------- /usr/games/quiz.k/morse: -------------------------------------------------------------------------------- 1 | A:.- 2 | B:-... 3 | C:-.-. 4 | D:-.. 5 | E:. 6 | F:..-. 7 | G:--. 8 | H:.... 9 | I:.. 10 | J:.--- 11 | K:-.- 12 | L:.-.. 13 | M:-- 14 | N:-. 15 | O:--- 16 | P:.--. 17 | Q:--.- 18 | R:.-. 19 | S:... 20 | T:- 21 | U:..- 22 | V:...- 23 | W:.-- 24 | X:-..- 25 | Y:-.-- 26 | Z:--.. 27 | -------------------------------------------------------------------------------- /usr/games/quiz.k/province: -------------------------------------------------------------------------------- 1 | Newfoundland{ and Labrador}:[St.|Saint] John's 2 | New Brunswick:Fredericton 3 | Prince Edward Island:Charlottetown 4 | Nova Scotia:Halifax 5 | Quebec:Quebec 6 | Ontario:Toronto 7 | Manitoba:Winnipeg 8 | Saskatchewan:Regina 9 | Alberta:Edmonton 10 | British Columbia:Victoria 11 | Yukon Territory:Whitehorse 12 | Northwest Territories:Yellowknife 13 | Canada:Ottawa 14 | -------------------------------------------------------------------------------- /usr/games/quiz.k/sexes: -------------------------------------------------------------------------------- 1 | Y|y:X|x 2 | abbot:abbess 3 | alumnus:alumna 4 | ambassador:ambassadress 5 | boar:sow 6 | buck:doe 7 | bull:cow 8 | cob:pen 9 | colt:filly 10 | curator:curatrix 11 | dog:bitch|vixen 12 | duke:duchess 13 | drake:duck 14 | effeminate|womanish:mannish 15 | gander:goose 16 | gentleman:lady|gentlewoman 17 | jack:jenny 18 | lad:lass 19 | manly:womanly 20 | marquis:marchioness[|e]|marquise 21 | monk:nun 22 | [O|o]edipus complex:[E|e]lectra[| complex] 23 | prince:princess 24 | ram:ewe 25 | rooster|cock:hen 26 | stallion:mare 27 | -------------------------------------------------------------------------------- /usr/games/quiz.k/spell: -------------------------------------------------------------------------------- 1 | The son went behind a cloud.:sun 2 | Did you see the monky at the zoo?:monkey 3 | -------------------------------------------------------------------------------- /usr/games/words: -------------------------------------------------------------------------------- 1 | egrep '^[-'$1']*$' /usr/dict/words ^ sed -n "`/usr/games/words1 $1`" 2 | -------------------------------------------------------------------------------- /usr/games/wump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/games/wump -------------------------------------------------------------------------------- /usr/include/ar.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define ARMAG 0177545 4 | struct ar_hdr { 5 | char ar_name[14]; 6 | long ar_date; 7 | char ar_uid; 8 | char ar_gid; 9 | int ar_mode; 10 | long ar_size; 11 | }; 12 | -------------------------------------------------------------------------------- /usr/include/assert.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # ifndef NDEBUG 4 | # define _assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__, __LINE__);exit(1);}} 5 | # define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__, __LINE__);exit(1);}} 6 | # else 7 | # define _assert(ex) ; 8 | # define assert(ex) ; 9 | # endif 10 | -------------------------------------------------------------------------------- /usr/include/core.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* machine dependent stuff for core files */ 4 | #define TXTRNDSIZ 8192L 5 | #define stacktop(siz) (0x10000L) 6 | #define stackbas(siz) (0x10000L-siz) 7 | -------------------------------------------------------------------------------- /usr/include/execargs.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | /* Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | char **execargs = (char**)(0x400000-4); 5 | -------------------------------------------------------------------------------- /usr/include/grp.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct group { /* see getgrent(3) */ 4 | char *gr_name; 5 | char *gr_passwd; 6 | int gr_gid; 7 | char **gr_mem; 8 | }; 9 | -------------------------------------------------------------------------------- /usr/include/ident.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | char myname[] = "research 11/70"; 4 | -------------------------------------------------------------------------------- /usr/include/math.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | extern double fabs(), floor(), ceil(), fmod(), ldexp(); 4 | extern double sqrt(), hypot(), atof(); 5 | extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2(); 6 | extern double exp(), log(), log10(), pow(); 7 | extern double sinh(), cosh(), tanh(); 8 | extern double gamma(); 9 | extern double j0(), j1(), jn(), y0(), y1(), yn(); 10 | 11 | #define HUGE 1.701411733192644270e38 12 | #define LOGHUGE 39 13 | -------------------------------------------------------------------------------- /usr/include/pwd.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct passwd { /* see getpwent(3) */ 4 | char *pw_name; 5 | char *pw_passwd; 6 | int pw_uid; 7 | int pw_gid; 8 | int pw_quota; 9 | char *pw_comment; 10 | char *pw_gecos; 11 | char *pw_dir; 12 | char *pw_shell; 13 | }; 14 | -------------------------------------------------------------------------------- /usr/include/setjmp.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | /* Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | typedef int jmp_buf[8]; 5 | -------------------------------------------------------------------------------- /usr/include/symbol.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Structure of a symbol table entry 5 | */ 6 | 7 | struct symbol { 8 | char sy_name[8]; 9 | char sy_type; 10 | int sy_value; 11 | }; 12 | -------------------------------------------------------------------------------- /usr/include/sys/dir.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #ifndef DIRSIZ 4 | #define DIRSIZ 14 5 | #endif 6 | struct direct 7 | { 8 | ino_t d_ino; 9 | char d_name[DIRSIZ]; 10 | }; 11 | -------------------------------------------------------------------------------- /usr/include/sys/fblk.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct fblk 4 | { 5 | int df_nfree; 6 | daddr_t df_free[NICFREE]; 7 | }; 8 | -------------------------------------------------------------------------------- /usr/include/sys/map.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct map 4 | { 5 | short m_size; 6 | unsigned short m_addr; 7 | }; 8 | 9 | struct map coremap[CMAPSIZ]; /* space for core allocation */ 10 | struct map swapmap[SMAPSIZ]; /* space for swap allocation */ 11 | -------------------------------------------------------------------------------- /usr/include/sys/mount.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Mount structure. 5 | * One allocated on every mount. 6 | * Used to find the super block. 7 | */ 8 | struct mount 9 | { 10 | dev_t m_dev; /* device mounted */ 11 | struct buf *m_bufp; /* pointer to superblock */ 12 | struct inode *m_inodp; /* pointer to mounted on inode */ 13 | } mount[NMOUNT]; 14 | -------------------------------------------------------------------------------- /usr/include/sys/prim.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define NOSLEEP 0400 4 | #define FORCE 01000 5 | #define NORM 02000 6 | #define KEEP 04000 7 | #define CLR 010000 8 | 9 | int bwaiting,wcount; 10 | 11 | char *getepack(); 12 | -------------------------------------------------------------------------------- /usr/include/sys/seg.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | /* Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | #define RO 05 /* access abilities */ 5 | #define RW 07 6 | -------------------------------------------------------------------------------- /usr/include/sys/timeb.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Structure returned by ftime system call 5 | */ 6 | struct timeb { 7 | time_t time; 8 | unsigned short millitm; 9 | short timezone; 10 | short dstflag; 11 | }; 12 | -------------------------------------------------------------------------------- /usr/include/sys/times.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Structure returned by times() 5 | */ 6 | struct tms { 7 | time_t tms_utime; /* user time */ 8 | time_t tms_stime; /* system time */ 9 | time_t tms_cutime; /* user time, children */ 10 | time_t tms_cstime; /* system time, children */ 11 | }; 12 | -------------------------------------------------------------------------------- /usr/include/time.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct tm { /* see ctime(3) */ 4 | int tm_sec; 5 | int tm_min; 6 | int tm_hour; 7 | int tm_mday; 8 | int tm_mon; 9 | int tm_year; 10 | int tm_wday; 11 | int tm_yday; 12 | int tm_isdst; 13 | }; 14 | -------------------------------------------------------------------------------- /usr/include/tp_defs.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | char mt[] = "/dev/mt0"; 4 | char tc[] = "/dev/tapx"; 5 | int flags = flu; 6 | char mheader[] = "/usr/mdec/mboot"; 7 | char theader[] = "/usr/mdec/tboot"; 8 | -------------------------------------------------------------------------------- /usr/include/unctrl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * unctrl.h 3 | * 4 | * 1/26/81 (Berkeley) @(#)unctrl.h 1.1 5 | */ 6 | 7 | extern char *_unctrl[]; 8 | 9 | # define unctrl(ch) (_unctrl[(unsigned) ch]) 10 | -------------------------------------------------------------------------------- /usr/include/utmp.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct utmp { 4 | char ut_line[8]; /* tty name */ 5 | char ut_name[8]; /* user id */ 6 | long ut_time; /* time on */ 7 | }; 8 | -------------------------------------------------------------------------------- /usr/include/varargs.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | typedef char *va_list; 4 | # define va_dcl int va_alist; 5 | # define va_start(list) list = (char *) &va_alist 6 | # define va_end(list) 7 | # define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1] 8 | -------------------------------------------------------------------------------- /usr/include/whoami.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define sysname "where I am" 4 | -------------------------------------------------------------------------------- /usr/lib/atrun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/atrun -------------------------------------------------------------------------------- /usr/lib/calendar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/calendar -------------------------------------------------------------------------------- /usr/lib/cign: -------------------------------------------------------------------------------- 1 | auto 4 2 | break 5 3 | case 5 4 | char 4 5 | continue 5 6 | default 5 7 | do 5 8 | double 4 9 | else 5 10 | extern 2 11 | float 4 12 | for 5 13 | goto 5 14 | if 5 15 | int 4 16 | long 4 17 | register 4 18 | return 5 19 | static 4 20 | struct 3 21 | switch 5 22 | while 5 23 | -------------------------------------------------------------------------------- /usr/lib/crontab: -------------------------------------------------------------------------------- 1 | 0,10,20,30,40,50 * * * * /etc/dmesg - >>/usr/adm/messages 2 | 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/atrun 3 | 20 1 * * * /usr/bin/calendar - 4 | -------------------------------------------------------------------------------- /usr/lib/diff3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/diff3 -------------------------------------------------------------------------------- /usr/lib/diffh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/diffh -------------------------------------------------------------------------------- /usr/lib/ex3.6preserve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/ex3.6preserve -------------------------------------------------------------------------------- /usr/lib/ex3.6recover: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/ex3.6recover -------------------------------------------------------------------------------- /usr/lib/font/ftB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftB -------------------------------------------------------------------------------- /usr/lib/font/ftBC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftBC -------------------------------------------------------------------------------- /usr/lib/font/ftC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftC -------------------------------------------------------------------------------- /usr/lib/font/ftCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftCE -------------------------------------------------------------------------------- /usr/lib/font/ftCI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftCI -------------------------------------------------------------------------------- /usr/lib/font/ftCK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftCK -------------------------------------------------------------------------------- /usr/lib/font/ftCS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftCS -------------------------------------------------------------------------------- /usr/lib/font/ftCW: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftCW -------------------------------------------------------------------------------- /usr/lib/font/ftG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftG -------------------------------------------------------------------------------- /usr/lib/font/ftGI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftGI -------------------------------------------------------------------------------- /usr/lib/font/ftGM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftGM -------------------------------------------------------------------------------- /usr/lib/font/ftGR: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftGR -------------------------------------------------------------------------------- /usr/lib/font/ftI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftI -------------------------------------------------------------------------------- /usr/lib/font/ftL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftL -------------------------------------------------------------------------------- /usr/lib/font/ftLI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftLI -------------------------------------------------------------------------------- /usr/lib/font/ftPA: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftPA -------------------------------------------------------------------------------- /usr/lib/font/ftPB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftPB -------------------------------------------------------------------------------- /usr/lib/font/ftPI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftPI -------------------------------------------------------------------------------- /usr/lib/font/ftR: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftR -------------------------------------------------------------------------------- /usr/lib/font/ftS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftS -------------------------------------------------------------------------------- /usr/lib/font/ftSB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftSB -------------------------------------------------------------------------------- /usr/lib/font/ftSI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftSI -------------------------------------------------------------------------------- /usr/lib/font/ftSM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftSM -------------------------------------------------------------------------------- /usr/lib/font/ftUD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftUD -------------------------------------------------------------------------------- /usr/lib/font/ftXM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/font/ftXM -------------------------------------------------------------------------------- /usr/lib/learn/C.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/C.a -------------------------------------------------------------------------------- /usr/lib/learn/Linfo: -------------------------------------------------------------------------------- 1 | files 2 | editor 3 | morefiles 4 | macros 5 | eqn 6 | C 7 | -------------------------------------------------------------------------------- /usr/lib/learn/editor.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/editor.a -------------------------------------------------------------------------------- /usr/lib/learn/eqn.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/eqn.a -------------------------------------------------------------------------------- /usr/lib/learn/files.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/files.a -------------------------------------------------------------------------------- /usr/lib/learn/lcount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/lcount -------------------------------------------------------------------------------- /usr/lib/learn/macros.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/macros.a -------------------------------------------------------------------------------- /usr/lib/learn/morefiles.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/morefiles.a -------------------------------------------------------------------------------- /usr/lib/learn/tee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/learn/tee -------------------------------------------------------------------------------- /usr/lib/libcurses.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/libcurses.a -------------------------------------------------------------------------------- /usr/lib/libdbm.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/libdbm.a -------------------------------------------------------------------------------- /usr/lib/libmp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/libmp.a -------------------------------------------------------------------------------- /usr/lib/libtermlib.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/libtermlib.a -------------------------------------------------------------------------------- /usr/lib/lint1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/lint1 -------------------------------------------------------------------------------- /usr/lib/lint2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/lint2 -------------------------------------------------------------------------------- /usr/lib/makekey: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/makekey -------------------------------------------------------------------------------- /usr/lib/refer/hunt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/refer/hunt -------------------------------------------------------------------------------- /usr/lib/refer/inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/refer/inv -------------------------------------------------------------------------------- /usr/lib/refer/mkey: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/refer/mkey -------------------------------------------------------------------------------- /usr/lib/spell: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/spell -------------------------------------------------------------------------------- /usr/lib/struct/beautify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/struct/beautify -------------------------------------------------------------------------------- /usr/lib/struct/structure: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/struct/structure -------------------------------------------------------------------------------- /usr/lib/term/tab300: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab300 -------------------------------------------------------------------------------- /usr/lib/term/tab300-12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab300-12 -------------------------------------------------------------------------------- /usr/lib/term/tab300s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab300s -------------------------------------------------------------------------------- /usr/lib/term/tab300s-12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab300s-12 -------------------------------------------------------------------------------- /usr/lib/term/tab37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab37 -------------------------------------------------------------------------------- /usr/lib/term/tab450: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab450 -------------------------------------------------------------------------------- /usr/lib/term/tab450-12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab450-12 -------------------------------------------------------------------------------- /usr/lib/term/tab450-12-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab450-12-8 -------------------------------------------------------------------------------- /usr/lib/term/tab832: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tab832 -------------------------------------------------------------------------------- /usr/lib/term/taba1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/taba1 -------------------------------------------------------------------------------- /usr/lib/term/tablp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tablp -------------------------------------------------------------------------------- /usr/lib/term/tabtn300: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/term/tabtn300 -------------------------------------------------------------------------------- /usr/lib/uucp/L-devices: -------------------------------------------------------------------------------- 1 | tty0 dn1 300 2 | -------------------------------------------------------------------------------- /usr/lib/uucp/L-dialcodes: -------------------------------------------------------------------------------- 1 | inwats 800 2 | -------------------------------------------------------------------------------- /usr/lib/uucp/L.sys: -------------------------------------------------------------------------------- 1 | Format of these lines is: sysname time to call : device needed : speed 2 | res70 Any ACU 300 mh0000 login nuucp assword: fatchance 3 | -------------------------------------------------------------------------------- /usr/lib/uucp/USERFILE: -------------------------------------------------------------------------------- 1 | , / 2 | -------------------------------------------------------------------------------- /usr/lib/uucp/uucico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/uucp/uucico -------------------------------------------------------------------------------- /usr/lib/uucp/uuclean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/uucp/uuclean -------------------------------------------------------------------------------- /usr/lib/uucp/uuxqt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/lib/uucp/uuxqt -------------------------------------------------------------------------------- /usr/man/man0/ptxmac: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .de xx 3 | .if !""\\$1" \\$1\fI\a\fR\\$2\t\\$3\fI\a\fR\t\\$5 4 | .if !""\\$4" \t\\$2\t\\$3\fI\a\fR\\$4\t\\$5 5 | .if ""\\$1\\$4" \t\\$2\t\\$3\fI\a\fR\t\\$5 6 | .. 7 | .cs I 30 8 | .TL 9 | PERMUTED INDEX 10 | .LP 11 | .SM 12 | .nr VS 9 13 | .vs \n(VSp 14 | .nf 15 | .ta 2.7iR 2.85iL 5.65iR 6.5iR 16 | .af PN i 17 | .pn 9 18 | -------------------------------------------------------------------------------- /usr/man/man0/xx: -------------------------------------------------------------------------------- 1 | .TH NAME SECTION local 2 | .SH NAME 3 | .SH SYNOPSIS 4 | .SH DESCRIPTION 5 | .SH FILES 6 | .SH SEE ALSO 7 | .SH DIAGNOSTICS 8 | .SH BUGS 9 | -------------------------------------------------------------------------------- /usr/man/man1/cb.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH CB 1 3 | .SH NAME 4 | cb \- C program beautifier 5 | .SH SYNOPSIS 6 | .B cb 7 | .SH DESCRIPTION 8 | .I Cb 9 | places a copy of the C program from the standard input 10 | on the standard output with spacing and indentation 11 | that displays the structure of the program. 12 | .SH BUGS 13 | -------------------------------------------------------------------------------- /usr/man/man1/chroot.1: -------------------------------------------------------------------------------- 1 | .\" V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | .\" Copyright (c) 2006 Robert Nordier. All rights reserved. 3 | .TH CHROOT 1 4 | .SH NAME 5 | chroot \- change root directory 6 | .SH SYNOPSIS 7 | .B chroot 8 | path command ... 9 | .SH DESCRIPTION 10 | .I Chroot 11 | changes its current and root directories to 12 | .I path 13 | and then executes 14 | .I command 15 | with any supplied arguments. 16 | -------------------------------------------------------------------------------- /usr/man/man1/df.1m: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH DF 1M 3 | .SH NAME 4 | df \- disk free 5 | .SH SYNOPSIS 6 | .B df 7 | [ filesystem ] ... 8 | .SH DESCRIPTION 9 | .I Df 10 | prints out the number of free blocks 11 | available on the 12 | .I filesystems. 13 | If no file system is specified, 14 | the free space on all of 15 | the normally mounted file systems 16 | is printed. 17 | .SH FILES 18 | Default file systems vary with installation. 19 | .SH "SEE ALSO" 20 | icheck(1) 21 | -------------------------------------------------------------------------------- /usr/man/man1/file.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH FILE 1 3 | .SH NAME 4 | file \- determine file type 5 | .SH SYNOPSIS 6 | .B file 7 | file ... 8 | .SH DESCRIPTION 9 | .I File 10 | performs a series of tests on each argument 11 | in an attempt to classify it. 12 | If an argument appears to be ascii, 13 | .I file 14 | examines the first 512 bytes 15 | and tries to guess its language. 16 | .SH BUGS 17 | It often makes mistakes. 18 | In particular it often suggests that 19 | command files are C programs. 20 | -------------------------------------------------------------------------------- /usr/man/man1/printenv.1: -------------------------------------------------------------------------------- 1 | .TH PRINTENV UCB 2/24/79 UCB 2 | .SH NAME 3 | printenv \- print out the environment 4 | .SH SYNOPSIS 5 | .B printenv 6 | [ name ] 7 | .SH DESCRIPTION 8 | .I Printenv 9 | prints out the values of the variables in the environment. 10 | If a 11 | .I name 12 | is specified, only its 13 | value is printed. 14 | .PP 15 | If a 16 | .I name 17 | is specified and it is not defined in the environment, 18 | .I printenv 19 | returns exit status 1, else it returns status 0. 20 | .SH SEE ALSO 21 | sh(1), environ(5), csh(UCB) 22 | .SH BUGS 23 | -------------------------------------------------------------------------------- /usr/man/man1/pwd.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH PWD 1 3 | .SH NAME 4 | pwd \- working directory name 5 | .SH SYNOPSIS 6 | .B pwd 7 | .SH DESCRIPTION 8 | .I Pwd 9 | prints the pathname of the working (current) directory. 10 | .SH "SEE ALSO" 11 | cd(1) 12 | -------------------------------------------------------------------------------- /usr/man/man1/rev.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH REV 1 3 | .SH NAME 4 | rev \- reverse lines of a file 5 | .SH SYNOPSIS 6 | .B rev 7 | [ file ] ... 8 | .SH DESCRIPTION 9 | .I Rev 10 | copies the named files to the standard output, 11 | reversing the order of characters in every line. 12 | If no file is specified, the standard input is copied. 13 | -------------------------------------------------------------------------------- /usr/man/man1/size.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH SIZE 1 3 | .SH NAME 4 | size \- size of an object file 5 | .SH SYNOPSIS 6 | .B size 7 | [ object ... ] 8 | .SH DESCRIPTION 9 | .I Size 10 | prints the (decimal) number of bytes 11 | required by the 12 | text, data, and bss 13 | portions, and their sum in octal and decimal, 14 | of each object-file argument. 15 | If no file is specified, 16 | .B a.out 17 | is used. 18 | .SH "SEE ALSO" 19 | a.out(5) 20 | -------------------------------------------------------------------------------- /usr/man/man1/sync.1m: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH SYNC 1M 3 | .SH NAME 4 | sync \- update the super block 5 | .SH SYNOPSIS 6 | .B sync 7 | .SH DESCRIPTION 8 | .I Sync 9 | executes the 10 | .I sync 11 | system primitive. 12 | If the system is to be stopped, 13 | .I sync 14 | must be called to insure 15 | file system integrity. 16 | See 17 | .IR sync (2) 18 | for details. 19 | .SH "SEE ALSO" 20 | sync(2), update(8) 21 | -------------------------------------------------------------------------------- /usr/man/man1/tee.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH TEE 1 3 | .SH NAME 4 | tee \- pipe fitting 5 | .SH SYNOPSIS 6 | .B tee 7 | [ 8 | .B \-i 9 | ] [ 10 | .B \-a 11 | ] 12 | [ file ] ... 13 | .SH DESCRIPTION 14 | .I Tee 15 | transcribes the standard input to the standard 16 | output and makes copies in the 17 | .I files. 18 | Option 19 | .B \-i 20 | ignores interrupts; 21 | option 22 | .B \-a 23 | causes the output to be appended to the 24 | .I files 25 | rather than overwriting them. 26 | -------------------------------------------------------------------------------- /usr/man/man1/tty.1: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH TTY 1 3 | .SH NAME 4 | tty \- get terminal name 5 | .SH SYNOPSIS 6 | .B tty 7 | .SH DESCRIPTION 8 | .I Tty 9 | prints the pathname of the user's terminal. 10 | .SH DIAGNOSTICS 11 | `not a tty' if the standard input file is not a terminal. 12 | -------------------------------------------------------------------------------- /usr/man/man2/getpid.2: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH GETPID 2 3 | .SH NAME 4 | getpid \- get process identification 5 | .SH SYNOPSIS 6 | .B getpid( ) 7 | .SH DESCRIPTION 8 | .I Getpid 9 | returns 10 | the process ID of 11 | the current process. 12 | Most often it is used to generate 13 | uniquely-named 14 | temporary files. 15 | .SH "SEE ALSO" 16 | mktemp(3) 17 | .SH ASSEMBLER 18 | (getpid = 20.) 19 | .br 20 | .B sys getpid 21 | .br 22 | (pid in r0) 23 | -------------------------------------------------------------------------------- /usr/man/man2/pause.2: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH PAUSE 2 3 | .SH NAME 4 | pause \- stop until signal 5 | .SH SYNOPSIS 6 | .B pause( ) 7 | .SH DESCRIPTION 8 | .I Pause 9 | never returns normally. 10 | It is used to give up control while waiting for 11 | a signal from 12 | .IR kill (2) 13 | or 14 | .IR alarm (2). 15 | .SH SEE ALSO 16 | kill(1), kill(2), alarm(2), signal(2), setjmp(3) 17 | .SH ASSEMBLER 18 | (pause = 29.) 19 | .br 20 | .B sys pause 21 | -------------------------------------------------------------------------------- /usr/man/man3/abort.3: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH ABORT 3 3 | .SH NAME 4 | abort \- generate IOT fault 5 | .SH DESCRIPTION 6 | .I Abort 7 | executes the PDP11 IOT instruction. 8 | This causes a signal that normally terminates 9 | the process with a core dump, which may be used for debugging. 10 | .SH SEE ALSO 11 | adb(1), signal(2), exit(2) 12 | .SH DIAGNOSTICS 13 | Usually `IOT trap \- core dumped' from the shell. 14 | -------------------------------------------------------------------------------- /usr/man/man3/abs.3: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH ABS 3 3 | .SH NAME 4 | abs \- integer absolute value 5 | .SH SYNOPSIS 6 | .B abs(i) 7 | .SH DESCRIPTION 8 | .I Abs 9 | returns 10 | the absolute value of its integer operand. 11 | .SH SEE ALSO 12 | floor(3) for 13 | .I fabs 14 | .SH BUGS 15 | You get what the hardware gives on the largest negative integer. 16 | -------------------------------------------------------------------------------- /usr/man/man3/getenv.3: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH GETENV 3 3 | .SH NAME 4 | getenv \- value for environment name 5 | .SH SYNOPSIS 6 | .B char *getenv(name) 7 | .br 8 | .B char *name; 9 | .SH DESCRIPTION 10 | .I Getenv 11 | .a 12 | searches the environment list 13 | (see 14 | .IR environ (5)) 15 | for a string of the form 16 | .IB name = value 17 | and returns 18 | .I value 19 | if such a string is present, otherwise 0 (NULL). 20 | .SH SEE ALSO 21 | environ(5), exec(2) 22 | -------------------------------------------------------------------------------- /usr/man/man3/swab.3: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH SWAB 3 3 | .SH NAME 4 | swab \- swap bytes 5 | .SH SYNOPSIS 6 | .B swab(from, to, nbytes) 7 | .br 8 | .B char *from, *to; 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 | PDP11's and other machines. 20 | .I Nbytes 21 | should be even. 22 | -------------------------------------------------------------------------------- /usr/man/man4/cd.4: -------------------------------------------------------------------------------- 1 | .\" V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | .\" Copyright (c) 2007 Robert Nordier. All rights reserved. 3 | .TH CD 4 4 | .SH NAME 5 | cd \- ATAPI CDROM drive 6 | .SH DESCRIPTION 7 | This driver provides access to ATAPI CDROM drives. 8 | .PP 9 | CDROM blocks are 2048 bytes in size; consequently all access 10 | must bypass the system's normal buffering mechanism. 11 | Read counts and seek offsets should be a multiple of 2048 bytes. 12 | .SH FILES 13 | /dev/cd? 14 | .SH "SEE ALSO" 15 | cdcat(1) 16 | -------------------------------------------------------------------------------- /usr/man/man4/null.4: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH NULL 4 3 | .SH NAME 4 | null \- data sink 5 | .SH DESCRIPTION 6 | Data written on 7 | a null special file 8 | is discarded. 9 | .PP 10 | Reads from 11 | a null special file 12 | always return 0 bytes. 13 | .SH FILES 14 | /dev/null 15 | -------------------------------------------------------------------------------- /usr/man/man6/backgammon.6: -------------------------------------------------------------------------------- 1 | .\" UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | .TH BACKGAMMON 6 3 | .SH NAME 4 | backgammon \- the game 5 | .SH SYNOPSIS 6 | .B /usr/games/backgammon 7 | .SH DESCRIPTION 8 | This program does what you expect. 9 | It will ask whether you need instructions. 10 | -------------------------------------------------------------------------------- /usr/pub/greek: -------------------------------------------------------------------------------- 1 | alpha A A | beta B B | gamma \ \ 2 | GAMMA G G | delta D D | DELTA W W 3 | epsilon S S | zeta Q Q | eta N N 4 | THETA T T | theta O O | lambda L L 5 | LAMBDA E E | mu M M | nu @ @ 6 | xi X X | pi J J | PI P P 7 | rho K K | sigma Y Y | SIGMA R R 8 | tau I I | phi U U | PHI F F 9 | psi V V | PSI H H | omega C C 10 | OMEGA Z Z | nabla [ [ | not _ _ 11 | partial ] ] | integral ^ ^ 12 | -------------------------------------------------------------------------------- /usr/release/version: -------------------------------------------------------------------------------- 1 | V7/x86 0.8a 2 | -------------------------------------------------------------------------------- /usr/spool/at/lasttimedone: -------------------------------------------------------------------------------- 1 | 1455 2 | -------------------------------------------------------------------------------- /usr/spool/dpd/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/spool/dpd/empty -------------------------------------------------------------------------------- /usr/spool/mail/root: -------------------------------------------------------------------------------- 1 | From bin Thu Jan 11 19:28:15 1979 2 | Secret mail has arrived. 3 | 4 | -------------------------------------------------------------------------------- /usr/spool/secretmail/bin.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/spool/secretmail/bin.key -------------------------------------------------------------------------------- /usr/spool/secretmail/notice: -------------------------------------------------------------------------------- 1 | Secret mail has arrived. 2 | -------------------------------------------------------------------------------- /usr/spool/secretmail/root.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/spool/secretmail/root.0 -------------------------------------------------------------------------------- /usr/spool/secretmail/root.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/spool/secretmail/root.key -------------------------------------------------------------------------------- /usr/src/cmd/accton.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | main(argc, argv) 4 | char **argv; 5 | { 6 | extern errno; 7 | if (argc > 1) 8 | acct(argv[1]); 9 | else 10 | acct((char *)0); 11 | if (errno) { 12 | perror("accton"); 13 | exit(1); 14 | } 15 | exit(0); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/cmd/adb/optab.h: -------------------------------------------------------------------------------- 1 | /* V7/x86 source code: see www.nordier.com/v7x86 for details. */ 2 | /* Copyright (c) 2007 Robert Nordier. All rights reserved. */ 3 | 4 | #define FX 0x8000 5 | #define FC 0x4000 6 | #define FJ 0x2000 7 | 8 | struct tab { 9 | unsigned char mask, val; 10 | short num; 11 | char cmd[4]; 12 | }; 13 | 14 | struct tabs { 15 | unsigned val; 16 | short sz; 17 | struct tab *tab; 18 | }; 19 | 20 | extern struct tabs tabs[], tabs0f[]; 21 | extern int tabsz, tabs0fz; 22 | extern char *str[]; 23 | -------------------------------------------------------------------------------- /usr/src/cmd/as/lookup.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1995-2007 Robert Nordier. All rights reserved. */ 2 | 3 | struct mntbl { 4 | char *mn; 5 | unsigned tk; 6 | }; 7 | 8 | extern unsigned char rmtbl[][37]; 9 | extern unsigned char potbl[][37]; 10 | extern struct mntbl mntbl[]; 11 | extern unsigned mnnum; 12 | 13 | unsigned lookup(); 14 | int mnlu(); 15 | -------------------------------------------------------------------------------- /usr/src/cmd/as/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O 2 | 3 | OBJS = as.o lookup.o mntbl.o optbl.o potbl.o rmtbl.o token.o 4 | 5 | all: as 6 | 7 | cmp: as 8 | cmp as /bin/as 9 | rm as *.o 10 | 11 | cp: as 12 | cp as /bin/as 13 | rm as *.o 14 | 15 | as: $(OBJS) 16 | cc $(CFLAGS) -o as $(OBJS) 17 | 18 | clean: 19 | rm -f as $(OBJS) 20 | -------------------------------------------------------------------------------- /usr/src/cmd/awk/tokenscript: -------------------------------------------------------------------------------- 1 | e y.tab.h 2 | 1,$s/# *define *// 3 | 1,$s/^/"/ 4 | 1,$s/ /", / 5 | 1,$s/$/,/ 6 | w temp 7 | e token.c 8 | /= *{$/+1,/^};$/-1d 9 | -r temp 10 | w token.c 11 | q 12 | -------------------------------------------------------------------------------- /usr/src/cmd/cpp/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-O -n -s 2 | 3 | all: cpp 4 | 5 | cp: cpp 6 | cp cpp /lib 7 | rm *.o cpp 8 | 9 | cmp: cpp 10 | cmp cpp /lib/cpp 11 | rm *.o cpp 12 | 13 | cpp: cpp.o cpy.o 14 | cc $(CFLAGS) cpp.o cpy.o -o cpp 15 | cpp.o: cpp.c 16 | cc $(CFLAGS) -c -Dunix=1 -Dpdp11=1 cpp.c 17 | cpy.o: cpy.y yylex.c 18 | -------------------------------------------------------------------------------- /usr/src/cmd/dc/makefile: -------------------------------------------------------------------------------- 1 | all: dc 2 | 3 | cmp: dc 4 | cmp dc /bin/dc 5 | rm dc 6 | 7 | cp: dc 8 | cp dc /bin/dc 9 | rm dc 10 | 11 | dc: dc.c dc.h 12 | cc -n -s -O dc.c -o dc 13 | -------------------------------------------------------------------------------- /usr/src/cmd/echo.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | main(argc, argv) 6 | int argc; 7 | char *argv[]; 8 | { 9 | register int i, nflg; 10 | 11 | nflg = 0; 12 | if(argc > 1 && argv[1][0] == '-' && argv[1][1] == 'n') { 13 | nflg++; 14 | argc--; 15 | argv++; 16 | } 17 | for(i=1; i 2 | char *direct = "/usr/lib/learn"; /* CHANGE THIS ON YOUR SYSTEM */ 3 | int more; 4 | char *level; 5 | int speed; 6 | char *sname; 7 | char *todo; 8 | FILE *incopy = NULL; 9 | int didok; 10 | int sequence = 1; 11 | int comfile = -1; 12 | int status; 13 | int wrong; 14 | char *pwline; 15 | char *dir; 16 | FILE *scrin; 17 | int logging = 1; /* set to 0 to turn off logging */ 18 | int ask; 19 | -------------------------------------------------------------------------------- /usr/src/cmd/learn/makpipe.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include "stdio.h" 4 | 5 | makpipe() 6 | { 7 | int f[2]; 8 | 9 | pipe(f); 10 | if (fork()==0) { 11 | close(f[1]); 12 | close(0); 13 | dup(f[0]); 14 | close(f[0]); 15 | execl ("/bin/sh", "sh", "-i", 0); 16 | execl ("/usr/bin/sh", "sh", "-i", 0); 17 | write(2,"Exec error\n",11); 18 | } 19 | close(f[0]); 20 | sleep(2); /* so shell won't eat up too much input */ 21 | return(f[1]); 22 | } 23 | -------------------------------------------------------------------------------- /usr/src/cmd/lex/lib/main.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # include "stdio.h" 4 | main(){ 5 | yylex(); 6 | exit(0); 7 | } 8 | -------------------------------------------------------------------------------- /usr/src/cmd/lex/lib/yyless.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | yyless(x) 4 | { 5 | extern char yytext[]; 6 | register char *lastch, *ptr; 7 | extern int yyleng; 8 | extern int yyprevious; 9 | lastch = yytext+yyleng; 10 | if (x>=0 && x <= yyleng) 11 | ptr = x + yytext; 12 | else 13 | ptr = x; 14 | while (lastch > ptr) 15 | yyunput(*--lastch); 16 | *lastch = 0; 17 | if (ptr >yytext) 18 | yyprevious = *--lastch; 19 | yyleng = ptr-yytext; 20 | } 21 | -------------------------------------------------------------------------------- /usr/src/cmd/lex/lib/yywrap.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | yywrap() 4 | { 5 | return(1); 6 | } 7 | -------------------------------------------------------------------------------- /usr/src/cmd/lint/READ_ME: -------------------------------------------------------------------------------- 1 | Most of lint's source files are shared with the portable 2 | compiler: they are found in /usr/src/cmd/mip. 3 | The files here are only those which are unique to lint. 4 | -------------------------------------------------------------------------------- /usr/src/cmd/lpr/makefile: -------------------------------------------------------------------------------- 1 | all: lpr lpd 2 | 3 | cp: all 4 | cp lpr /bin/lpr 5 | cp lpd /usr/lib/lpd 6 | rm lpr lpd 7 | 8 | cmp: all 9 | cmp lpr /bin/lpr 10 | cmp lpd /usr/bin/lpd 11 | rm lpr lpd 12 | 13 | lpr: lpr.c spool.c 14 | cc -n -s -O lpr.c -o lpr 15 | 16 | lpd: lpd.c daemon.c daemon0.c chrtab.c 17 | cc -n -s -O lpd.c chrtab.c -o lpd 18 | 19 | clean: 20 | rm -f lpr lpd *.o 21 | -------------------------------------------------------------------------------- /usr/src/cmd/m4/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -n -O -s 2 | 3 | m4: m4.o m4y.o 4 | cc -n -s -o m4 m4.o m4y.o 5 | 6 | all: m4 7 | 8 | cmp: m4 9 | cmp m4 /bin/m4 10 | rm m4 *.o 11 | 12 | cp: m4 13 | cp m4 /bin/m4 14 | rm m4 *.o 15 | -------------------------------------------------------------------------------- /usr/src/cmd/makekey.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * You send it 10 bytes. 5 | * It sends you 13 bytes. 6 | * The transformation is expensive to perform 7 | * (a significant part of a second). 8 | */ 9 | 10 | char *crypt(); 11 | 12 | main() 13 | { 14 | char key[8]; 15 | char salt[2]; 16 | 17 | read(0, key, 8); 18 | read(0, salt, 2); 19 | write(1, crypt(key, salt), 13); 20 | return(0); 21 | } 22 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/comm1.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # include "mfile1" 4 | 5 | # include "common" 6 | 7 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/fallo.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # include "allo.c" 5 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/fcomm2.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # include "mfile2" 5 | # include "common" 6 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/flocal2.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # include "local2.c" 5 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/fmatch.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # include "match.c" 5 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/forder.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # include "order.c" 5 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/freader.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # define NOMAIN 5 | # include "reader.c" 6 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/ftable.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # define FORT 4 | # include "table.c" 5 | -------------------------------------------------------------------------------- /usr/src/cmd/mip/g: -------------------------------------------------------------------------------- 1 | grep -n "$1" macdefs code.c local.c mac2defs local2.c order.c table.c 2 | cd /usr/src/cmd/mip;grep -n "$1" manifest mfile1 cgram.y comm1.c scan.c xdefs.c pftn.c trees.c mfile2 reader.c allo.c match.c common optim.c 3 | -------------------------------------------------------------------------------- /usr/src/cmd/neqn/mark.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include "e.h" 4 | 5 | mark(p1) int p1; { 6 | markline = 1; 7 | printf(".ds %d \\k(97\\*(%d\n", p1, p1); 8 | yyval = p1; 9 | if(dbg)printf(".\tmark %d\n", p1); 10 | } 11 | 12 | lineup(p1) { 13 | markline = 1; 14 | if (p1 == 0) { 15 | yyval = oalloc(); 16 | printf(".ds %d \\h'|\\n(97u'\n", yyval); 17 | } 18 | if(dbg)printf(".\tlineup %d\n", p1); 19 | } 20 | -------------------------------------------------------------------------------- /usr/src/cmd/neqn/sqrt.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # include "e.h" 4 | 5 | sqrt(p2) int p2; { 6 | yyval = p2; 7 | nrwid(p2, ps, p2); 8 | printf(".ds %d \\v'%du'\\e\\L'%du'\\l'\\n(%du'", 9 | p2, ebase[p2], -eht[p2], p2); 10 | printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", eht[p2]-ebase[p2], p2, p2); 11 | eht[p2] += VERT(1); 12 | if(dbg)printf(".\tsqrt: S%d <- S%d;b=%d, h=%d\n", 13 | p2, p2, ebase[p2], eht[p2]); 14 | } 15 | -------------------------------------------------------------------------------- /usr/src/cmd/prep/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -n -O 2 | 3 | all: prep 4 | : 5 | 6 | cp: all 7 | cp prep /bin 8 | rm prep *.o 9 | 10 | cmp: all 11 | cmp prep /bin/prep 12 | rm prep *.o 13 | 14 | prep: prep0.o prep1.o prep2.o; cc -s -o prep -n *.o 15 | 16 | prep0.o: prep0.c prep.h 17 | prep1.o: prep1.c prep.h 18 | prep2.o: prep2.c 19 | -------------------------------------------------------------------------------- /usr/src/cmd/refer/glue2.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | char refdir[50]; 4 | savedir() 5 | { 6 | if (refdir[0]==0) 7 | corout ("", refdir, "/bin/pwd", "", 50); 8 | trimnl(refdir); 9 | } 10 | restodir() 11 | { 12 | chdir(refdir); 13 | } 14 | -------------------------------------------------------------------------------- /usr/src/cmd/refer/hunt9.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | remote(in, out) 4 | char *in, *out; 5 | { 6 | /* "in" is a long distance file name: get it */ 7 | ; 8 | } 9 | -------------------------------------------------------------------------------- /usr/src/cmd/refer/inv3.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | getargs(s, arps) 4 | char *s, *arps[]; 5 | { 6 | int i; 7 | i = 0; 8 | while (1) 9 | { 10 | arps[i++]=s; 11 | while (*s != 0 && *s!=' '&& *s != '\t')s++; 12 | if (*s==0) break; 13 | *s++ =0; 14 | while (*s==' ' || *s=='\t')s++; 15 | if (*s==0)break; 16 | } 17 | return(i); 18 | } 19 | -------------------------------------------------------------------------------- /usr/src/cmd/refer/types.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # if LONG 4 | # define ptr long 5 | # define uptr long 6 | # define getp getl 7 | # define putp putl 8 | # define MONE -1L 9 | extern long getl(); 10 | # else 11 | # define ptr int 12 | # define uptr unsigned 13 | # define getp getw 14 | # define putp putw 15 | # define MONE -1 16 | # endif 17 | -------------------------------------------------------------------------------- /usr/src/cmd/refer/what..c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # include "stdio.h" 4 | # include "ctype.h" 5 | # include "sys/types.h" 6 | # include "sys/stat.h" 7 | # include "assert.h" 8 | # define NFILES 100 9 | # define NAMES 2000 10 | extern exch(), comp(); 11 | struct filans { 12 | char *nm; 13 | long fdate; 14 | long size; 15 | int uid; 16 | }; 17 | extern struct filans files[NFILES]; 18 | extern char fnames[NAMES]; 19 | # define NFEED 5 20 | -------------------------------------------------------------------------------- /usr/src/cmd/sed/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -n -O 2 | 3 | all: sed 4 | : 5 | 6 | cp: all 7 | cp sed /bin 8 | rm sed *.o 9 | 10 | cmp: all 11 | cmp sed /bin/sed 12 | rm sed *.o 13 | 14 | sed: sed0.o sed1.o; cc -s -o sed -n *.o 15 | 16 | sed0.o: sed0.c sed.h 17 | sed1.o: sed1.c sed.h 18 | -------------------------------------------------------------------------------- /usr/src/cmd/sh/brkincr.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define BRKINCR 01000 4 | #define BRKMAX 04000 5 | -------------------------------------------------------------------------------- /usr/src/cmd/sh/builtin.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | builtin() 4 | {return(0);} 5 | -------------------------------------------------------------------------------- /usr/src/cmd/sh/dup.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # 4 | /* 5 | * UNIX shell 6 | * 7 | * S. R. Bourne 8 | * Bell Telephone Laboratories 9 | * 10 | */ 11 | 12 | #define DUPFLG 0100 13 | -------------------------------------------------------------------------------- /usr/src/cmd/sh/name.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # 4 | /* 5 | * UNIX shell 6 | * 7 | * S. R. Bourne 8 | * Bell Telephone Laboratories 9 | * 10 | */ 11 | 12 | 13 | #define N_RDONLY 0100000 14 | #define N_EXPORT 0040000 15 | #define N_ENVNAM 0020000 16 | #define N_ENVPOS 0007777 17 | 18 | #define N_DEFAULT 0 19 | 20 | struct namnod { 21 | NAMPTR namlft; 22 | NAMPTR namrgt; 23 | STRING namid; 24 | STRING namval; 25 | STRING namenv; 26 | INT namflg; 27 | }; 28 | -------------------------------------------------------------------------------- /usr/src/cmd/sh/setbrk.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | /* Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | # 5 | /* 6 | * UNIX shell 7 | * 8 | * S. R. Bourne 9 | * Bell Telephone Laboratories 10 | * 11 | */ 12 | 13 | #include "defs.h" 14 | 15 | BYTPTR sbrk(); 16 | 17 | setbrk(incr) 18 | { 19 | REG BYTPTR a=sbrk(incr); 20 | brkend=a+incr; 21 | return((INT)a); 22 | } 23 | -------------------------------------------------------------------------------- /usr/src/cmd/sh/timeout.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | # 4 | /* 5 | * UNIX shell 6 | * 7 | * S. R. Bourne 8 | * Bell Telephone Laboratories 9 | * 10 | */ 11 | 12 | #define TIMEOUT 0 13 | -------------------------------------------------------------------------------- /usr/src/cmd/sleep.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | main(argc, argv) 4 | char **argv; 5 | { 6 | int c, n; 7 | char *s; 8 | 9 | n = 0; 10 | if(argc < 2) { 11 | printf("arg count\n"); 12 | exit(0); 13 | } 14 | s = argv[1]; 15 | while(c = *s++) { 16 | if(c<'0' || c>'9') { 17 | printf("bad character\n"); 18 | exit(0); 19 | } 20 | n = n*10 + c - '0'; 21 | } 22 | sleep(n); 23 | } 24 | -------------------------------------------------------------------------------- /usr/src/cmd/spell/local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/cmd/spell/local -------------------------------------------------------------------------------- /usr/src/cmd/spell/spellin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/cmd/spell/spellin -------------------------------------------------------------------------------- /usr/src/cmd/struct/0.def.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | #include "def.h" 5 | 6 | int routnum; 7 | FILE *debfd; 8 | LOGICAL routerr; 9 | int nodenum, accessnum; 10 | int **graph; 11 | int progtype; 12 | VERT stopvert, retvert; 13 | VERT START; 14 | -------------------------------------------------------------------------------- /usr/src/cmd/struct/1.main.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | #include "def.h" 5 | int endbuf; 6 | 7 | mkgraph() 8 | { 9 | if (!parse()) 10 | return(FALSE); 11 | hash_check(); 12 | hash_free(); 13 | fingraph(); 14 | return(TRUE); 15 | } 16 | -------------------------------------------------------------------------------- /usr/src/cmd/struct/2.def.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | extern int accessnum; /* number of nodes accessible from START */ 4 | extern VERT *after; /* node numbers associated with after numbers of depth first search */ 5 | extern int *ntobef; /* before numbers associated with nodes */ 6 | extern int *ntoaft; /* after numbers associated with nodes */ 7 | -------------------------------------------------------------------------------- /usr/src/cmd/struct/3.def.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define RECURSE(p,v,r) { for (r = 0; r < CHILDNUM(v); ++r) if (DEFINED(LCHILD(v,r))) p(LCHILD(v,r)); if (DEFINED(RSIB(v))) p(RSIB(v)); } 4 | 5 | #define IFTHEN(v) ( NTYPE(v) == IFVX && !DEFINED(LCHILD(v,ELSE))) 6 | 7 | #define BRK(v) FATH(v) /* lexical successor of v, for ITERVX only */ 8 | #define LABEL(v) REACH(v) 9 | -------------------------------------------------------------------------------- /usr/src/cmd/struct/3.test.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | # 5 | /* for testing only */ 6 | #include "def.h" 7 | 8 | testreach() 9 | { 10 | VERT v; 11 | for (v = 0; v < nodenum; ++v) 12 | fprintf(stderr,"REACH(%d) = %d\n",v,REACH(v)); 13 | } 14 | -------------------------------------------------------------------------------- /usr/src/cmd/struct/b.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | extern int xxindent, xxval, newflag, xxmaxchars, xxbpertab; 4 | extern int xxlineno; /* # of lines already output */ 5 | #define xxtop 100 /* max size of xxstack */ 6 | extern int xxstind, xxstack[xxtop], xxlablast, xxt; 7 | struct node 8 | {int op; 9 | char *lit; 10 | struct node *left; 11 | struct node *right; 12 | }; 13 | -------------------------------------------------------------------------------- /usr/src/cmd/struct/bdef.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define xxtop 100 /* max size of xxstack */ 4 | int xxindent, xxval, newflag, xxmaxchars, xxbpertab; 5 | int xxlineno; /* # of lines already output */ 6 | int xxstind, xxstack[xxtop], xxlablast, xxt; 7 | -------------------------------------------------------------------------------- /usr/src/cmd/sync.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | main() 4 | { 5 | 6 | sync(); 7 | } 8 | -------------------------------------------------------------------------------- /usr/src/cmd/tbl/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-O -n -s 2 | all: tbl 3 | : 4 | 5 | cp: tbl 6 | cp tbl /bin/tbl 7 | rm tbl *.o 8 | 9 | cmp: tbl 10 | cmp tbl /bin/tbl 11 | rm tbl *.o 12 | 13 | tbl: t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o tb.o tc.o te.o tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o 14 | cc -i -s -O t?.o -o tbl 15 | t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o tb.o tc.o te.o tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o: t..c 16 | -------------------------------------------------------------------------------- /usr/src/cmd/tbl/t2.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* t2.c: subroutine sequencing for one table */ 4 | # include "t..c" 5 | tableput() 6 | { 7 | saveline(); 8 | savefill(); 9 | ifdivert(); 10 | cleanfc(); 11 | getcomm(); 12 | getspec(); 13 | gettbl(); 14 | getstop(); 15 | checkuse(); 16 | choochar(); 17 | maktab(); 18 | runout(); 19 | release(); 20 | rstofill(); 21 | endoff(); 22 | restline(); 23 | } 24 | -------------------------------------------------------------------------------- /usr/src/cmd/tp/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-n -s -O 2 | 3 | all: tp 4 | rm *.o 5 | 6 | cp: tp 7 | cp tp /bin/tp 8 | rm *.o tp 9 | 10 | cmp: tp 11 | cmp tp /bin/tp 12 | rm *.o tp 13 | 14 | tp: tp0.o tp1.o tp2.o tp3.o 15 | cc $(CFLAGS) tp0.o tp1.o tp2.o tp3.o -o tp 16 | 17 | tp0.c tp1.c tp2.c tp3.c: tp.h 18 | -------------------------------------------------------------------------------- /usr/src/cmd/tp/tp0.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include "tp.h" 4 | #include 5 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/d.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct d {filep op; int dnl,dimac,ditrap,ditf,alss,blss,nls,mkline, 4 | maxl,hnl,curd;} d[NDI], *dip; 5 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/font/linkrc: -------------------------------------------------------------------------------- 1 | cd /usr/lib/font 2 | rm ftH ftHI ftHM ftFD ftCI 3 | ln ftG ftH 4 | ln ftGI ftHI 5 | ln ftGM ftHM 6 | ln ftUD ftFD 7 | ln ftCK ftCI 8 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/font/makefile: -------------------------------------------------------------------------------- 1 | cp: all 2 | for i in *.o; do cp $$i /usr/lib/font/`basename $$i .o`; done 3 | rm *.o 4 | 5 | cmp: all 6 | for i in *.o; do cmp $$i /usr/lib/font/`basename $$i .o`; done 7 | rm *.o 8 | 9 | .c.o: 10 | cc -c $<; strip $@ 11 | 12 | all: ftB.o ftBC.o ftC.o ftCE.o ftCI.o ftCK.o ftCS.o ftCW.o ftG.o ftGI.o ftGM.o ftGR.o 13 | all: ftI.o ftL.o ftLI.o ftPA.o ftPB.o ftPI.o ftR.o ftS.o ftSB.o ftSI.o ftSM.o ftUD.o ftXM.o 14 | 15 | mkfont:mkfont.c mkfont1.c -o mkfont 16 | cc -n -s mkfont.c 17 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/makefile: -------------------------------------------------------------------------------- 1 | all: nroff troff 2 | 3 | nroff: 4 | make -f nmake 5 | rm *.o 6 | 7 | troff: 8 | make -f tmake 9 | rm *.o 10 | 11 | cp: all 12 | cp nroff troff /bin 13 | rm nroff troff 14 | 15 | cmp: all 16 | cmp nroff /bin/nroff 17 | cmp troff /bin/troff 18 | rm nroff troff 19 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/s.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct s { 4 | int nargs; 5 | struct s *pframe; 6 | filep pip; 7 | int pnchar; 8 | int prchar; 9 | int ppendt; 10 | int *pap; 11 | int *pcp; 12 | int pch0; 13 | int pch; 14 | }; 15 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/term/makefile: -------------------------------------------------------------------------------- 1 | cp: all 2 | for i in *.o; do cp $$i /usr/lib/term/`basename $$i .o`; done 3 | rm *.o 4 | 5 | cmp: all 6 | for i in *.o; do cmp $$i /usr/lib/term/`basename $$i .o`; done 7 | rm *.o 8 | 9 | all: tab300-12.o tab300.o tab300s-12.o tab300s.o 10 | all: tab37.o tab450-12-8.o tab450-12.o tab450.o tab832.o taba1.o tablp.o tabtn300.o 11 | : 12 | 13 | .c.o: 14 | cc -c $<; strip $@ 15 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/textscript: -------------------------------------------------------------------------------- 1 | g/\.data/d 2 | 0a 3 | .text 4 | . 5 | w 6 | -------------------------------------------------------------------------------- /usr/src/cmd/troff/v.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct v {int pn,nl,yr,hp,ct,dn,mo,dy,dw,ln,dl,st,sb,cd; 4 | int vxx[NN-NNAMES];} v ; 5 | -------------------------------------------------------------------------------- /usr/src/cmd/tty.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Type tty name 5 | */ 6 | 7 | char *ttyname(); 8 | 9 | main(argc, argv) 10 | char **argv; 11 | { 12 | register char *p; 13 | 14 | p = ttyname(0); 15 | if(argc==2 && !strcmp(argv[1], "-s")) 16 | ; 17 | else 18 | printf("%s\n", (p? p: "not a tty")); 19 | exit(p? 0: 1); 20 | } 21 | -------------------------------------------------------------------------------- /usr/src/cmd/uucp/index.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | 6 | /******* 7 | * char * 8 | * index(str, c) return pointer to character c 9 | * char c, *str; 10 | * 11 | * return codes: 12 | * NULL - character not found 13 | * pointer - pointer to character 14 | */ 15 | 16 | char * 17 | index(str, c) 18 | char c, *str; 19 | { 20 | for (; *str != '\0'; str++) { 21 | if (*str == c) 22 | return(str); 23 | } 24 | 25 | return(NULL); 26 | } 27 | -------------------------------------------------------------------------------- /usr/src/cmd/uucp/lastpart.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | 4 | 5 | /******* 6 | * char * 7 | * lastpart(file) find last part of file name 8 | * char *file; 9 | * 10 | * return - pointer to last part 11 | */ 12 | 13 | char * 14 | lastpart(file) 15 | char *file; 16 | { 17 | char *c; 18 | 19 | c = file + strlen(file); 20 | while (c >= file) 21 | if (*(--c) == '/') 22 | break; 23 | return(++c); 24 | } 25 | -------------------------------------------------------------------------------- /usr/src/cmd/uucp/pkon.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | pkon() { } 4 | pkoff() { } 5 | -------------------------------------------------------------------------------- /usr/src/cmd/uucp/prefix.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | 4 | 5 | /******* 6 | * prefix(s1, s2) check s2 for prefix s1 7 | * char *s1, *s2; 8 | * 9 | * return 0 - != 10 | * return 1 - == 11 | */ 12 | 13 | prefix(s1, s2) 14 | char *s1, *s2; 15 | { 16 | char c; 17 | 18 | while ((c = *s1++) == *s2++) 19 | if (c == '\0') 20 | return(1); 21 | return(c == '\0'); 22 | } 23 | -------------------------------------------------------------------------------- /usr/src/cmd/uucp/sysacct.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | 6 | /******* 7 | * sysacct(bytes, time) output accounting info 8 | * time_t time; 9 | * long bytes; 10 | */ 11 | 12 | sysacct(bytes, time) 13 | time_t time; 14 | long bytes; 15 | { 16 | return; 17 | } 18 | -------------------------------------------------------------------------------- /usr/src/cmd/uucp/uucpdefs.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | char *Thisdir = THISDIR; 4 | char *Spool = SPOOL; 5 | char *Myname = MYNAME; 6 | int Debug = 0; 7 | int Pkdebug = 0; 8 | 9 | char *Sysfiles[] = { 10 | SYSFILE, 11 | SYSFILECR, 12 | NULL 13 | }; 14 | char *Devfile = DEVFILE; 15 | char *Dialfile = DIALFILE; 16 | int Packflg = 0; 17 | int Pkdrvon = 0; 18 | int Bspeed = 150; 19 | -------------------------------------------------------------------------------- /usr/src/cmd/xsend/xmail.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | #include 5 | extern MINT *x, *b, *one, *c64, *t45, *z, *q, *r, *two, *t15; 6 | extern char buf[256]; 7 | #ifdef debug 8 | #define nin(x, y) m_in(x, 8, y) 9 | #define nout(x, y) m_out(x, 8, y) 10 | #endif 11 | -------------------------------------------------------------------------------- /usr/src/cmd/yacc/files: -------------------------------------------------------------------------------- 1 | /* this file has the location of the parser, and the size of the progam desired */ 2 | /* It may also contain definitions to override various defaults: for example, 3 | /* WORD32 tells yacc that there are at least 32 bits per int */ 4 | /* on some systems, notably IBM, the names for the output files and tempfiles must 5 | /* also be changed */ 6 | 7 | /* location of the parser text file */ 8 | # define PARSER "/usr/lib/yaccpar" 9 | 10 | /* basic size of the Yacc implementation */ 11 | # define MEDIUM 12 | -------------------------------------------------------------------------------- /usr/src/cmd/yacc/makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-O 2 | all: yacc 3 | : 4 | 5 | cmp: all 6 | cmp yacc /bin/yacc 7 | rm yacc *.o 8 | 9 | cp: all 10 | cp yacc /bin/yacc 11 | rm yacc *.o 12 | 13 | yacc: y1.o y2.o y3.o y4.o 14 | cc -n -s -o yacc y?.o 15 | 16 | y1.o y2.o y3.o y4.o: dextern files 17 | -------------------------------------------------------------------------------- /usr/src/cmd/yes.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | main(argc, argv) 4 | char **argv; 5 | { 6 | for (;;) 7 | printf("%s\n", argc>1? argv[1]: "y"); 8 | } 9 | -------------------------------------------------------------------------------- /usr/src/libc/crt/cerror.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // C return sequence which 5 | // sets errno, returns -1. 6 | 7 | .globl cerror, _errno 8 | .comm _errno,4 9 | 10 | cerror: 11 | mov eax,_errno 12 | mov $-1,eax 13 | ret 14 | -------------------------------------------------------------------------------- /usr/src/libc/crt/mcount.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // count subroutine calls during profiling 5 | 6 | .globl mcount, countbase 7 | .comm countbase,4 8 | 9 | mcount: 10 | mov (eax),edx 11 | test edx,edx 12 | jne 1f 13 | mov countbase,edx 14 | test edx,edx 15 | je 2f 16 | addl $8,countbase 17 | mov (esp),ecx 18 | mov ecx,(edx) 19 | add $4,edx 20 | mov edx,(eax) 21 | 1: 22 | incl (edx) 23 | 2: 24 | ret 25 | -------------------------------------------------------------------------------- /usr/src/libc/csu/crt0.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 2007 Robert Nordier. All rights reserved. 3 | 4 | .globl start, _environ, _exit, __exit 5 | 6 | start: 7 | cld 8 | mov (esp),ecx 9 | lea 4(esp),ebx 10 | lea 4(ebx,ecx,4),eax 11 | mov eax,_environ 12 | push eax 13 | push ebx 14 | push ecx 15 | call _main 16 | add $12,esp 17 | push eax 18 | call _exit 19 | call __exit 20 | 21 | .comm _environ,4 22 | -------------------------------------------------------------------------------- /usr/src/libc/gen/abort.c: -------------------------------------------------------------------------------- 1 | /* V7/x86 source code: see www.nordier.com/v7x86 for details. */ 2 | /* Copyright (c) 1998 Robert Nordier. All rights reserved. */ 3 | 4 | #include 5 | 6 | abort() 7 | { 8 | kill(getpid(), SIGIOT); 9 | } 10 | -------------------------------------------------------------------------------- /usr/src/libc/gen/abs.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | abs(arg) 4 | { 5 | 6 | if(arg < 0) 7 | arg = -arg; 8 | return(arg); 9 | } 10 | -------------------------------------------------------------------------------- /usr/src/libc/gen/atoi.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | atoi(p) 4 | register char *p; 5 | { 6 | register int n; 7 | register int f; 8 | 9 | n = 0; 10 | f = 0; 11 | for(;;p++) { 12 | switch(*p) { 13 | case ' ': 14 | case '\t': 15 | continue; 16 | case '-': 17 | f++; 18 | case '+': 19 | p++; 20 | } 21 | break; 22 | } 23 | while(*p >= '0' && *p <= '9') 24 | n = n*10 + *p++ - '0'; 25 | return(f? -n: n); 26 | } 27 | -------------------------------------------------------------------------------- /usr/src/libc/gen/atol.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | long 4 | atol(p) 5 | register char *p; 6 | { 7 | long n; 8 | register int f; 9 | 10 | n = 0; 11 | f = 0; 12 | for(;;p++) { 13 | switch(*p) { 14 | case ' ': 15 | case '\t': 16 | continue; 17 | case '-': 18 | f++; 19 | case '+': 20 | p++; 21 | } 22 | break; 23 | } 24 | while(*p >= '0' && *p <= '9') 25 | n = n*10 + *p++ - '0'; 26 | return(f? -n: n); 27 | } 28 | -------------------------------------------------------------------------------- /usr/src/libc/gen/cuexit.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // C library -- exit 5 | 6 | // exit(code) 7 | // code is returned to system 8 | 9 | .globl _exit 10 | .globl __cleanup 11 | .set exit,1 12 | 13 | _exit: 14 | call __cleanup 15 | mov $exit,eax 16 | int $0x30 17 | -------------------------------------------------------------------------------- /usr/src/libc/gen/fakcu.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // 5 | // dummy cleanup routine if none supplied by user. 6 | 7 | .globl __cleanup 8 | 9 | __cleanup: 10 | ret 11 | -------------------------------------------------------------------------------- /usr/src/libc/gen/frexp87.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _frexp 5 | _frexp: 6 | fldl 0x4(esp) 7 | ftst 8 | fnstsw ax 9 | sahf 10 | movl 0xc(esp),eax 11 | jnz 1f 12 | movl $0,(eax) 13 | ret 14 | 1: 15 | fxtract 16 | fxch 17 | fistpl (eax) 18 | incl (eax) 19 | fld1 20 | fchs 21 | fxch 22 | fscale 23 | fstp st(1) 24 | ret 25 | -------------------------------------------------------------------------------- /usr/src/libc/gen/index.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Return the ptr in sp at which the character c appears; 5 | * NULL if not found 6 | */ 7 | 8 | #define NULL 0 9 | 10 | char * 11 | index(sp, c) 12 | register char *sp, c; 13 | { 14 | do { 15 | if (*sp == c) 16 | return(sp); 17 | } while (*sp++); 18 | return(NULL); 19 | } 20 | -------------------------------------------------------------------------------- /usr/src/libc/gen/isatty.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Returns 1 iff file is a tty 5 | */ 6 | 7 | #include 8 | 9 | isatty(f) 10 | { 11 | struct sgttyb ttyb; 12 | 13 | if (gtty(f, &ttyb) < 0) 14 | return(0); 15 | return(1); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/gen/ldexp87.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _ldexp 5 | _ldexp: 6 | fildl 0xc(esp) 7 | fldl 0x4(esp) 8 | fscale 9 | fstp st(1) 10 | ret 11 | -------------------------------------------------------------------------------- /usr/src/libc/gen/ldfps.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // 5 | // ldfps(number); 6 | 7 | .globl _ldfps 8 | _ldfps: 9 | push ebp 10 | mov esp,ebp 11 | fldl 8(ebp) 12 | pop ebp 13 | ret 14 | -------------------------------------------------------------------------------- /usr/src/libc/gen/mktemp.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | char * 4 | mktemp(as) 5 | char *as; 6 | { 7 | register char *s; 8 | register unsigned pid; 9 | register i; 10 | 11 | pid = getpid(); 12 | s = as; 13 | while (*s++) 14 | ; 15 | s--; 16 | while (*--s == 'X') { 17 | *s = (pid%10) + '0'; 18 | pid /= 10; 19 | } 20 | s++; 21 | i = 'a'; 22 | while (access(as, 0) != -1) { 23 | if (i=='z') 24 | return("/"); 25 | *s = i++; 26 | } 27 | return(as); 28 | } 29 | -------------------------------------------------------------------------------- /usr/src/libc/gen/rand.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | static long randx = 1; 4 | 5 | srand(x) 6 | unsigned x; 7 | { 8 | randx = x; 9 | } 10 | 11 | rand() 12 | { 13 | return(((randx = randx*1103515245 + 12345)>>16) & 077777); 14 | } 15 | -------------------------------------------------------------------------------- /usr/src/libc/gen/rindex.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Return the ptr in sp at which the character c last 5 | * appears; NULL if not found 6 | */ 7 | 8 | #define NULL 0 9 | 10 | char * 11 | rindex(sp, c) 12 | register char *sp, c; 13 | { 14 | register char *r; 15 | 16 | r = NULL; 17 | do { 18 | if (*sp == c) 19 | r = sp; 20 | } while (*sp++); 21 | return(r); 22 | } 23 | -------------------------------------------------------------------------------- /usr/src/libc/gen/strcat.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Concatenate s2 on the end of s1. S1's space must be large enough. 5 | * Return s1. 6 | */ 7 | 8 | char * 9 | strcat(s1, s2) 10 | register char *s1, *s2; 11 | { 12 | register char *os1; 13 | 14 | os1 = s1; 15 | while (*s1++) 16 | ; 17 | --s1; 18 | while (*s1++ = *s2++) 19 | ; 20 | return(os1); 21 | } 22 | -------------------------------------------------------------------------------- /usr/src/libc/gen/strcmp.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Compare strings: s1>s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1= 0 && *s1 == *s2++) 13 | if (*s1++ == '\0') 14 | return(0); 15 | return(n<0 ? 0 : *s1 - *--s2); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/gen/strncpy.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Copy s2 to s1, truncating or null-padding to always copy n bytes 5 | * return s1 6 | */ 7 | 8 | char * 9 | strncpy(s1, s2, n) 10 | register char *s1, *s2; 11 | { 12 | register i; 13 | register char *os1; 14 | 15 | os1 = s1; 16 | for (i = 0; i < n; i++) 17 | if ((*s1++ = *s2++) == '\0') { 18 | while (++i < n) 19 | *s1++ = '\0'; 20 | return(os1); 21 | } 22 | return(os1); 23 | } 24 | -------------------------------------------------------------------------------- /usr/src/libc/gen/stty.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Writearound to old stty and gtty system calls 5 | */ 6 | 7 | #include 8 | 9 | stty(fd, ap) 10 | struct sgtty *ap; 11 | { 12 | return(ioctl(fd, TIOCSETP, ap)); 13 | } 14 | 15 | gtty(fd, ap) 16 | struct sgtty *ap; 17 | { 18 | return(ioctl(fd, TIOCGETP, ap)); 19 | } 20 | -------------------------------------------------------------------------------- /usr/src/libc/gen/swab.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Swap bytes in 16-bit [half-]words 5 | * for going between the 11 and the interdata 6 | */ 7 | 8 | swab(pf, pt, n) 9 | register short *pf, *pt; 10 | register n; 11 | { 12 | 13 | n /= 2; 14 | while (--n >= 0) { 15 | *pt++ = (*pf << 8) + ((*pf >> 8) & 0377); 16 | pf++; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /usr/src/libc/gen/tell.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * return offset in file. 5 | */ 6 | 7 | long lseek(); 8 | 9 | long tell(f) 10 | { 11 | return(lseek(f, 0L, 1)); 12 | } 13 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/clrerr.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | clearerr(iop) 6 | register struct _iobuf *iop; 7 | { 8 | iop->_flag &= ~(_IOERR|_IOEOF); 9 | } 10 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/data.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | char _sibuf[BUFSIZ]; 5 | char _sobuf[BUFSIZ]; 6 | 7 | struct _iobuf _iob[_NFILE] = { 8 | { _sibuf, 0, _sibuf, _IOREAD, 0}, 9 | { NULL, 0, NULL, _IOWRT, 1}, 10 | {NULL, 0, NULL, _IOWRT+_IONBF, 2}, 11 | }; 12 | /* 13 | * Ptr to end of buffers 14 | */ 15 | struct _iobuf *_lastbuf = { &_iob[_NFILE] }; 16 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/ffltpr.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // C library-- fake floating output 5 | 6 | .globl pfloat 7 | .globl pscien 8 | .globl pgen 9 | 10 | pfloat: 11 | pscien: 12 | pgen: 13 | add $0x8,ebx 14 | movb $'?',al 15 | stosb 16 | ret 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/fgetc.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | fgetc(fp) 6 | FILE *fp; 7 | { 8 | return(getc(fp)); 9 | } 10 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/fgets.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | char * 6 | fgets(s, n, iop) 7 | char *s; 8 | register FILE *iop; 9 | { 10 | register c; 11 | register char *cs; 12 | 13 | cs = s; 14 | while (--n>0 && (c = getc(iop))>=0) { 15 | *cs++ = c; 16 | if (c=='\n') 17 | break; 18 | } 19 | if (c<0 && cs==s) 20 | return(NULL); 21 | *cs++ = '\0'; 22 | return(s); 23 | } 24 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/findiop.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | FILE * 6 | _findiop() 7 | { 8 | extern FILE *_lastbuf; 9 | register FILE *iop; 10 | 11 | for(iop = _iob; iop->_flag & (_IOREAD|_IOWRT|_IORW); iop++) 12 | if (iop >= _lastbuf) 13 | return(NULL); 14 | 15 | return(iop); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/fopen.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | FILE * 6 | fopen(file, mode) 7 | char *file, *mode; 8 | { 9 | FILE *_findiop(), *_endopen(); 10 | 11 | return(_endopen(file, mode, _findiop())); 12 | } 13 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/fprintf.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | fprintf(iop, fmt, args) 6 | FILE *iop; 7 | char *fmt; 8 | { 9 | _doprnt(fmt, &args, iop); 10 | return(ferror(iop)? EOF: 0); 11 | } 12 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/fputc.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | fputc(c, fp) 6 | FILE *fp; 7 | { 8 | return(putc(c, fp)); 9 | } 10 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/fputs.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | fputs(s, iop) 6 | register char *s; 7 | register FILE *iop; 8 | { 9 | register r; 10 | register c; 11 | 12 | while (c = *s++) 13 | r = putc(c, iop); 14 | return(r); 15 | } 16 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/freopen.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | FILE * 6 | freopen(file, mode, iop) 7 | char *file, *mode; 8 | register FILE *iop; 9 | { 10 | FILE *_endopen(); 11 | 12 | fclose(iop); 13 | return(_endopen(file, mode, iop)); 14 | } 15 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/getchar.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * A subroutine version of the macro getchar. 5 | */ 6 | #include 7 | 8 | #undef getchar 9 | 10 | getchar() 11 | { 12 | return(getc(stdin)); 13 | } 14 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/getgrgid.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | struct group * 6 | getgrgid(gid) 7 | register gid; 8 | { 9 | register struct group *p; 10 | struct group *getgrent(); 11 | 12 | setgrent(); 13 | while( (p = getgrent()) && p->gr_gid != gid ); 14 | endgrent(); 15 | return(p); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/getgrnam.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | struct group * 6 | getgrnam(name) 7 | register char *name; 8 | { 9 | register struct group *p; 10 | struct group *getgrent(); 11 | 12 | setgrent(); 13 | while( (p = getgrent()) && strcmp(p->gr_name,name) ); 14 | endgrent(); 15 | return(p); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/getpwnam.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | struct passwd * 6 | getpwnam(name) 7 | char *name; 8 | { 9 | register struct passwd *p; 10 | struct passwd *getpwent(); 11 | 12 | setpwent(); 13 | while( (p = getpwent()) && strcmp(name,p->pw_name) ); 14 | endpwent(); 15 | return(p); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/getpwuid.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | struct passwd * 6 | getpwuid(uid) 7 | register uid; 8 | { 9 | register struct passwd *p; 10 | struct passwd *getpwent(); 11 | 12 | setpwent(); 13 | while( (p = getpwent()) && p->pw_uid != uid ); 14 | endpwent(); 15 | return(p); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/gets.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | char * 6 | gets(s) 7 | char *s; 8 | { 9 | register c; 10 | register char *cs; 11 | 12 | cs = s; 13 | while ((c = getchar()) != '\n' && c >= 0) 14 | *cs++ = c; 15 | if (c<0 && cs==s) 16 | return(NULL); 17 | *cs++ = '\0'; 18 | return(s); 19 | } 20 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/getw.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | getw(iop) 6 | register struct _iobuf *iop; 7 | { 8 | register i; 9 | 10 | i = getc(iop); 11 | if (iop->_flag&_IOEOF) 12 | return(-1); 13 | return(i | (getc(iop)<<8)); 14 | } 15 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/printf.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | printf(fmt, args) 6 | char *fmt; 7 | { 8 | _doprnt(fmt, &args, stdout); 9 | return(ferror(stdout)? EOF: 0); 10 | } 11 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/putchar.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * A subroutine version of the macro putchar 5 | */ 6 | #include 7 | 8 | #undef putchar 9 | 10 | putchar(c) 11 | register c; 12 | { 13 | putc(c, stdout); 14 | } 15 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/puts.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | puts(s) 6 | register char *s; 7 | { 8 | register c; 9 | 10 | while (c = *s++) 11 | putchar(c); 12 | return(putchar('\n')); 13 | } 14 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/putw.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | putw(i, iop) 6 | register i; 7 | register struct _iobuf *iop; 8 | { 9 | putc(i, iop); 10 | putc(i>>8, iop); 11 | } 12 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/rew.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | rewind(iop) 6 | register struct _iobuf *iop; 7 | { 8 | fflush(iop); 9 | lseek(fileno(iop), 0L, 0); 10 | iop->_cnt = 0; 11 | iop->_ptr = iop->_base; 12 | iop->_flag &= ~(_IOERR|_IOEOF); 13 | if (iop->_flag & _IORW) 14 | iop->_flag &= ~(_IOREAD|_IOWRT); 15 | } 16 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/setbuf.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | setbuf(iop, buf) 6 | register struct _iobuf *iop; 7 | char *buf; 8 | { 9 | if (iop->_base != NULL && iop->_flag&_IOMYBUF) 10 | free(iop->_base); 11 | iop->_flag &= ~(_IOMYBUF|_IONBF); 12 | if ((iop->_base = buf) == NULL) 13 | iop->_flag |= _IONBF; 14 | else 15 | iop->_ptr = iop->_base; 16 | iop->_cnt = 0; 17 | } 18 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/sprintf.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | char *sprintf(str, fmt, args) 6 | char *str, *fmt; 7 | { 8 | struct _iobuf _strbuf; 9 | 10 | _strbuf._flag = _IOWRT+_IOSTRG; 11 | _strbuf._ptr = str; 12 | _strbuf._cnt = 32767; 13 | _doprnt(fmt, &args, &_strbuf); 14 | putc('\0', &_strbuf); 15 | return(str); 16 | } 17 | -------------------------------------------------------------------------------- /usr/src/libc/stdio/ungetc.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #include 4 | 5 | ungetc(c, iop) 6 | register FILE *iop; 7 | { 8 | if (c == EOF) 9 | return(-1); 10 | if ((iop->_flag&_IOREAD)==0 || iop->_ptr <= iop->_base) 11 | if (iop->_ptr == iop->_base && iop->_cnt==0) 12 | *iop->_ptr++; 13 | else 14 | return(-1); 15 | iop->_cnt++; 16 | *--iop->_ptr = c; 17 | return(0); 18 | } 19 | -------------------------------------------------------------------------------- /usr/src/libc/sys/access.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _access, cerror 5 | _access: mov $33,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/acct.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _acct, cerror 5 | _acct: mov $51,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/alarm.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _alarm 5 | _alarm: mov $27,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/chdir.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _chdir, cerror 5 | _chdir: mov $12,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/chmod.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _chmod, cerror 5 | _chmod: mov $15,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/chown.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _chown, cerror 5 | _chown: mov $16,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/chroot.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _chroot, cerror 5 | _chroot: mov $61,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/close.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _close, cerror 5 | _close: mov $6,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/creat.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _creat, cerror 5 | _creat: mov $8,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/dup.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _dup, _dup2, cerror 5 | _dup2: orl $0100,0x4(esp) 6 | 7 | _dup: mov $41,eax 8 | int $0x30 9 | jc 1f 10 | ret 11 | 12 | 1: jmp cerror 13 | -------------------------------------------------------------------------------- /usr/src/libc/sys/execl.c: -------------------------------------------------------------------------------- 1 | /* V7/x86 source code: see www.nordier.com/v7x86 for details. */ 2 | /* Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | extern char **environ; 5 | 6 | int 7 | execl(name,args) 8 | char *name; 9 | { 10 | return execve(name, &args, environ); 11 | } 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/execle.s: -------------------------------------------------------------------------------- 1 | // UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. 2 | // Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | // C library -- execle 5 | 6 | // execle(file, arg1, arg2, ... , 0, env); 7 | // 8 | 9 | .globl _execle 10 | .globl _execve 11 | 12 | _execle: 13 | push ebp 14 | mov esp,ebp 15 | push 8(ebp) 16 | lea 12(ebp),eax 17 | push eax 18 | 1: 19 | mov (eax),ecx 20 | add $4,eax 21 | test ecx,ecx 22 | jnz 1b 23 | push (eax) 24 | call _execve 25 | leave 26 | ret 27 | -------------------------------------------------------------------------------- /usr/src/libc/sys/execv.c: -------------------------------------------------------------------------------- 1 | /* V7/x86 source code: see www.nordier.com/v7x86 for details. */ 2 | /* Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | extern char **environ; 5 | 6 | int 7 | execv(path, argv) 8 | char *path; 9 | char **argv; 10 | { 11 | return execve(path, argv, environ); 12 | } 13 | -------------------------------------------------------------------------------- /usr/src/libc/sys/execve.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _execve, cerror 5 | _execve: mov $59,eax 6 | int $0x30 7 | jmp cerror 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/exit.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl __exit 5 | __exit: mov $1,eax 6 | int $0x30 7 | -------------------------------------------------------------------------------- /usr/src/libc/sys/fstat.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _fstat, cerror 5 | _fstat: mov $28,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/getgid.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _getgid 5 | _getgid: mov $47,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/getpid.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _getpid 5 | _getpid: mov $20,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/getuid.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _getuid 5 | _getuid: mov $24,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/ioctl.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _ioctl, cerror 5 | _ioctl: mov $54,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/kill.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _kill, cerror 5 | _kill: mov $37,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/link.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _link, cerror 5 | _link: mov $9,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/lock.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _lock, cerror 5 | _lock: mov $53,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/lseek.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _lseek, cerror 5 | _lseek: mov $19,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/mknod.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _mknod, cerror 5 | _mknod: mov $14,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/mount.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _mount, cerror 5 | _mount: mov $21,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/mpxcall.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _mpxcall, cerror 5 | _mpxcall: mov $56,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/nice.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _nice, cerror 5 | _nice: mov $34,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/open.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _open, cerror 5 | _open: mov $5,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/pause.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _pause 5 | _pause: mov $29,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/phys.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _phys, cerror 5 | _phys: mov $52,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/pipe.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _pipe, cerror 5 | _pipe: mov $42,eax 6 | int $0x30 7 | jc 1f 8 | mov 0x4(esp),ecx 9 | mov eax,(ecx) 10 | mov edx,0x4(ecx) 11 | xor eax,eax 12 | ret 13 | 14 | 1: jmp cerror 15 | -------------------------------------------------------------------------------- /usr/src/libc/sys/profil.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _profil 5 | _profil: mov $44,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/ptrace.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _ptrace, _errno, cerror 5 | _ptrace: movl $0,_errno 6 | mov $26,eax 7 | int $0x30 8 | jc 1f 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/read.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _read, cerror 5 | _read: mov $3,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/setgid.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _setgid, cerror 5 | _setgid: mov $46,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/setuid.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _setuid, cerror 5 | _setuid: mov $23,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/stat.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _stat, cerror 5 | _stat: mov $18,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/stime.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _stime, cerror 5 | _stime: mov $25,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/sync.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _sync 5 | _sync: mov $36,eax 6 | int $0x30 7 | ret 8 | -------------------------------------------------------------------------------- /usr/src/libc/sys/time.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _time 5 | _time: mov $13,eax 6 | int $0x30 7 | mov 0x4(esp),ecx 8 | jecxz 1f 9 | mov eax,(ecx) 10 | 1: ret 11 | 12 | .globl _ftime, cerror 13 | _ftime: mov $35,eax 14 | int $0x30 15 | jc 1f 16 | ret 17 | 18 | 1: jmp cerror 19 | -------------------------------------------------------------------------------- /usr/src/libc/sys/times.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _times, cerror 5 | _times: mov $43,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/umask.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _umask, cerror 5 | _umask: mov $60,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libc/sys/umount.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _umount, cerror 5 | _umount: mov $22,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/unlink.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _unlink, cerror 5 | _unlink: mov $10,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/utime.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _utime, cerror 5 | _utime: mov $30,eax 6 | int $0x30 7 | jc 1f 8 | xor eax,eax 9 | ret 10 | 11 | 1: jmp cerror 12 | -------------------------------------------------------------------------------- /usr/src/libc/sys/wait.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _wait, cerror 5 | _wait: mov $7,eax 6 | int $0x30 7 | jc 2f 8 | mov 0x4(esp),ecx 9 | jecxz 1f 10 | mov edx,(ecx) 11 | 1: ret 12 | 13 | 2: jmp cerror 14 | -------------------------------------------------------------------------------- /usr/src/libc/sys/write.s: -------------------------------------------------------------------------------- 1 | // V7/x86 source code: see www.nordier.com/v7x86 for details. 2 | // Copyright (c) 1999 Robert Nordier. All rights reserved. 3 | 4 | .globl _write, cerror 5 | _write: mov $4,eax 6 | int $0x30 7 | jc 1f 8 | ret 9 | 10 | 1: jmp cerror 11 | -------------------------------------------------------------------------------- /usr/src/libdbm/compall: -------------------------------------------------------------------------------- 1 | cc -c -O dbm.c 2 | -------------------------------------------------------------------------------- /usr/src/libdbm/mklib: -------------------------------------------------------------------------------- 1 | mv dbm.o libdbm.a 2 | -------------------------------------------------------------------------------- /usr/src/libm/compall: -------------------------------------------------------------------------------- 1 | cc -c -O asin.c 2 | cc -c -O atan.c 3 | cc -c -O exp.c 4 | cc -c -O fabs.c 5 | cc -c -O floor.c 6 | cc -c -O hypot.c 7 | cc -c -O j0.c 8 | cc -c -O j1.c 9 | cc -c -O jn.c 10 | cc -c -O log.c 11 | cc -c -O pow.c 12 | cc -c -O sin.c 13 | cc -c -O sinh.c 14 | cc -c -O sqrt.c 15 | cc -c -O tan.c 16 | cc -c -O tanh.c 17 | -------------------------------------------------------------------------------- /usr/src/libm/fabs.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | double 4 | fabs(arg) 5 | double arg; 6 | { 7 | 8 | if(arg < 0.) 9 | arg = -arg; 10 | return(arg); 11 | } 12 | -------------------------------------------------------------------------------- /usr/src/libm/floor.c: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * floor and ceil-- greatest integer <= arg 5 | * (resp least >=) 6 | */ 7 | 8 | double modf(); 9 | 10 | double 11 | floor(d) 12 | double d; 13 | { 14 | double fract; 15 | 16 | if (d<0.0) { 17 | d = -d; 18 | fract = modf(d, &d); 19 | if (fract != 0.0) 20 | d += 1; 21 | d = -d; 22 | } else 23 | modf(d, &d); 24 | return(d); 25 | } 26 | 27 | double 28 | ceil(d) 29 | double d; 30 | { 31 | return(-floor(-d)); 32 | } 33 | -------------------------------------------------------------------------------- /usr/src/libm/mklib: -------------------------------------------------------------------------------- 1 | ar rc libm.a \ 2 | asin.o \ 3 | atan.o \ 4 | hypot.o \ 5 | jn.o \ 6 | j0.o \ 7 | j1.o \ 8 | pow.o \ 9 | fabs.o \ 10 | log.o \ 11 | sin.o \ 12 | sqrt.o \ 13 | tan.o \ 14 | tanh.o \ 15 | sinh.o \ 16 | exp.o \ 17 | floor.o 18 | -------------------------------------------------------------------------------- /usr/src/libmp/compall: -------------------------------------------------------------------------------- 1 | cc -c -O pow.c gcd.c msqrt.c mdiv.c mout.c mult.c madd.c util.c 2 | -------------------------------------------------------------------------------- /usr/src/libmp/mklib: -------------------------------------------------------------------------------- 1 | ar cr libmp.a pow.o gcd.o msqrt.o mdiv.o mout.o mult.o madd.o util.o 2 | -------------------------------------------------------------------------------- /usr/src/libplot/plot.c.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/libplot/plot.c.a -------------------------------------------------------------------------------- /usr/src/libplot/t300.c.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/libplot/t300.c.a -------------------------------------------------------------------------------- /usr/src/libplot/t300s.c.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/libplot/t300s.c.a -------------------------------------------------------------------------------- /usr/src/libplot/t4014.c.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/libplot/t4014.c.a -------------------------------------------------------------------------------- /usr/src/libplot/t450.c.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/libplot/t450.c.a -------------------------------------------------------------------------------- /usr/src/libplot/vt0.c.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/src/libplot/vt0.c.a -------------------------------------------------------------------------------- /usr/sys/conf/hd0conf: -------------------------------------------------------------------------------- 1 | hd 2 | fd 3 | md 4 | cd 5 | sr 6 | root hd 56 7 | swap hd 57 8 | swplo 0 9 | nswap 32000 10 | -------------------------------------------------------------------------------- /usr/sys/conf/hd1conf: -------------------------------------------------------------------------------- 1 | hd 2 | fd 3 | md 4 | cd 5 | sr 6 | root hd 120 7 | swap hd 121 8 | swplo 0 9 | nswap 32000 10 | -------------------------------------------------------------------------------- /usr/sys/conf/md0conf: -------------------------------------------------------------------------------- 1 | hd 2 | fd 3 | md 4 | cd 5 | sr 6 | root md 0 7 | swap md 0 8 | swplo 2880 9 | nswap 32000 10 | -------------------------------------------------------------------------------- /usr/sys/dev/mklib: -------------------------------------------------------------------------------- 1 | ar rc LIB2 \ 2 | bio.o \ 3 | sr.o \ 4 | sc.o \ 5 | md.o \ 6 | mem.o \ 7 | mx1.o \ 8 | mx2.o \ 9 | sys.o \ 10 | tty.o \ 11 | dsort.o \ 12 | pk0.o \ 13 | pk1.o \ 14 | pk2.o \ 15 | pk3.o \ 16 | fd.o \ 17 | hd.o \ 18 | cd.o \ 19 | partab.o 20 | -------------------------------------------------------------------------------- /usr/sys/h/dir.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #ifndef DIRSIZ 4 | #define DIRSIZ 14 5 | #endif 6 | struct direct 7 | { 8 | ino_t d_ino; 9 | char d_name[DIRSIZ]; 10 | }; 11 | -------------------------------------------------------------------------------- /usr/sys/h/fblk.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct fblk 4 | { 5 | int df_nfree; 6 | daddr_t df_free[NICFREE]; 7 | }; 8 | -------------------------------------------------------------------------------- /usr/sys/h/map.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | struct map 4 | { 5 | short m_size; 6 | unsigned short m_addr; 7 | }; 8 | 9 | struct map coremap[CMAPSIZ]; /* space for core allocation */ 10 | struct map swapmap[SMAPSIZ]; /* space for swap allocation */ 11 | -------------------------------------------------------------------------------- /usr/sys/h/mount.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Mount structure. 5 | * One allocated on every mount. 6 | * Used to find the super block. 7 | */ 8 | struct mount 9 | { 10 | dev_t m_dev; /* device mounted */ 11 | struct buf *m_bufp; /* pointer to superblock */ 12 | struct inode *m_inodp; /* pointer to mounted on inode */ 13 | } mount[NMOUNT]; 14 | -------------------------------------------------------------------------------- /usr/sys/h/prim.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | #define NOSLEEP 0400 4 | #define FORCE 01000 5 | #define NORM 02000 6 | #define KEEP 04000 7 | #define CLR 010000 8 | 9 | int bwaiting,wcount; 10 | 11 | char *getepack(); 12 | -------------------------------------------------------------------------------- /usr/sys/h/seg.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | /* Changes: Copyright (c) 1999 Robert Nordier. All rights reserved. */ 3 | 4 | #define RO 05 /* access abilities */ 5 | #define RW 07 6 | -------------------------------------------------------------------------------- /usr/sys/h/timeb.h: -------------------------------------------------------------------------------- 1 | /* UNIX V7 source code: see /COPYRIGHT or www.tuhs.org for details. */ 2 | 3 | /* 4 | * Structure returned by ftime system call 5 | */ 6 | struct timeb { 7 | time_t time; 8 | unsigned short millitm; 9 | short timezone; 10 | short dstflag; 11 | }; 12 | -------------------------------------------------------------------------------- /usr/sys/sys/mklib: -------------------------------------------------------------------------------- 1 | ar cr LIB1 \ 2 | main.o \ 3 | trap.o \ 4 | sig.o \ 5 | iget.o \ 6 | prf.o \ 7 | slp.o \ 8 | subr.o \ 9 | rdwri.o \ 10 | clock.o \ 11 | fio.o \ 12 | malloc.o \ 13 | alloc.o \ 14 | machdep.o \ 15 | nami.o \ 16 | pipe.o \ 17 | prim.o \ 18 | fakemx.o \ 19 | sysent.o \ 20 | sys3.o \ 21 | sys1.o \ 22 | sys4.o \ 23 | sys2.o \ 24 | acct.o \ 25 | text.o \ 26 | utab.o 27 | -------------------------------------------------------------------------------- /usr/ucb/edit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/edit -------------------------------------------------------------------------------- /usr/ucb/ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/ex -------------------------------------------------------------------------------- /usr/ucb/factor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/factor -------------------------------------------------------------------------------- /usr/ucb/more: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/more -------------------------------------------------------------------------------- /usr/ucb/primes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/primes -------------------------------------------------------------------------------- /usr/ucb/printenv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/printenv -------------------------------------------------------------------------------- /usr/ucb/vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/vi -------------------------------------------------------------------------------- /usr/ucb/view: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/view -------------------------------------------------------------------------------- /usr/ucb/whereis: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calmsacibis995/v7x86/079c217f42dbdb59611d2d61e136ea8c1e720c0a/usr/ucb/whereis --------------------------------------------------------------------------------