rem: if(!thread_flags) thread_flags=TF_show_proc;
context: static void simple_spew(void){  proc_t buf;  PROCTAB* ptp;  ptp = openproc(needs_for_format | needs_for_sort | needs_for_select);  if(!ptp) {    fprintf(stderr, "Error: can not access /proc.\n");    exit(1);  }  if(!thread_flags) thread_flags=TF_show_proc;  memset(&buf, '#', sizeof(proc_t));  while(readproc(ptp,&buf)){    if(want_this_proc(&buf)){      if(thread_flags & TF_show_proc) show_one_proc(&buf, proc_format_list);      if(thread_flags & TF_show_task){        proc_t buf2;        // must still have the process allocated        while(readtask(ptp,&buf,&buf2)) show_one_proc(&buf2, task_format_list);        // must not attempt to free cmdline and environ      }    }    if(buf.cmdline) free((void*)*buf.cmdline); // ought to reuse    if(buf.environ) free((void*)*buf.environ); // ought to reuse//    memset(&buf, '#', sizeof(proc_t));  }  closeproc(ptp);}