Subject: zork won't assemble (#138)
Index:	games/pdp/zork/o.s 2.11BSD

Description:
	When the 'wait4(2)' syscall was added the definition of
	SYS_wait was removed from the system.  This causes the
	rebuilding of 'zork' to fail.

Repeat-By:
	Make sure the 'wait4' changes have been applied to the system
	and then attempt to rebuild 'zork'.

	The old executable will run because there is a compatiblity
	handler for the old 'wait' syscall but the source needs to
	be fixed to use new new wait4 syscall.

Fix:
	Apply the patch below.  Then rebuild and install the program.
==================================cut here============================
*** /usr/src/games/pdp/zork/o.s.old	Thu Aug  6 03:23:55 1987
--- /usr/src/games/pdp/zork/o.s	Mon Jun 14 21:13:39 1993
***************
*** 195,204 ****
  
  	mov	r1,-(sp)	/protect r1 from wait
  
! 	clr	-(sp)
! 	tst	-(sp)
! 	sys	SYS_wait.	/wait for daughter to complete
! 	cmp	(sp)+,(sp)+
  	mov	(sp)+,r1	/restore r1
  
  	mov	$3,-(sp)	/write prompt when through
--- 195,207 ----
  
  	mov	r1,-(sp)	/protect r1 from wait
  
! 	clr	-(sp)		/ rusage
! 	clr	-(sp)		/ options
! 	clr	-(sp)		/ status
! 	mov	$-1,-(sp)	/ wpid
! 	tst	-(sp)		/ fake return address
! 	sys	SYS_wait4.	/ wait for daughter to complete
! 	add	$5*2,sp
  	mov	(sp)+,r1	/restore r1
  
  	mov	$3,-(sp)	/write prompt when through
