diff options
author | Tiago Natel de Moura <t.nateldemoura@f5.com> | 2020-08-20 15:44:29 +0100 |
---|---|---|
committer | Tiago Natel de Moura <t.nateldemoura@f5.com> | 2020-08-20 15:44:29 +0100 |
commit | 4ad8c5b8989d2772a2f68f9386bf31036e39ccdd (patch) | |
tree | 01b252fdf653970537cdd07ca939a5e79c5a53f6 /src/nxt_string.h | |
parent | a8a7eeb1fc7aada17d0d8fe8e15d325525986937 (diff) | |
download | unit-4ad8c5b8989d2772a2f68f9386bf31036e39ccdd.tar.gz unit-4ad8c5b8989d2772a2f68f9386bf31036e39ccdd.tar.bz2 |
Isolation: mount tmpfs by default.
Diffstat (limited to 'src/nxt_string.h')
-rw-r--r-- | src/nxt_string.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nxt_string.h b/src/nxt_string.h index 3f9192e2..7e02f59a 100644 --- a/src/nxt_string.h +++ b/src/nxt_string.h @@ -31,6 +31,16 @@ nxt_strlen(s) \ #define \ +nxt_strdup(s) \ + strdup((char *) s) + + +#define \ +nxt_strchr(buf, delim) \ + (u_char *) strchr((char *) buf, delim) + + +#define \ nxt_memzero(buf, length) \ (void) memset(buf, 0, length) |