• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..04-Jun-2010-

MakefileH A D04-Jun-2010931 3827

READMEH A D04-Jun-20101.2 KiB3022

_libc.hH A D04-Jun-2010660 4135

address.cH A D04-Jun-20103.9 KiB241218

buff.cH A D04-Jun-20105 KiB303246

cmd.cH A D04-Jun-201010.6 KiB609548

disk.cH A D04-Jun-20102 KiB123105

errH A D04-Jun-20102.2 KiB4039

error.cH A D04-Jun-20102.2 KiB145123

errors.hH A D04-Jun-2010693 6659

file.cH A D04-Jun-201010.5 KiB611500

io.cH A D04-Jun-20104.6 KiB279261

list.cH A D04-Jun-20101.4 KiB9774

mesg.cH A D04-Jun-201014.1 KiB849763

mesg.hH A D04-Jun-20103.7 KiB13267

moveto.cH A D04-Jun-20102.6 KiB174148

multi.cH A D04-Jun-20101.8 KiB124106

parse.hH A D04-Jun-20101.9 KiB6960

plan9.cH A D04-Jun-20102.7 KiB186163

plumb.hH A D04-Jun-2010312 1814

rasp.cH A D04-Jun-20105.7 KiB341292

regexp.cH A D04-Jun-201015.1 KiB803712

sam.1H A D04-Jun-201018.1 KiB909908

sam.cH A D04-Jun-201012.3 KiB742667

sam.hH A D04-Jun-20109.4 KiB409355

shell.cH A D04-Jun-20103.2 KiB166154

string.cH A D04-Jun-20102.7 KiB194161

sys.cH A D04-Jun-2010745 6147

unix.cH A D04-Jun-20104 KiB223191

util.cH A D04-Jun-2010766 5542

xec.cH A D04-Jun-20108.3 KiB509462

README

1This is sam (not including samterm) from the 4th edition of Plan 9,
2with changes so that it can be compiled under unix.
3(Tested on Solaris 7 and Debian 3.0r1.)
4
5Some extra libraries are needed.  First, fetch libutf-2.0 and libfmt-2.0
6from
7	http://pdos.lcs.mit.edu/~rsc/software/
8
9(Beware that in libfmt/fmt.c there is a line that says:
10        'u',    __ifmt,         /* in Plan 9, __flagfmt */
11Thus, sam will have to fmtinstall the other thing.  Other ported programs
12may have to do the same.  The fmt library should probably print messages
13about bad format characters to stderr, since no one seems to check the
14return codes.)
15
16Compile and install those two libraries.
17Set PREFIX in the Makefile to match, then compile sam.
18
19Your C compiler will emit many complaints of the form:
20  sam.c:496: warning: passing arg 1 of `bufread' from incompatible pointer type
21
22This is because the Plan 9 compiler has a slightly different (better,
23ala Oberon) type system than ISO C.  Popular compilers generate the right
24code, so in an act of civil disobediance I changed just enough to get
25it to compile, but left the type errors in.  Now the next C standard can
26adopt this extension, because at least one important C program uses it!
27
28-- Scott Schwartz,  4 July 2003
29
30