11 while(*p != ' ' && *p != 0)
17 * after a fork with fd's copied, both fd's are pointing to
18 * the same Chan structure. Since the offset is kept in the Chan
19 * structure, the seek's and read's in the two processes can be
20 * are competing moving the offset around. Hence the unusual loop
21 * in the middle of this routine.
31 memset(b, 0, sizeof(b));
32 for(retries = 0; retries < 100; retries++){
34 f = open("/dev/cputime", OREAD|OCEXEC);
37 if(seek(f, 0, 0) < 0 || (i = read(f, b, sizeof(b))) < 0){