From 6ad2820face26ee352e020ddbcc8fb1ed5484bdd Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 3 Feb 2011 14:41:40 +0000 Subject: [PATCH] header for bart polot's gauger tool --- src/include/gnunet_gauger.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/include/gnunet_gauger.h diff --git a/src/include/gnunet_gauger.h b/src/include/gnunet_gauger.h new file mode 100644 index 000000000..063bf763d --- /dev/null +++ b/src/include/gnunet_gauger.h @@ -0,0 +1,10 @@ +#ifndef __GAUGER_H__ +#define __GAUGER_H__ + +#include +#include +#include + +#define GAUGER(counter, value) {char __gauger_s[32];pid_t __gauger_p;if(!(__gauger_p=fork())){if(!fork()){sprintf(__gauger_s,"%d",value);execlp("gauger-cli.py","gauger-cli.py",counter, __gauger_s,(char*)NULL);perror("gauger");_exit(1);}else{_exit(0);}}else{waitpid(__gauger_p,NULL,0);}} + +#endif -- 2.25.1