projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee5aa7
)
header for bart polot's gauger tool
author
Nathan S. Evans
<evans@in.tum.de>
Thu, 3 Feb 2011 14:41:40 +0000
(14:41 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Thu, 3 Feb 2011 14:41:40 +0000
(14:41 +0000)
src/include/gnunet_gauger.h
[new file with mode: 0644]
patch
|
blob
diff --git a/src/include/gnunet_gauger.h
b/src/include/gnunet_gauger.h
new file mode 100644
(file)
index 0000000..
063bf76
--- /dev/null
+++ b/
src/include/gnunet_gauger.h
@@ -0,0
+1,10
@@
+#ifndef __GAUGER_H__
+#define __GAUGER_H__
+
+#include <unistd.h>
+#include <stdio.h>
+#include <sys/wait.h>
+
+#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