summaryrefslogtreecommitdiff
path: root/openbsd-compat/vis.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/vis.h')
-rw-r--r--openbsd-compat/vis.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsd-compat/vis.h b/openbsd-compat/vis.h
index d1286c99d..2cdfd364b 100644
--- a/openbsd-compat/vis.h
+++ b/openbsd-compat/vis.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: vis.h,v 1.11 2005/08/09 19:38:31 millert Exp $ */ 1/* $OpenBSD: vis.h,v 1.15 2015/07/20 01:52:27 millert Exp $ */
2/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */ 2/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */
3 3
4/*- 4/*-
@@ -58,6 +58,8 @@
58#define VIS_NL 0x10 /* also encode newline */ 58#define VIS_NL 0x10 /* also encode newline */
59#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) 59#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL)
60#define VIS_SAFE 0x20 /* only encode "unsafe" characters */ 60#define VIS_SAFE 0x20 /* only encode "unsafe" characters */
61#define VIS_DQ 0x200 /* backslash-escape double quotes */
62#define VIS_ALL 0x400 /* encode all characters */
61 63
62/* 64/*
63 * other 65 * other
@@ -81,6 +83,7 @@
81 83
82char *vis(char *, int, int, int); 84char *vis(char *, int, int, int);
83int strvis(char *, const char *, int); 85int strvis(char *, const char *, int);
86int stravis(char **, const char *, int);
84int strnvis(char *, const char *, size_t, int) 87int strnvis(char *, const char *, size_t, int)
85 __attribute__ ((__bounded__(__string__,1,3))); 88 __attribute__ ((__bounded__(__string__,1,3)));
86int strvisx(char *, const char *, size_t, int) 89int strvisx(char *, const char *, size_t, int)