[310,106]		RSX-11M Run Time System
----------		-----------------------

To build the C run time system do the followinfgg:

	>@CLIBASM
	>@CLIBBLD

This will produce the file C.OLB on this UIC. It should probably
be transfered to LB:[1,1]. The files STDIO.H and HDR.H should be
copied to LB:[1,1] (this is where the '#include < . . . >' statement
looks for things). This file contains I/O system interface data.


The C compiler and runtime does not ever use EIS. If you have an
eisbox you may wish to edit eis.s to use eis instruction. itoc.s
itox.s and itoc8.s are eis versions. The normal conversion routines
used by printf are in itoa.s. You can take your pick.

Some of the routines are described in CC.RNO in [310,103]. Since then
the following things have changed:

	fopen 	Two new letters in the option string.
		"n" means no newlines. Output is done via
			an IO.WAL. Like raw mode output.
			Useful for cursor addressing, etc.
		"u" means unbufferd. The ioptr is only useable
			by fput and fget.

	fput(buf, nbytes, ioptr) - write binary record. Returns
		nbytes. use ferr(ioptr) to check for io errors.

	fget(buf, nbytes, ioptr) - read binary record. Returns
		the number of bytes actually read (nbytes in the
		call is a max size). Returns 0 on eof or error
		but 0 is a legal length record, so you should
		call feof or ferr.

	r50toa(p, r, n) - converts n words or radix 50 beginning at
		r (int *) and saves it in the buffer at p (char *).
		To convert a DEC stype symbol, for example.

			typedef unsigned rad50;

			rad50 s[2];
			char  a[6];
			r50toa(a, s, 2);

	flun(ioptr) - return the lun associated with an ioptr.
		No useful (yet).

	frec(ioptr) - return 1 if the ioptr describes a record
		device.

	fattr(??) - fiddle with the file attributes section
		of the IOV. Look in the source to see what it
		does. Remeber it does nothing on an output iov
		except perhaps blow stdio out of the tub.

	There are also a bunch of little calls for playing with
	some rsx things. Just look at the source. The calling
	sequence is usually there in a comment.
