From: phk Date: Mon, 8 Sep 2008 14:22:42 +0000 (+0000) Subject: Add VRT_memmove() to the VRT API. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b049be668a6a18828a93879b1c841b63b16833f8;p=varnish Add VRT_memmove() to the VRT API. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3170 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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");