9 char buf[512], *fld[5];
12 n = await(buf, sizeof buf-1);
16 if(tokenize(buf, fld, nelem(fld)) != nelem(fld)){
17 werrstr("couldn't parse wait message");
21 w = malloc(sizeof(Waitmsg)+l);
24 w->pid = atoi(fld[0]);
25 w->time[0] = atoi(fld[1]);
26 w->time[1] = atoi(fld[2]);
27 w->time[2] = atoi(fld[3]);
28 w->msg = (char*)&w[1];
29 memmove(w->msg, fld[4], l);