summaryrefslogtreecommitdiff
path: root/fdstats.h
diff options
context:
space:
mode:
Diffstat (limited to 'fdstats.h')
-rw-r--r--fdstats.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/fdstats.h b/fdstats.h
new file mode 100644
index 0000000..f01f2ca
--- /dev/null
+++ b/fdstats.h
@@ -0,0 +1,22 @@
+#include <sys/stat.h>
+#include <unistd.h>
+#include <stdio.h>
+#include "config.h"
+
+#ifndef _fdstats_h
+#define _fdstats_h
+
+struct fdstats {
+ unsigned long livesize;
+ unsigned long deadsize;
+ unsigned long unknown;
+ unsigned long dead;
+ unsigned long live;
+ unsigned long sockets;
+ unsigned long inodes;
+ unsigned long pipes;
+};
+
+int fdstats_read(struct fdstats*, char*, struct config*);
+
+#endif

Generated by cgit