diff options
| author | oy <Tom_Adams@web.de> | 2011-12-29 23:36:53 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-12-29 23:36:53 +0100 |
| commit | b44ee3d9755ff35a6df1358dcfe85ce681bbe081 (patch) | |
| tree | a168de3012907094d550d22771b103c1f35b9fa8 /src/base/system.h | |
| parent | 72d5ef329b1a0ec07f8fb6c5e23011b7e1a45b61 (diff) | |
| download | zcatch-b44ee3d9755ff35a6df1358dcfe85ce681bbe081.tar.gz zcatch-b44ee3d9755ff35a6df1358dcfe85ce681bbe081.zip | |
reworked ban system
Diffstat (limited to 'src/base/system.h')
| -rw-r--r-- | src/base/system.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/base/system.h b/src/base/system.h index 749668de..5060fcb0 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -240,6 +240,18 @@ unsigned io_skip(IOHANDLE io, int size); unsigned io_write(IOHANDLE io, const void *buffer, unsigned size); /* + Function: io_write_newline + Writes newline to file. + + Parameters: + io - Handle to the file. + + Returns: + Number of bytes written. +*/ +unsigned io_write_newline(IOHANDLE io); + +/* Function: io_seek Seeks to a specified offset in the file. @@ -425,7 +437,7 @@ int64 time_freq(); Returns: The time as a UNIX timestamp */ -unsigned time_timestamp(); +int time_timestamp(); /* Group: Network General */ typedef struct @@ -499,12 +511,13 @@ int net_addr_comp(const NETADDR *a, const NETADDR *b); addr - Address to turn into a string. string - Buffer to fill with the string. max_length - Maximum size of the string. + add_port - add port to string or not Remarks: - The string will always be zero terminated */ -void net_addr_str(const NETADDR *addr, char *string, int max_length); +void net_addr_str(const NETADDR *addr, char *string, int max_length, int add_port); /* Function: net_addr_from_str |