#define	vector(lbl)	\
	.text;		\
	.globl	_##lbl;	\
	jmp	_##lbl;

	vector	(_doprnt)	 	/* a0000000 */
	vector	(_bufsync)		/* a0000005 */
	vector	(_cleanup)		/* a000000f */
	vector	(_cerror)		/* a000000a */
	vector	(_filbuf)		/* a0000014 */
	vector	(_findbuf)		/* a0000019 */
	vector	(_findiop)		/* a000001e */
	vector	(_flsbuf)		/* a0000023 */
	vector	(_wrtchk)		/* a0000028 */
	vector	(_xflsbuf)		/* a000002d */
	vector	(abs)			/* a0000032 */
	vector	(access)		/* a0000037 */
	vector	(atof)			/* a000003c */
	vector	(atoi)			/* a0000041 */
	vector	(atol)			/* a0000046 */
	vector	(__brk)			/* a000004b */
	vector	(calloc)		/* a0000050 */
	vector	(cfree)			/* a0000055 */
	vector	(chdir)			/* a000005a */
	vector	(chmod)			/* a000005f */
	vector	(close)			/* a0000064 */
	vector	(creat)			/* a0000069 */
	vector	(ecvt)			/* a000006e */
	vector	(fclose)		/* a0000073 */
	vector	(fcntl)			/* a0000078 */
	vector	(fcvt)			/* a000007d */
	vector	(fflush)		/* a0000082 */
	vector	(fgetc)			/* a0000087 */
	vector	(fgets)			/* a000008c */
	vector	(fopen)			/* a0000091 */
	vector	(fprintf)		/* a0000096 */
	vector	(fputc)			/* a000009b */
	vector	(fputs)			/* a00000a0 */
	vector	(fread)			/* a00000a5 */
	vector	(free)			/* a00000aa */
	vector	(freopen)		/* a00000af */
	vector	(frexp)			/* a00000b4 */
	vector	(fseek)			/* a00000b9 */
	vector	(fstat)			/* a00000be */
	vector	(fwrite)		/* a00000c3 */
	vector	(gcvt)			/* a00000c8 */
	vector	(getchar)		/* a00000cd */
	vector	(getenv)		/* a00000d2 */
	vector	(getopt)		/* a00000d7 */
	vector	(illegal)		/* a00000dc */
	vector	(gets)			/* a00000e1 */
	vector	(getw)			/* a00000e6 */
	vector	(ioctl)			/* a00000eb */
	vector	(isatty)		/* a00000f0 */
	vector	(isnand)		/* a00000f5 */
	vector	(kill)			/* a00000fa */
	vector	(ldexp)			/* a00000ff */
	vector	(lseek)			/* a0000104 */
	vector	(malloc)		/* a0000109 */
	vector	(__ibcs_memccpy)	/* a000010e */
	vector	(__ibcs_memchr)		/* a0000113 */
	vector	(__ibcs_memcmp)		/* a0000118 */
	vector	(__ibcs_memcpy)		/* a000011d */
	vector	(__ibcs_memset)		/* a0000122 */
	vector	(mktemp)		/* a0000127 */
	vector	(open)			/* a000012c */
	vector	(printf)		/* a0000131 */
	vector	(putchar)		/* a0000136 */
	vector	(puts)			/* a000013b */
	vector	(putw)			/* a0000140 */
	vector	(read)			/* a0000145 */
	vector	(realloc)		/* a000014a */
	vector	(__sbrk)		/* a000014f */
	vector	(setbuf)		/* a0000154 */
	vector	(sighold)		/* a0000159 */
	vector	(sigignore)		/* a000015e */
	vector	(signal)		/* a0000163 */
	vector	(sigpause)		/* a0000168 */
	vector	(sigrelse)		/* a000016d */
	vector	(sigset)		/* a0000172 */
	vector	(sprintf)		/* a0000177 */
	vector	(stat)			/* a000017c */
	vector	(strcat)		/* a0000181 */
	vector	(strchr)		/* a0000186 */
	vector	(strcmp)		/* a000018b */
	vector	(__ibcs_strcpy)		/* a0000190 */
	vector	(__ibcs_strlen)		/* a0000195 */
	vector	(strncat)		/* a000019a */
	vector	(strncmp)		/* a000019f */
	vector	(strncpy)		/* a00001a4 */
	vector	(strrchr)		/* a00001a9 */
	vector	(time)			/* a00001ae */
	vector	(_old_tolower)		/* a00001b3 */
	vector	(_old_toupper)		/* a00001b8 */
	vector	(ungetc)		/* a00001bd */
	vector	(unlink)		/* a00001c2 */
	vector	(utime)			/* a00001c7 */
	vector	(write)			/* a00001cc */
	vector	(illegal)		/* a00001d1 */
	vector	(illegal)		/* a00001d6 */
	vector	(illegal)		/* a00001db */
	vector	(illegal)		/* a00001e0 */
	vector	(illegal)		/* a00001e5 */
	vector	(illegal)		/* a00001ea */
	vector	(illegal)		/* a00001ef */
	vector	(illegal)		/* a00001f4 */
	vector	(illegal)		/* a00001f9 */
	vector	(illegal)		/* a00001fe */
	vector	(illegal)		/* a0000203 */
	vector	(illegal)		/* a0000208 */
	vector	(illegal)		/* a000020d */
	vector	(illegal)		/* a0000212 */
	vector	(illegal)		/* a0000217 */
	vector	(illegal)		/* a000021c */
	vector	(illegal)		/* a0000221 */
	vector	(illegal)		/* a0000226 */
	vector	(illegal)		/* a000022b */
	vector	(illegal)		/* a0000230 */
	vector	(illegal)		/* a0000235 */
	vector	(illegal)		/* a000023a */
	vector	(illegal)		/* a000023f */
	vector	(illegal)		/* a0000244 */
	vector	(illegal)		/* a0000249 */
	vector	(illegal)		/* a000024e */
	vector	(illegal)		/* a0000253 */
	vector	(illegal)		/* a0000258 */
	vector	(illegal)		/* a000025d */
	vector	(illegal)		/* a0000262 */
	vector	(illegal)		/* a0000267 */
	vector	(illegal)		/* a000026c */
	vector	(illegal)		/* a0000271 */
	vector	(illegal)		/* a0000276 */
	vector	(illegal)		/* a000027b */
	vector	(illegal)		/* a0000280 */
	vector	(illegal)		/* a0000285 */
	vector	(illegal)		/* a000028a */
	vector	(illegal)		/* a000028f */
	vector	(illegal)		/* a0000294 */
	vector	(illegal)		/* a0000299 */
	vector	(illegal)		/* a000029e */
	vector	(illegal)		/* a00002a3 */
	vector	(illegal)		/* a00002a8 */
	vector	(illegal)		/* a00002ad */
	vector	(illegal)		/* a00002b2 */
	vector	(illegal)		/* a00002b7 */
	vector	(illegal)		/* a00002bc */
	vector	(illegal)		/* a00002c1 */
	vector	(illegal)		/* a00002c6 */
	vector	(illegal)		/* a00002cb */
	vector	(illegal)		/* a00002d0 */
	vector	(illegal)		/* a00002d5 */
	vector	(illegal)		/* a00002da */
	vector	(illegal)		/* a00002df */
	vector	(illegal)		/* a00002e4 */
	vector	(getpid)		/* a00002e9 */

