Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!seismo!umcp-cs!mark From: mark@tove.UUCP (Mark Weiser) Newsgroups: net.sources Subject: Re: Source for Usenix Tournament GO Referee Message-ID: <1264@umcp-cs.UUCP> Date: Tue, 29-Apr-86 22:37:30 EDT Article-I.D.: umcp-cs.1264 Posted: Tue Apr 29 22:37:30 1986 Date-Received: Sat, 3-May-86 01:43:15 EDT References: <108@petrus.UUCP> Sender: mark@umcp-cs.UUCP Reply-To: mark@tove.UUCP (Mark Weiser) Distribution: net Organization: University of Maryland, Dept. of Computer Sci. Lines: 36 Keywords: Sun ycptp Summary: Changes for Suns Peter's go referee doesn't run on 2.x Suns because of his child timing hack (for which he he predicts a day in hell for himself, of which this posting is possibly the first minute). (The second minute is the following: you must mkdir SUBS and GREF before sh'ing his file.) Here is the contextual diff that makes the program run on Suns, while unfortunately breaking the child forking cheating check. ------------------------------------------------------------- *** utime.c Sun Apr 27 23:01:23 1986 --- utime.c.new Sun Apr 27 22:54:34 1986 *************** *** 115,121 } if (i >= nproc) /* did we find the proc table entry? */ return(0); ! ycptp = (int) p.p_cptr; if (readusr(&p) == 0) return(0); return(usr.u_ru.ru_utime.tv_sec); --- 115,121 ----- } if (i >= nproc) /* did we find the proc table entry? */ return(0); ! ycptp = 0; if (readusr(&p) == 0) return(0); return(usr.u_ru.ru_utime.tv_sec); ------------------------------------------------------------- -mark -- Spoken: Mark Weiser ARPA: mark@maryland Phone: +1-301-454-7817 CSNet: mark@umcp-cs UUCP: {seismo,allegra}!umcp-cs!mark USPS: Computer Science Dept., University of Maryland, College Park, MD 20742