18ccca122SBrooks Davis /*-
2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause
3d915a14eSPedro F. Giffuni *
48ccca122SBrooks Davis * Copyright (c) 2012 SRI International
58ccca122SBrooks Davis * All rights reserved.
68ccca122SBrooks Davis *
78ccca122SBrooks Davis * This software was developed by SRI International and the University of
88ccca122SBrooks Davis * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
98ccca122SBrooks Davis * ("CTSRD"), as part of the DARPA CRASH research programme.
108ccca122SBrooks Davis *
118ccca122SBrooks Davis * Redistribution and use in source and binary forms, with or without
128ccca122SBrooks Davis * modification, are permitted provided that the following conditions
138ccca122SBrooks Davis * are met:
148ccca122SBrooks Davis * 1. Redistributions of source code must retain the above copyright
158ccca122SBrooks Davis * notice, this list of conditions and the following disclaimer.
168ccca122SBrooks Davis * 2. Redistributions in binary form must reproduce the above copyright
178ccca122SBrooks Davis * notice, this list of conditions and the following disclaimer in the
188ccca122SBrooks Davis * documentation and/or other materials provided with the distribution.
198ccca122SBrooks Davis *
208ccca122SBrooks Davis * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
218ccca122SBrooks Davis * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
228ccca122SBrooks Davis * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
238ccca122SBrooks Davis * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
248ccca122SBrooks Davis * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
258ccca122SBrooks Davis * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
268ccca122SBrooks Davis * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
278ccca122SBrooks Davis * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
288ccca122SBrooks Davis * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
298ccca122SBrooks Davis * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
308ccca122SBrooks Davis * SUCH DAMAGE.
318ccca122SBrooks Davis */
328ccca122SBrooks Davis
338ccca122SBrooks Davis #include <vis.h>
348ccca122SBrooks Davis
358ccca122SBrooks Davis #define _UNVIS_END 1
368ccca122SBrooks Davis
3755b6b759SCraig Rodrigues int __unvis_44bsd(char *, int, int *, int);
38e0b54d01SCraig Rodrigues
398ccca122SBrooks Davis int
__unvis_44bsd(char * cp,int c,int * astate,int flag)408ccca122SBrooks Davis __unvis_44bsd(char *cp, int c, int *astate, int flag)
418ccca122SBrooks Davis {
428ccca122SBrooks Davis
438ccca122SBrooks Davis if (flag & _UNVIS_END)
448ccca122SBrooks Davis flag = (flag & ~_UNVIS_END) ^ UNVIS_END;
458ccca122SBrooks Davis return unvis(cp, c, astate, flag);
468ccca122SBrooks Davis }
478ccca122SBrooks Davis
488ccca122SBrooks Davis __sym_compat(unvis, __vis_44bsd, FBSD_1.0);
49