1296047Soshogbo/*-
2296047Soshogbo * Copyright (c) 2012 The FreeBSD Foundation
3296047Soshogbo * Copyright (c) 2015 Mariusz Zaborski <oshogbo@FreeBSD.org>
4296047Soshogbo * All rights reserved.
5296047Soshogbo *
6296047Soshogbo * This software was developed by Pawel Jakub Dawidek under sponsorship from
7296047Soshogbo * the FreeBSD Foundation.
8296047Soshogbo *
9296047Soshogbo * Redistribution and use in source and binary forms, with or without
10296047Soshogbo * modification, are permitted provided that the following conditions
11296047Soshogbo * are met:
12296047Soshogbo * 1. Redistributions of source code must retain the above copyright
13296047Soshogbo *    notice, this list of conditions and the following disclaimer.
14296047Soshogbo * 2. Redistributions in binary form must reproduce the above copyright
15296047Soshogbo *    notice, this list of conditions and the following disclaimer in the
16296047Soshogbo *    documentation and/or other materials provided with the distribution.
17296047Soshogbo *
18296047Soshogbo * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
19296047Soshogbo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20296047Soshogbo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21296047Soshogbo * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
22296047Soshogbo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23296047Soshogbo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24296047Soshogbo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25296047Soshogbo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26296047Soshogbo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27296047Soshogbo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28296047Soshogbo * SUCH DAMAGE.
29296047Soshogbo *
30296047Soshogbo * $FreeBSD$
31296047Soshogbo */
32296047Soshogbo
33296047Soshogbo#ifndef _ZYGOTE_H_
34296047Soshogbo#define	_ZYGOTE_H_
35296047Soshogbo
36296047Soshogbotypedef void zygote_func_t(int);
37296047Soshogbo
38296047Soshogboint	zygote_init(void);
39296047Soshogboint	zygote_clone(zygote_func_t *func, int *chanfdp, int *procfdp);
40296047Soshogbo
41296047Soshogbo#endif	/* !_ZYGOTE_H_ */
42