filter_fork.h revision 228759
1142425Snectar/*- 2160814Ssimon * Copyright (c) 2007 Joerg Sonnenberger 3142425Snectar * All rights reserved. 4142425Snectar * 5142425Snectar * Redistribution and use in source and binary forms, with or without 6142425Snectar * modification, are permitted provided that the following conditions 7142425Snectar * are met: 8142425Snectar * 1. Redistributions of source code must retain the above copyright 9142425Snectar * notice, this list of conditions and the following disclaimer. 10142425Snectar * 2. Redistributions in binary form must reproduce the above copyright 11142425Snectar * notice, this list of conditions and the following disclaimer in the 12142425Snectar * documentation and/or other materials provided with the distribution. 13142425Snectar * 14142425Snectar * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 15142425Snectar * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16142425Snectar * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17142425Snectar * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18142425Snectar * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19142425Snectar * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20142425Snectar * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21142425Snectar * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22142425Snectar * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23142425Snectar * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24142425Snectar * 25142425Snectar * $FreeBSD: head/lib/libarchive/filter_fork.h 201087 2009-12-28 02:18:26Z kientzle $ 26142425Snectar */ 27142425Snectar 28142425Snectar#ifndef __LIBARCHIVE_BUILD 29142425Snectar#error This header is only to be used internally to libarchive. 30142425Snectar#endif 31142425Snectar 32142425Snectar#ifndef FILTER_FORK_H 33142425Snectar#define FILTER_FORK_H 34142425Snectar 35142425Snectarpid_t 36142425Snectar__archive_create_child(const char *path, int *child_stdin, int *child_stdout); 37142425Snectar 38142425Snectarvoid 39238405Sjkim__archive_check_child(int in, int out); 40142425Snectar 41142425Snectar#endif 42142425Snectar