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