diff lib/lib.h @ 475:1fb149e75ebf

Add killall by Andreas Heck, and factor out common pid code to lib.h.
author Rob Landley <rob@landley.net>
date Sat, 18 Feb 2012 15:12:41 -0600
parents af0cca0aba9d
children 7f292460d268
line wrap: on
line diff
--- a/lib/lib.h	Sat Feb 18 15:08:31 2012 -0600
+++ b/lib/lib.h	Sat Feb 18 15:12:41 2012 -0600
@@ -110,6 +110,8 @@
 void crc_init(unsigned int *crc_table, int little_endian);
 void terminal_size(unsigned *x, unsigned *y);
 int yesno(int def);
+int for_each_pid_with_name_in(char **names,
+		void (*callback) (const char *pid));
 
 
 // getmountlist.c