287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov/*
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * All rights reserved.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * Copyright (c) 2002 Networks Associates Technology, Inc.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * All rights reserved.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov *
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * Portions of this software were developed for the FreeBSD Project by
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * ThinkSec AS and NAI Labs, the Security Research Division of Network
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * ("CBOSS"), as part of the DARPA CHATS research program.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov *
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * Redistribution and use in source and binary forms, with or without
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * modification, is permitted provided that the following conditions
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * are met:
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * 1. Redistributions of source code must retain the above copyright
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * notice, this list of conditions and the following disclaimer.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * 2. Redistributions in binary form must reproduce the above copyright
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * notice, this list of conditions and the following disclaimer in the
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * documentation and/or other materials provided with the distribution.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * 3. The name of the author may not be used to endorse or promote
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * products derived from this software without specific prior written
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * permission.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov *
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov * SUCH DAMAGE.
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov */
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov/* This file contains extracts from FreeBSD libc and libutil headers */
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#ifndef _COMPAT_H
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#define _COMPAT_H
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#include <stdio.h>
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#define FPARSELN_UNESCESC 0x01
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#define FPARSELN_UNESCCONT 0x02
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#define FPARSELN_UNESCCOMM 0x04
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#define FPARSELN_UNESCREST 0x08
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#define FPARSELN_UNESCALL 0x0f
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalovchar *fparseln(FILE *, size_t *, size_t *, const char[3], int);
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalovchar *fgetln(FILE *, size_t *);
287247a826fa2ab8d01f6c8f276d405eb08420f8Alexander Pyhalov#endif /* _COMPAT_H */