From 46f0e7ccdfb34f49b0cc1de7d00c1429a00f1ff3 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Wed, 8 Jun 2016 17:35:13 +0000 Subject: Vendor import of NetBSD's (un)vis(3) at 2016-06-08 --- vis.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index b4c6b5e1c6de..501ad182eeb3 100644 --- a/vis.h +++ b/vis.h @@ -1,4 +1,4 @@ -/* $NetBSD: vis.h,v 1.21 2013/02/20 17:01:15 christos Exp $ */ +/* $NetBSD: vis.h,v 1.24 2016/01/14 20:42:14 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -63,6 +63,9 @@ #define VIS_NOESCAPE 0x0400 /* don't decode `\' */ #define _VIS_END 0x0800 /* for unvis */ #define VIS_GLOB 0x1000 /* encode glob(3) magic characters */ +#define VIS_SHELL 0x2000 /* encode shell special characters [not glob] */ +#define VIS_META (VIS_WHITE | VIS_GLOB | VIS_SHELL) +#define VIS_NOLOCALE 0x4000 /* encode using the C locale */ /* * unvis return codes @@ -88,6 +91,7 @@ char *svis(char *, int, int, int, const char *); char *snvis(char *, size_t, int, int, int, const char *); int strvis(char *, const char *, int); +int stravis(char **, const char *, int); int strnvis(char *, size_t, const char *, int); int strsvis(char *, const char *, int, const char *); -- cgit v1.3