diff options
| author | SkyperTHC | 2026-03-03 06:28:55 +0000 |
|---|---|---|
| committer | SkyperTHC | 2026-03-03 06:28:55 +0000 |
| commit | 5d3573ef7a109ee70416fe94db098fe6a769a798 (patch) | |
| tree | dc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/zylyx/src/common.h | |
| parent | c6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff) | |
packetstorm sync
Diffstat (limited to 'other/zylyx/src/common.h')
| -rw-r--r-- | other/zylyx/src/common.h | 25 |
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 | ||
| 10 | void debugp (char *filename, const char *str, ...); | ||
| 11 | void hexdump (char *filename, unsigned char *data, unsigned int amount); | ||
| 12 | #endif | ||
| 13 | int m_random (int lowmark, int highmark); | ||
| 14 | void set_tv (struct timeval *tv, int seconds); | ||
| 15 | void xstrupper (char *str); | ||
| 16 | void scnprintf (char *os, size_t len, const char *str, ...); | ||
| 17 | unsigned long int t_passed (struct timeval *old); | ||
| 18 | unsigned long int tdiff (struct timeval *old, struct timeval *new); | ||
| 19 | char *ipv4_print (char *dest, struct in_addr in, int padding); | ||
| 20 | void *xrealloc (void *m_ptr, size_t newsize); | ||
| 21 | char *xstrdup (char *str); | ||
| 22 | void *xcalloc (int factor, size_t size); | ||
| 23 | |||
| 24 | #endif | ||
| 25 | |||