/*
 *  This procedure does the completion processing from a syscall.
 */

	.text				/* Ensure this is proper sect.	*/
	.globl	_errno;			/* Define error number		*/
__wrtchk:
	jnc	1f;			/* Skip if no error 		*/
	mov	%eax,_errno;		/* Store the error code		*/
	mov	$-1,%eax;		/* Load the error return value	*/
1:	ret;				/* Return from the request	*/

/*
 *  Macros for the data section processing
 */


#define	ldata(lbl)		\
	.data;			\
	.globl	_##lbl;		\
_##lbl:	.long	0;

#define	ldatac(lbl,val)		\
	.data;			\
	.globl	_##lbl;		\
_##lbl:	.long	val;

#define	laddr(lbl,val)		\
	.data;			\
	.globl	_##lbl, _##val;	\
_##lbl:	.long	_##val;

#define	filler			\
	.data;			\
	.long	0;

	ldata	(__Fp_Used)		/* a0400000 */
	laddr	(_libc__ctype,_ctype)	/* a0400004 */
	laddr	(_libc_malloc,malloc)	/* a0400008 */
	laddr	(_libc_realloc,realloc)	/* a040000c */
	laddr	(_libc_free,free)	/* a0400010 */
	ldata	(_libc__allocs)		/* a0400014 */
	laddr	(_libc__sibuf,_bufin)	/* a0400018 */
	laddr	(_libc__sobuf,_bufout)	/* a040001c */
	laddr	(_libc__smbuf,_buferr)	/* a0400020 */
	laddr	(_libc__iob,_iob)	/* a0400024 */
	ldata	(_libc__lastbuf)	/* a0400028 */
	ldata	(_libc__bufendtab)	/* a040002c */
	ldata	(_libc_end)		/* a0400030 */
	ldata	(_libc__cleanup)        /* a0400034 */
	ldata	(_libc_environ)		/* a0400038 */
	ldatac	(opterr,1)		/* a040003c */
	ldatac	(optind,1)		/* a0400040 */
	ldata	(optopt)		/* a0400044 */
	ldata	(optarg)		/* a0400048 */
	ldata	(errno)			/* a040004c */

	filler				/* a0400050 */
	filler				/* a0400054 */
	filler				/* a0400058 */
	filler				/* a040005c */
	filler				/* a0400060 */
	filler				/* a0400064 */
	filler				/* a0400068 */
	filler				/* a040006c */
	filler				/* a0400070 */
	filler				/* a0400074 */
	filler				/* a0400078 */
	filler				/* a040007c */
	filler				/* a0400080 */
	filler				/* a0400084 */
	filler				/* a0400088 */
	filler				/* a040008c */
	filler				/* a0400090 */

	ldata	(__fltused)		/* a0400094 */
 


