Permalink
Browse files

add minix source code

  • Loading branch information...
1 parent 2c00d78 commit b387be69f13d04018cc84ec13b98bb46992f70a6 @astrotycoon committed Feb 20, 2012
Showing 1,906 changed files with 615,261 additions and 0 deletions.
View
@@ -0,0 +1,16 @@
+# Ash initialization.
+
+# Let cd display the current directory on the status line.
+if [ "$-" : '.*i.*' -a -t 0 -a -f /usr/bin/tget ] && tget -flag hs
+then
+ hostname=$(expr $(uname -n) : '\([^.]*\)')
+ eval "cd()
+ {
+ chdir \"\$@\" &&
+ echo -n '$(tget -str ts \
+ "$USER@$hostname:'\"\`pwd\`\"'" \
+ -str fs)'
+ }"
+ unset hostname
+ cd .
+fi
View
Binary file not shown.
View
@@ -0,0 +1,219 @@
+; This is the default user profile to emulate "mined" (MINIX editor),
+; as per Andy Tanenbaum.
+
+(keyallunbind)
+
+; Insert self
+(keybind A "Insert Self")
+(keybind B "Insert Self")
+(keybind C "Insert Self")
+(keybind D "Insert Self")
+(keybind E "Insert Self")
+(keybind F "Insert Self")
+(keybind G "Insert Self")
+(keybind H "Insert Self")
+(keybind I "Insert Self")
+(keybind J "Insert Self")
+(keybind K "Insert Self")
+(keybind L "Insert Self")
+(keybind M "Insert Self")
+(keybind N "Insert Self")
+(keybind O "Insert Self")
+(keybind P "Insert Self")
+(keybind Q "Insert Self")
+(keybind R "Insert Self")
+(keybind S "Insert Self")
+(keybind T "Insert Self")
+(keybind U "Insert Self")
+(keybind V "Insert Self")
+(keybind W "Insert Self")
+(keybind X "Insert Self")
+(keybind Y "Insert Self")
+(keybind Z "Insert Self")
+(keybind a "Insert Self")
+(keybind b "Insert Self")
+(keybind c "Insert Self")
+(keybind d "Insert Self")
+(keybind e "Insert Self")
+(keybind f "Insert Self")
+(keybind g "Insert Self")
+(keybind h "Insert Self")
+(keybind i "Insert Self")
+(keybind j "Insert Self")
+(keybind k "Insert Self")
+(keybind l "Insert Self")
+(keybind m "Insert Self")
+(keybind n "Insert Self")
+(keybind o "Insert Self")
+(keybind p "Insert Self")
+(keybind q "Insert Self")
+(keybind r "Insert Self")
+(keybind s "Insert Self")
+(keybind t "Insert Self")
+(keybind u "Insert Self")
+(keybind v "Insert Self")
+(keybind w "Insert Self")
+(keybind x "Insert Self")
+(keybind y "Insert Self")
+(keybind z "Insert Self")
+(keybind 0 "Insert Self")
+(keybind 1 "Insert Self")
+(keybind 2 "Insert Self")
+(keybind 3 "Insert Self")
+(keybind 4 "Insert Self")
+(keybind 5 "Insert Self")
+(keybind 6 "Insert Self")
+(keybind 7 "Insert Self")
+(keybind 8 "Insert Self")
+(keybind 9 "Insert Self")
+(keybind / "Insert Self")
+(keybind : "Insert Self")
+(keybind < "Insert Self")
+(keybind = "Insert Self")
+(keybind > "Insert Self")
+(keybind ? "Insert Self")
+(keybind @ "Insert Self")
+(keybind [ "Insert Self")
+(keybind ] "Insert Self")
+(keybind ^ "Insert Self")
+(keybind # "Insert Self")
+(keybind $ "Insert Self")
+(keybind % "Insert Self")
+(keybind & "Insert Self")
+(keybind ' "Insert Self")
+(keybind * "Insert Self")
+(keybind + "Insert Self")
+(keybind , "Insert Self")
+(keybind - "Insert Self")
+(keybind . "Insert Self")
+(keybind ! "Insert Self")
+(keybind " " "Insert Self")
+(keybind """" "Insert Self")
+(keybind "(" "Insert Self")
+(keybind ")" "Insert Self")
+(keybind ";" "Insert Self")
+(keybind "\" "Insert Self")
+(keybind _ "Insert Self")
+(keybind ` "Insert Self")
+(keybind { "Insert Self")
+(keybind | "Insert Self")
+(keybind } "Insert Self")
+(keybind ~ "Insert Self")
+
+; CTRL char
+(keybind ^A "Beginning of Line")
+(keybind ^B "Backward Word")
+(keybind ^C "Copy Region")
+(keybind ^D "Scroll Window Up")
+(keybind ^E "New Window")
+(keybind ^F "Forward Word")
+(keybind ^H "Backward Delete Character")
+(keybind ^I "Insert Self")
+; open
+(keybind ^K "Kill Region")
+(keybind ^L "Replace in Line")
+(keybind ^M "CRLF")
+(keybind ^N "Kill Word")
+(keybind ^O "Open Line")
+(keybind ^P "Backward Kill Word")
+(keybind ^Q "Write Last Kill")
+(keybind ^R "Replace String")
+(keybind ^S "Push to Inferior")
+(keybind ^T "Kill Line")
+(keybind ^U "Scroll Window Down")
+(keybind ^V "Find File")
+(keybind ^W "Save File")
+(keybind ^X "Prefix Extend")
+(keybind ^Y "Un-kill")
+(keybind ^Z "End of Line")
+(keybind "^\" "Quoted Insert")
+(keybind ^_ "Move to Window Bottom")
+(keybind ^^ "Set/Pop Mark")
+(keybind ^] "Goto Line")
+
+; ESC char
+(keybind ^[ "Prefix Meta")
+(keybind M-0 "Argument Digit")
+(keybind M-1 "Argument Digit")
+(keybind M-2 "Argument Digit")
+(keybind M-3 "Argument Digit")
+(keybind M-4 "Argument Digit")
+(keybind M-5 "Argument Digit")
+(keybind M-6 "Argument Digit")
+(keybind M-7 "Argument Digit")
+(keybind M-8 "Argument Digit")
+(keybind M-9 "Argument Digit")
+(keybind M-A "Append Next Kill")
+(keybind M-B "Select Buffer")
+(keybind M-C "Uppercase Word")
+(keybind M-E "Execute Kbd Macro")
+(keybind M-F "Find File")
+(keybind M-G "Insert File")
+(keybind M-H "Describe")
+(keybind M-I "Uppercase Initial")
+(keybind M-K "Kill Buffer")
+(keybind M-L "Lowercase Region")
+(keybind M-M "Mark Paragraph")
+(keybind M-N "Buffer Not Modified")
+(keybind M-O "Lowercase Word")
+(keybind M-P "Forward Paragraph")
+(keybind M-Q "Query Replace")
+(keybind M-R "Set Profile")
+(keybind M-S "Select Existing Buffer")
+(keybind M-T "Transpose Characters")
+(keybind M-U "Uppercase Region")
+(keybind M-W "Transpose Words")
+(keybind M-X "Return to Superior")
+(keybind M-Y "Un-kill Pop")
+(keybind M-Z "Incremental Search")
+(keybind M-^ "Exchange Point and Mark")
+(keybind M-* "View Kbd Macro")
+(keybind M-[ "Prefix Extend")
+(keybind M-] "Backward Paragraph")
+(keybind M-= "Delete Horizontal Space")
+(keybind M-| "Delete Blank Lines")
+(keybind "M-," "Move to Window Top")
+(keybind "M-;" "Indent for Comment")
+(keybind "M-." "Indent Relative")
+(keybind "M-/" "Start Kbd Macro")
+(keybind "M-\" "End Kbd Macro")
+
+
+; CTRL-X char
+(keybind X-1 "One Window")
+(keybind X-2 "Two Windows")
+(keybind X-A "Up Real Line")
+(keybind X-B "Down Real Line")
+(keybind X-C "Forward Character")
+(keybind X-D "Backward Character")
+(keybind X-G "List Buffers")
+(keybind X-H "Goto Beginning")
+(keybind X-L "Grow Window")
+(keybind X-N "Other Window")
+(keybind X-P "Shrink Window")
+(keybind X-S "Reverse String Search")
+(keybind X-T "String Search")
+(keybind X-U "Next Screen")
+(keybind X-V "Previous Screen")
+(keybind X-X "Return to Superior")
+(keybind X-Y "Goto End")
+
+(keybind X-^A "Up Real Line")
+(keybind X-^B "Down Real Line")
+(keybind X-^C "Forward Character")
+(keybind X-^D "Backward Character")
+(keybind X-^G "List Buffers")
+(keybind X-^H "Goto Beginning")
+(keybind X-^L "Grow Window")
+(keybind X-^N "Other Window")
+(keybind X-^P "Shrink Window")
+(keybind X-^S "Reverse String Search")
+(keybind X-^T "String Search")
+(keybind X-^U "Next Screen")
+(keybind X-^V "Previous Screen")
+(keybind X-^W "New Window")
+(keybind X-^X "Return to Superior")
+(keybind X-^Y "Goto End")
+
+
+(keybind DEL "Delete Character")
View
@@ -0,0 +1 @@
+set autoindent autowrite report=2 showmatch
View
@@ -0,0 +1,20 @@
+# Login shell profile.
+
+# Environment.
+umask 022
+PATH=/usr/local/bin:/bin:/usr/bin
+PS1="! "
+export PATH
+
+# Erase character, erase line, and interrupt keys.
+stty erase '^H' kill '^U' intr '^?'
+
+# Check terminal type.
+case $TERM in
+dialup|unknown|network)
+ echo -n "Terminal type? ($TERM) "; read term
+ TERM="${term:-$TERM}"
+esac
+
+# Shell configuration.
+case "$0" in *ash) . $HOME/.ashrc;; esac
View
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Author: Kees J. Bot
+# Compile one soft FP source file.
+# (These files shouldn't be optimized normally, but the 16-bit C compiler
+# only optimizes scratch register allocation a bit with -O. To the 32-bit
+# compiler -O is a no-op.)
+
+case $#:$1 in
+1:*.c) ;;
+*) echo "$0: $1: not a C file" >&2; exit 1
+esac
+
+base="`basename "$1" .c`"
+trap 'rm -f tmp.s "$base.s"; exit 1' 2
+
+cc -O -I. -D_MINIX -D_POSIX_SOURCE -S "$1" &&
+mv "$base.s" tmp.s &&
+sed -f FP.script tmp.s > "$base.s" &&
+cc -c "$base.s" &&
+rm tmp.s "$base.s"
View
@@ -0,0 +1,39 @@
+s/_adf4/.adf4/
+s/_adf8/.adf8/
+s/_cff4/.cff4/
+s/_cff8/.cff8/
+s/_cfi/.cfi/
+s/_cfu/.cfu/
+s/_cif4/.cif4/
+s/_cif8/.cif8/
+s/_cmf4/.cmf4/
+s/_cmf8/.cmf8/
+s/_cuf4/.cuf4/
+s/_cuf8/.cuf8/
+s/_dvf4/.dvf4/
+s/_dvf8/.dvf8/
+s/_fef4/.fef4/
+s/_fef8/.fef8/
+s/_fif4/.fif4/
+s/_fif8/.fif8/
+s/_mlf4/.mlf4/
+s/_mlf8/.mlf8/
+s/_ngf4/.ngf4/
+s/_ngf8/.ngf8/
+s/_sbf4/.sbf4/
+s/_sbf8/.sbf8/
+s/_zrf4/.zrf4/
+s/_zrf8/.zrf8/
+s/_add_ext/.add_ext/
+s/_div_ext/.div_ext/
+s/_mul_ext/.mul_ext/
+s/_nrm_ext/.nrm_ext/
+s/_sft_ext/.sft_ext/
+s/_sub_ext/.sub_ext/
+s/_zrf_ext/.zrf_ext/
+s/_compact/.compact/
+s/_extend/.extend/
+s/_b64_add/.b64_add/
+s/_b64_sft/.b64_sft/
+s/_b64_rsft/.b64_rsft/
+s/_b64_lsft/.b64_lsft/
View
@@ -0,0 +1,28 @@
+/*
+ (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
+ See the copyright notice in the ACK home directory, in the file "Copyright".
+*/
+
+/* $Header: FP_bias.h,v 1.4 89/07/25 14:16:55 ceriel Exp $ */
+
+/*
+ include file for floating point package
+*/
+
+ /* FLOAT FORMAT EXPONENT BIAS */
+
+#define SGL_BIAS 127 /* excess 128 notation used */
+#define DBL_BIAS 1023 /* excess 1024 notation used */
+#define EXT_BIAS 0 /* 2s-complement notation used */
+ /* this is possible because the */
+ /* sign is in a seperate word */
+
+ /* VARIOUS MAX AND MIN VALUES */
+ /* 1) FOR THE DIFFERENT FORMATS */
+
+#define SGL_MAX 254 /* standard definition */
+#define SGL_MIN 1 /* standard definition */
+#define DBL_MAX 2046 /* standard definition */
+#define DBL_MIN 1 /* standard definition */
+#define EXT_MAX 16383 /* standard minimum */
+#define EXT_MIN -16382 /* standard minimum */
View
@@ -0,0 +1,49 @@
+/*
+ (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
+ See the copyright notice in the ACK home directory, in the file "Copyright".
+*/
+
+/* $Header: FP_shift.h,v 1.3 89/07/25 14:17:04 ceriel Exp $ */
+
+/*
+ include file for floating point package
+*/
+
+# define CARRYBIT 0x80000000L
+# define NORMBIT 0x80000000L
+# define EXP_STORE 16
+
+
+ /* parameters for Single Precision */
+#define SGL_EXPSHIFT 7
+#define SGL_M1LEFT 8
+#define SGL_ZERO 0xffffff80L
+#define SGL_EXACT 0xff
+#define SGL_RUNPACK SGL_M1LEFT
+
+#define SGL_ROUNDUP 0x80
+#define SGL_CARRYOUT 0x01000000L
+#define SGL_MASK 0x007fffffL
+
+ /* parameters for Double Precision */
+ /* used in extend.c */
+
+#define DBL_EXPSHIFT 4
+
+#define DBL_M1LEFT 11
+
+#define DBL_RPACK (32-DBL_M1LEFT)
+#define DBL_LPACK DBL_M1LEFT
+
+ /* used in compact.c */
+
+#define DBL_ZERO 0xfffffd00L
+
+#define DBL_EXACT 0x7ff
+
+#define DBL_RUNPACK DBL_M1LEFT
+#define DBL_LUNPACK (32-DBL_RUNPACK)
+
+#define DBL_ROUNDUP 0x400
+#define DBL_CARRYOUT 0x00200000L
+#define DBL_MASK 0x000fffffL
Oops, something went wrong.

0 comments on commit b387be6

Please sign in to comment.