summaryrefslogtreecommitdiff
path: root/other/zylyx/src/common.h
diff options
context:
space:
mode:
authorSkyperTHC2026-03-03 06:28:55 +0000
committerSkyperTHC2026-03-03 06:28:55 +0000
commit5d3573ef7a109ee70416fe94db098fe6a769a798 (patch)
treedc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/zylyx/src/common.h
parentc6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff)
packetstorm sync
Diffstat (limited to 'other/zylyx/src/common.h')
-rw-r--r--other/zylyx/src/common.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/other/zylyx/src/common.h b/other/zylyx/src/common.h
new file mode 100644
index 0000000..273a83b
--- /dev/null
+++ b/other/zylyx/src/common.h
@@ -0,0 +1,25 @@
1
2#include <sys/time.h>
3#include <netinet/in.h>
4#include <unistd.h>
5
6#ifndef Z_COMMON_H
7#define Z_COMMON_H
8
9#ifdef DEBUG
10void debugp (char *filename, const char *str, ...);
11void hexdump (char *filename, unsigned char *data, unsigned int amount);
12#endif
13int m_random (int lowmark, int highmark);
14void set_tv (struct timeval *tv, int seconds);
15void xstrupper (char *str);
16void scnprintf (char *os, size_t len, const char *str, ...);
17unsigned long int t_passed (struct timeval *old);
18unsigned long int tdiff (struct timeval *old, struct timeval *new);
19char *ipv4_print (char *dest, struct in_addr in, int padding);
20void *xrealloc (void *m_ptr, size_t newsize);
21char *xstrdup (char *str);
22void *xcalloc (int factor, size_t size);
23
24#endif
25