ps_buf
ps.ps_buf = malloc(ps.ps_len);
free(ps.ps_buf);
states = (void *)ps.ps_buf;
ps.ps_buf = inbuf = newinbuf;