1244401Sbrooks/*- 2244401Sbrooks * Copyright (c) 2012 SRI International 3244401Sbrooks * All rights reserved. 4244401Sbrooks * 5244401Sbrooks * This software was developed by SRI International and the University of 6244401Sbrooks * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) 7244401Sbrooks * ("CTSRD"), as part of the DARPA CRASH research programme. 8244401Sbrooks * 9244401Sbrooks * Redistribution and use in source and binary forms, with or without 10244401Sbrooks * modification, are permitted provided that the following conditions 11244401Sbrooks * are met: 12244401Sbrooks * 1. Redistributions of source code must retain the above copyright 13244401Sbrooks * notice, this list of conditions and the following disclaimer. 14244401Sbrooks * 2. Redistributions in binary form must reproduce the above copyright 15244401Sbrooks * notice, this list of conditions and the following disclaimer in the 16244401Sbrooks * documentation and/or other materials provided with the distribution. 17244401Sbrooks * 18244401Sbrooks * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19244401Sbrooks * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20244401Sbrooks * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21244401Sbrooks * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22244401Sbrooks * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23244401Sbrooks * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24244401Sbrooks * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25244401Sbrooks * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26244401Sbrooks * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27244401Sbrooks * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28244401Sbrooks * SUCH DAMAGE. 29244401Sbrooks * 30244401Sbrooks * $FreeBSD$ 31244401Sbrooks */ 32244401Sbrooks 33244401Sbrooks#include <vis.h> 34244401Sbrooks 35244401Sbrooks#define _UNVIS_END 1 36244401Sbrooks 37244401Sbrooksint 38244401Sbrooks__unvis_44bsd(char *cp, int c, int *astate, int flag) 39244401Sbrooks{ 40244401Sbrooks 41244401Sbrooks if (flag & _UNVIS_END) 42244401Sbrooks flag = (flag & ~_UNVIS_END) ^ UNVIS_END; 43244401Sbrooks return unvis(cp, c, astate, flag); 44244401Sbrooks} 45244401Sbrooks 46244401Sbrooks__sym_compat(unvis, __vis_44bsd, FBSD_1.0); 47