--- zfuncs.h.orig	2026-07-04 06:37:19 UTC
+++ zfuncs.h
@@ -17,13 +17,15 @@
 
 *********************************************************************************/
 
-#include <sys/sysinfo.h>
+#include <sys/param.h>
+#include <sys/sysctl.h>
 #include <sys/time.h>
 #include <sys/stat.h>
 #include <sys/resource.h>
 #include <sys/file.h>
 #include <sys/utsname.h>
-#include <malloc.h>
+#include <sys/wait.h>
+#include <vm/vm_param.h>
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
@@ -129,6 +131,8 @@ pthread_t start_Jthread(void * threadfunc(void *), voi
 int  wait_Jthread(pthread_t tid);                                                      //  wait for completion (join thread)
 void synch_threads(int NT = 0);                                                        //  synchronize NT threads
 int  main_thread();                                                                    //  return 1 if main() thread, else 0
+int  get_nprocs();
+int  get_prog_path(char *, size_t);
 int  zshell(ch *options, ch *command, ...);                                            //  do shell command and get status
 int  kill_procname(ch *wildname);                                                      //  kill processes matching wilcard name
 int  signalProc(ch *pname, ch *signal);                                                //  send signal to process by process name
