Loading...
--- Libc/Libc-1725.40.4/gen/FreeBSD/vis.3
+++ Libc/Libc-1353.100.2/gen/FreeBSD/vis.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: vis.3,v 1.49 2017/08/05 20:22:29 wiz Exp $
+.\" $NetBSD: vis.3,v 1.39 2013/02/20 20:05:26 christos Exp $
.\" $FreeBSD$
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -30,14 +30,13 @@
.\"
.\" @(#)vis.3 8.1 (Berkeley) 6/9/93
.\"
-.Dd April 22, 2017
+.Dd February 19, 2013
.Dt VIS 3
.Os
.Sh NAME
.Nm vis ,
.Nm nvis ,
.Nm strvis ,
-.Nm stravis ,
.Nm strnvis ,
.Nm strvisx ,
.Nm strnvisx ,
@@ -60,8 +59,6 @@
.Fn nvis "char *dst" "size_t dlen" "int c" "int flag" "int nextc"
.Ft int
.Fn strvis "char *dst" "const char *src" "int flag"
-.Ft int
-.Fn stravis "char **dst" "const char *src" "int flag"
.Ft int
.Fn strnvis "char *dst" "size_t dlen" "const char *src" "int flag"
.Ft int
@@ -115,7 +112,6 @@
.Pp
The
.Fn strvis ,
-.Fn stravis ,
.Fn strnvis ,
.Fn strvisx ,
and
@@ -162,9 +158,6 @@
(not including the trailing
.Dv NUL ) .
The
-.Fn stravis
-function allocates space dynamically to hold the string.
-The
.Dq Nm n
versions of the functions also take an additional argument
.Fa dlen
@@ -243,37 +236,15 @@
The following flags
alter this:
.Bl -tag -width VIS_WHITEX
-.It Dv VIS_DQ
-Also encode double quotes
.It Dv VIS_GLOB
Also encode the magic characters
.Ql ( * ,
.Ql \&? ,
-.Ql \&[ ,
+.Ql \&[
and
.Ql # )
recognized by
.Xr glob 3 .
-.It Dv VIS_SHELL
-Also encode the meta characters used by shells (in addition to the glob
-characters):
-.Ql ( ' ,
-.Ql ` ,
-.Ql \&" ,
-.Ql \&; ,
-.Ql & ,
-.Ql < ,
-.Ql > ,
-.Ql \&( ,
-.Ql \&) ,
-.Ql \&| ,
-.Ql \&] ,
-.Ql \e ,
-.Ql $ ,
-.Ql \&! ,
-.Ql \&^ ,
-and
-.Ql ~ ) .
.It Dv VIS_SP
Also encode space.
.It Dv VIS_TAB
@@ -282,10 +253,11 @@
Also encode newline.
.It Dv VIS_WHITE
Synonym for
-.Dv VIS_SP | VIS_TAB | VIS_NL .
-.It Dv VIS_META
-Synonym for
-.Dv VIS_WHITE | VIS_GLOB | VIS_SHELL .
+.Dv VIS_SP
+\&|
+.Dv VIS_TAB
+\&|
+.Dv VIS_NL .
.It Dv VIS_SAFE
Only encode
.Dq unsafe
@@ -312,7 +284,7 @@
.Dv VIS_NOSLASH
flag below).
.Pp
-There are six forms of encoding.
+There are four forms of encoding.
All forms use the backslash character
.Ql \e
to introduce a special
@@ -375,6 +347,7 @@
.It Dv \e240
Represents Meta-space.
.El
+.Pp
.It Dv VIS_CSTYLE
Use C-style backslash sequences to represent standard non-printable
characters.
@@ -403,9 +376,6 @@
.Fa nextc
is an octal digit, the latter representation is used to
avoid ambiguity.
-.Pp
-Non-printable characters without C-style
-backslash sequences use the default representation.
.It Dv VIS_OCTAL
Use a three digit octal sequence.
The form is
@@ -413,11 +383,6 @@
where
.Em d
represents an octal digit.
-.It Dv VIS_CSTYLE \&| Dv VIS_OCTAL
-Same as
-.Dv VIS_CSTYLE
-except that non-printable characters without C-style
-backslash sequences use a three digit octal sequence.
.It Dv VIS_HTTPSTYLE
Use URI encoding as described in RFC 1738.
The form is
@@ -452,11 +417,6 @@
.Ev LC_CTYPE
environment variable which defines the set of characters
that can be copied without encoding.
-.Pp
-If
-.Dv VIS_NOLOCALE
-is set, processing is done assuming the C locale and overriding
-any other environment settings.
.Pp
When 8-bit data is present in the input,
.Ev LC_CTYPE