klpd.h revision 134a1f4e3289b54e0f980e9cf05352e419a60bee
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _SYS_KLPD_H
#define _SYS_KLPD_H
#ifdef _KERNEL
#include <sys/sysmacros.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define KLPDCALL_VERS 1
#define KLPDARG_NOMORE 0 /* End of argument List */
#define KLPDARG_NONE 0 /* No argument */
#ifdef _KERNEL
struct klpd_reg;
struct credklpd;
void klpd_freelist(struct klpd_reg **);
void crklpd_hold(struct credklpd *);
void crklpd_rele(struct credklpd *);
int pfexec_reg(int);
int pfexec_unreg(int);
#endif /* _KERNEL */
typedef struct klpd_head {
} klpd_head_t;
typedef struct klpd_arg {
union {
char __cdata[1];
int __idata;
} kla_data;
} klpd_arg_t;
#define PFEXEC_ARG_VERS 0x1
#define PFEXEC_ARG_SIZE(bufsize) \
typedef struct pfexec_arg {
union {
char __pfa_path[1];
} pfa_data;
} pfexec_arg_t;
typedef struct pfexec_reply {
#define PFEXEC_REPLY_IPRIV(pfr) \
: (priv_set_t *)0)
#define PFEXEC_REPLY_LPRIV(pfr) \
: (priv_set_t *)0)
#ifdef __cplusplus
}
#endif
#endif /* _SYS_KLPD_H */