summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_string.h
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2020-08-20 15:44:29 +0100
committerTiago Natel de Moura <t.nateldemoura@f5.com>2020-08-20 15:44:29 +0100
commit4ad8c5b8989d2772a2f68f9386bf31036e39ccdd (patch)
tree01b252fdf653970537cdd07ca939a5e79c5a53f6 /src/nxt_string.h
parenta8a7eeb1fc7aada17d0d8fe8e15d325525986937 (diff)
downloadunit-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.h10
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)