From 4ad8c5b8989d2772a2f68f9386bf31036e39ccdd Mon Sep 17 00:00:00 2001 From: Tiago Natel de Moura Date: Thu, 20 Aug 2020 15:44:29 +0100 Subject: Isolation: mount tmpfs by default. --- src/nxt_string.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/nxt_string.h') 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 @@ -30,6 +30,16 @@ nxt_strlen(s) \ strlen((char *) 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) -- cgit