mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
490 B
C
24 lines
490 B
C
#ifndef __WIN32_MISC_H__
|
|
#define __WIN32_MISC_H__
|
|
|
|
#define index strchr
|
|
#define rindex strrchr
|
|
|
|
#define strtok_r(s, d, p) strtok(s, d)
|
|
|
|
#define bzero(s, n) memset(s, 0, n)
|
|
|
|
#ifndef O_NOFOLLOW
|
|
#define O_NOFOLLOW 0
|
|
#endif /* O_NOFOLLOW */
|
|
|
|
int setenv(const char *name, const char *value, int overwrite);
|
|
int unsetenv(const char *name);
|
|
|
|
const char* inet_ntop(int af, const void *src, char *dst, uint32_t cnt);
|
|
int inet_pton(int af, const char *src, void *dst);
|
|
|
|
#define geteuid() (0)
|
|
|
|
#endif
|