From b049be668a6a18828a93879b1c841b63b16833f8 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 8 Sep 2008 14:22:42 +0000 Subject: [PATCH] Add VRT_memmove() to the VRT API. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3170 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt.c | 7 +++++++ varnish-cache/include/vrt.h | 1 + varnish-cache/lib/libvcl/vcc_fixed_token.c | 1 + 3 files changed, 9 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_vrt.c b/varnish-cache/bin/varnishd/cache_vrt.c index 2235edb2..5dedccff 100644 --- a/varnish-cache/bin/varnishd/cache_vrt.c +++ b/varnish-cache/bin/varnishd/cache_vrt.c @@ -726,3 +726,10 @@ VRT_strcmp(const char *s1, const char *s2) return (strcmp(s1, s2)); } +void +VRT_memmove(void *dst, const void *src, unsigned len) +{ + + (void)memmove(dst, src, len); +} + diff --git a/varnish-cache/include/vrt.h b/varnish-cache/include/vrt.h index 9b356826..e9c8e3db 100644 --- a/varnish-cache/include/vrt.h +++ b/varnish-cache/include/vrt.h @@ -154,6 +154,7 @@ void VRT_handling(struct sess *sp, unsigned hand); /* Simple stuff */ int VRT_strcmp(const char *s1, const char *s2); +void VRT_memmove(void *dst, const void *src, unsigned len); void VRT_ESI(struct sess *sp); void VRT_Rollback(struct sess *sp); diff --git a/varnish-cache/lib/libvcl/vcc_fixed_token.c b/varnish-cache/lib/libvcl/vcc_fixed_token.c index 7a41bdae..0e94580c 100644 --- a/varnish-cache/lib/libvcl/vcc_fixed_token.c +++ b/varnish-cache/lib/libvcl/vcc_fixed_token.c @@ -434,6 +434,7 @@ vcl_output_lang_h(struct vsb *sb) vsb_cat(sb, "\n"); vsb_cat(sb, "/* Simple stuff */\n"); vsb_cat(sb, "int VRT_strcmp(const char *s1, const char *s2);\n"); + vsb_cat(sb, "void VRT_memmove(void *dst, const void *src, unsigned len);\n"); vsb_cat(sb, "\n"); vsb_cat(sb, "void VRT_ESI(struct sess *sp);\n"); vsb_cat(sb, "void VRT_Rollback(struct sess *sp);\n"); -- 2.39.5