1179163Sjb/*
2179163Sjb * Copyright (C) 2008 John Birrell <jb@freebsd.org>
3179163Sjb * All rights reserved.
4179163Sjb *
5179163Sjb * Redistribution and use in source and binary forms, with or without
6179163Sjb * modification, are permitted provided that the following conditions
7179163Sjb * are met:
8179163Sjb * 1. Redistributions of source code must retain the above copyright
9179163Sjb *    notice, this list of conditions and the following disclaimer.
10179163Sjb * 2. Redistributions in binary form must reproduce the above copyright
11179163Sjb *    notice, this list of conditions and the following disclaimer in the
12179163Sjb *    documentation and/or other materials provided with the distribution.
13179163Sjb *
14179163Sjb * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15179163Sjb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16179163Sjb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17179163Sjb * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
18179163Sjb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19179163Sjb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20179163Sjb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21179163Sjb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22179163Sjb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23179163Sjb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24179163Sjb * SUCH DAMAGE.
25179163Sjb *
26179163Sjb * $FreeBSD$
27179163Sjb *
28179163Sjb */
29179163Sjb
30179163Sjb#ifndef _COMPAT_OPENSOLARIS_LIBPROC_H_
31179163Sjb#define _COMPAT_OPENSOLARIS_LIBPROC_H_
32179163Sjb
33179163Sjb#include <fcntl.h>
34179163Sjb
35179163Sjb#define ps_prochandle	proc_handle
36179163Sjb#define Lmid_t		int
37179163Sjb
38179163Sjb#define PR_RLC		0x0001
39179163Sjb#define PR_KLC		0x0002
40179163Sjb
41179163Sjb#define	PGRAB_RDONLY	O_RDONLY
42179163Sjb#define	PGRAB_FORCE	0
43179163Sjb
44179163Sjb#include_next <libproc.h>
45179163Sjb
46179163Sjb#endif
47