#ifndef	_process_user_
#define	_process_user_

/* Module process */

#include <mach/kern_return.h>
#include <mach/port.h>
#include <mach/message.h>

#include <mach/std_types.h>
#include <mach/mach_types.h>
#include <device/device_types.h>
#include <device/net_status.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/resource.h>
#include <sys/utsname.h>
#include <hurd/hurd_types.h>
#include <fcntl.h>

/* Routine proc_getprivports */
#define MIG_RPC_HAVE___PROC_GETPRIVPORTS
#define MIG_RPC_REQUEST_ID___PROC_GETPRIVPORTS 24004
#define MIG_RPC_REPLY_ID___PROC_GETPRIVPORTS 24104
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getprivports
(
	process_t process,
	mach_port_t *host_priv,
	mach_port_t *device_master
);

/* Routine proc_getallpids */
#define MIG_RPC_HAVE___PROC_GETALLPIDS
#define MIG_RPC_REQUEST_ID___PROC_GETALLPIDS 24005
#define MIG_RPC_REPLY_ID___PROC_GETALLPIDS 24105
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getallpids
(
	process_t process,
	pidarray_t *pidarray,
	mach_msg_type_number_t *pidarrayCnt
);

/* Routine proc_setexecdata */
#define MIG_RPC_HAVE___PROC_SETEXECDATA
#define MIG_RPC_REQUEST_ID___PROC_SETEXECDATA 24006
#define MIG_RPC_REPLY_ID___PROC_SETEXECDATA 24106
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_setexecdata
(
	process_t process,
	const_portarray_t ports,
	mach_msg_type_name_t portsPoly,
	mach_msg_type_number_t portsCnt,
	const_intarray_t ints,
	mach_msg_type_number_t intsCnt
);

/* Routine proc_getexecdata */
#define MIG_RPC_HAVE___PROC_GETEXECDATA
#define MIG_RPC_REQUEST_ID___PROC_GETEXECDATA 24007
#define MIG_RPC_REPLY_ID___PROC_GETEXECDATA 24107
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getexecdata
(
	process_t process,
	portarray_t *ports,
	mach_msg_type_number_t *portsCnt,
	intarray_t *ints,
	mach_msg_type_number_t *intsCnt
);

/* Routine proc_execdata_notify */
#define MIG_RPC_HAVE___PROC_EXECDATA_NOTIFY
#define MIG_RPC_REQUEST_ID___PROC_EXECDATA_NOTIFY 24008
#define MIG_RPC_REPLY_ID___PROC_EXECDATA_NOTIFY 24108
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_execdata_notify
(
	process_t process,
	mach_port_t notify,
	mach_msg_type_name_t notifyPoly
);

/* Routine proc_uname */
#define MIG_RPC_HAVE___PROC_UNAME
#define MIG_RPC_REQUEST_ID___PROC_UNAME 24009
#define MIG_RPC_REPLY_ID___PROC_UNAME 24109
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_uname
(
	process_t process,
	utsname_t *uname
);

/* Routine proc_register_version */
#define MIG_RPC_HAVE___PROC_REGISTER_VERSION
#define MIG_RPC_REQUEST_ID___PROC_REGISTER_VERSION 24010
#define MIG_RPC_REPLY_ID___PROC_REGISTER_VERSION 24110
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_register_version
(
	process_t process,
	mach_port_t credential,
	const_string_t name,
	const_string_t release,
	const_string_t version
);

/* SimpleRoutine proc_reauthenticate */
#define MIG_RPC_HAVE___PROC_REAUTHENTICATE
#define MIG_RPC_REQUEST_ID___PROC_REAUTHENTICATE 24011
#define MIG_RPC_REPLY_ID___PROC_REAUTHENTICATE 24111
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_reauthenticate
(
	process_t process,
	mach_port_t rendezvous,
	mach_msg_type_name_t rendezvousPoly
);

/* Routine proc_child */
#define MIG_RPC_HAVE___PROC_CHILD
#define MIG_RPC_REQUEST_ID___PROC_CHILD 24012
#define MIG_RPC_REPLY_ID___PROC_CHILD 24112
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_child
(
	process_t process,
	mach_port_t child
);

/* Routine proc_setmsgport */
#define MIG_RPC_HAVE___PROC_SETMSGPORT
#define MIG_RPC_REQUEST_ID___PROC_SETMSGPORT 24013
#define MIG_RPC_REPLY_ID___PROC_SETMSGPORT 24113
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_setmsgport
(
	process_t process,
	mach_port_t newmsgport,
	mach_port_t *oldmsgport
);

/* Routine proc_reassign */
#define MIG_RPC_HAVE___PROC_REASSIGN
#define MIG_RPC_REQUEST_ID___PROC_REASSIGN 24014
#define MIG_RPC_REPLY_ID___PROC_REASSIGN 24114
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_reassign
(
	process_t process,
	mach_port_t newtask
);

/* Routine proc_setowner */
#define MIG_RPC_HAVE___PROC_SETOWNER
#define MIG_RPC_REQUEST_ID___PROC_SETOWNER 24015
#define MIG_RPC_REPLY_ID___PROC_SETOWNER 24115
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_setowner
(
	process_t process,
	uid_t owner,
	int clear
);

/* Routine proc_getpids */
#define MIG_RPC_HAVE___PROC_GETPIDS
#define MIG_RPC_REQUEST_ID___PROC_GETPIDS 24016
#define MIG_RPC_REPLY_ID___PROC_GETPIDS 24116
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getpids
(
	process_t process,
	pid_t *pid,
	pid_t *ppid,
	int *orphaned
);

/* Routine proc_set_arg_locations */
#define MIG_RPC_HAVE___PROC_SET_ARG_LOCATIONS
#define MIG_RPC_REQUEST_ID___PROC_SET_ARG_LOCATIONS 24017
#define MIG_RPC_REPLY_ID___PROC_SET_ARG_LOCATIONS 24117
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_set_arg_locations
(
	process_t process,
	vm_address_t argv,
	vm_address_t envp
);

/* Routine proc_get_arg_locations */
#define MIG_RPC_HAVE___PROC_GET_ARG_LOCATIONS
#define MIG_RPC_REQUEST_ID___PROC_GET_ARG_LOCATIONS 24018
#define MIG_RPC_REPLY_ID___PROC_GET_ARG_LOCATIONS 24118
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_get_arg_locations
(
	process_t process,
	vm_address_t *argv,
	vm_address_t *envp
);

/* Routine proc_getmsgport */
#define MIG_RPC_HAVE___PROC_GETMSGPORT
#define MIG_RPC_REQUEST_ID___PROC_GETMSGPORT 24019
#define MIG_RPC_REPLY_ID___PROC_GETMSGPORT 24119
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getmsgport
(
	process_t process,
	pid_t pid,
	mach_port_t *msgport
);

/* Routine proc_wait */
#define MIG_RPC_HAVE___PROC_WAIT
#define MIG_RPC_REQUEST_ID___PROC_WAIT 24020
#define MIG_RPC_REPLY_ID___PROC_WAIT 24120
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_wait
(
	process_t process,
	pid_t pid,
	int options,
	int *status,
	int *sigcode,
	rusage_t *rusage,
	pid_t *pid_status
);

/* Routine proc_dostop */
#define MIG_RPC_HAVE___PROC_DOSTOP
#define MIG_RPC_REQUEST_ID___PROC_DOSTOP 24021
#define MIG_RPC_REPLY_ID___PROC_DOSTOP 24121
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_dostop
(
	process_t process,
	mach_port_t contthread
);

/* Routine proc_handle_exceptions */
#define MIG_RPC_HAVE___PROC_HANDLE_EXCEPTIONS
#define MIG_RPC_REQUEST_ID___PROC_HANDLE_EXCEPTIONS 24022
#define MIG_RPC_REPLY_ID___PROC_HANDLE_EXCEPTIONS 24122
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_handle_exceptions
(
	process_t process,
	mach_port_t msgport,
	mach_port_t forwardport,
	mach_msg_type_name_t forwardportPoly,
	int flavor,
	const thread_state_t new_state,
	mach_msg_type_number_t new_stateCnt
);

/* Routine proc_mark_stop */
#define MIG_RPC_HAVE___PROC_MARK_STOP
#define MIG_RPC_REQUEST_ID___PROC_MARK_STOP 24023
#define MIG_RPC_REPLY_ID___PROC_MARK_STOP 24123
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mark_stop
(
	process_t process,
	int signo,
	int sigcode
);

/* Routine proc_mark_cont */
#define MIG_RPC_HAVE___PROC_MARK_CONT
#define MIG_RPC_REQUEST_ID___PROC_MARK_CONT 24024
#define MIG_RPC_REPLY_ID___PROC_MARK_CONT 24124
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mark_cont
(
	process_t process
);

/* Routine proc_mark_exit */
#define MIG_RPC_HAVE___PROC_MARK_EXIT
#define MIG_RPC_REQUEST_ID___PROC_MARK_EXIT 24025
#define MIG_RPC_REPLY_ID___PROC_MARK_EXIT 24125
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mark_exit
(
	process_t process,
	int status,
	int sigcode
);

/* Routine proc_mark_exec */
#define MIG_RPC_HAVE___PROC_MARK_EXEC
#define MIG_RPC_REQUEST_ID___PROC_MARK_EXEC 24026
#define MIG_RPC_REPLY_ID___PROC_MARK_EXEC 24126
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mark_exec
(
	process_t process
);

/* Routine proc_mark_traced */
#define MIG_RPC_HAVE___PROC_MARK_TRACED
#define MIG_RPC_REQUEST_ID___PROC_MARK_TRACED 24027
#define MIG_RPC_REPLY_ID___PROC_MARK_TRACED 24127
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mark_traced
(
	process_t process
);

/* Routine proc_mod_stopchild */
#define MIG_RPC_HAVE___PROC_MOD_STOPCHILD
#define MIG_RPC_REQUEST_ID___PROC_MOD_STOPCHILD 24028
#define MIG_RPC_REPLY_ID___PROC_MOD_STOPCHILD 24128
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mod_stopchild
(
	process_t process,
	int doit
);

/* Routine proc_pid2task */
#define MIG_RPC_HAVE___PROC_PID2TASK
#define MIG_RPC_REQUEST_ID___PROC_PID2TASK 24029
#define MIG_RPC_REPLY_ID___PROC_PID2TASK 24129
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_pid2task
(
	process_t process,
	pid_t pid,
	mach_port_t *task
);

/* Routine proc_task2pid */
#define MIG_RPC_HAVE___PROC_TASK2PID
#define MIG_RPC_REQUEST_ID___PROC_TASK2PID 24030
#define MIG_RPC_REPLY_ID___PROC_TASK2PID 24130
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_task2pid
(
	process_t process,
	mach_port_t task,
	pid_t *pid
);

/* Routine proc_task2proc */
#define MIG_RPC_HAVE___PROC_TASK2PROC
#define MIG_RPC_REQUEST_ID___PROC_TASK2PROC 24031
#define MIG_RPC_REPLY_ID___PROC_TASK2PROC 24131
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_task2proc
(
	process_t process,
	mach_port_t task,
	mach_port_t *proc
);

/* Routine proc_proc2task */
#define MIG_RPC_HAVE___PROC_PROC2TASK
#define MIG_RPC_REQUEST_ID___PROC_PROC2TASK 24032
#define MIG_RPC_REPLY_ID___PROC_PROC2TASK 24132
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_proc2task
(
	process_t process,
	mach_port_t *task
);

/* Routine proc_pid2proc */
#define MIG_RPC_HAVE___PROC_PID2PROC
#define MIG_RPC_REQUEST_ID___PROC_PID2PROC 24033
#define MIG_RPC_REPLY_ID___PROC_PID2PROC 24133
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_pid2proc
(
	process_t process,
	pid_t pid,
	mach_port_t *proc
);

/* Routine proc_getprocinfo */
#define MIG_RPC_HAVE___PROC_GETPROCINFO
#define MIG_RPC_REQUEST_ID___PROC_GETPROCINFO 24034
#define MIG_RPC_REPLY_ID___PROC_GETPROCINFO 24134
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getprocinfo
(
	process_t process,
	pid_t which,
	int *flags,
	procinfo_t *procinfo,
	mach_msg_type_number_t *procinfoCnt,
	data_t *threadwaits,
	mach_msg_type_number_t *threadwaitsCnt
);

/* Routine proc_getprocargs */
#define MIG_RPC_HAVE___PROC_GETPROCARGS
#define MIG_RPC_REQUEST_ID___PROC_GETPROCARGS 24035
#define MIG_RPC_REPLY_ID___PROC_GETPROCARGS 24135
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getprocargs
(
	process_t process,
	pid_t which,
	data_t *procargs,
	mach_msg_type_number_t *procargsCnt
);

/* Routine proc_getprocenv */
#define MIG_RPC_HAVE___PROC_GETPROCENV
#define MIG_RPC_REQUEST_ID___PROC_GETPROCENV 24036
#define MIG_RPC_REPLY_ID___PROC_GETPROCENV 24136
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getprocenv
(
	process_t process,
	pid_t which,
	data_t *procenv,
	mach_msg_type_number_t *procenvCnt
);

/* Routine proc_make_login_coll */
#define MIG_RPC_HAVE___PROC_MAKE_LOGIN_COLL
#define MIG_RPC_REQUEST_ID___PROC_MAKE_LOGIN_COLL 24037
#define MIG_RPC_REPLY_ID___PROC_MAKE_LOGIN_COLL 24137
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_make_login_coll
(
	process_t process
);

/* Routine proc_getloginid */
#define MIG_RPC_HAVE___PROC_GETLOGINID
#define MIG_RPC_REQUEST_ID___PROC_GETLOGINID 24038
#define MIG_RPC_REPLY_ID___PROC_GETLOGINID 24138
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getloginid
(
	process_t process,
	pid_t pid,
	pid_t *login_id
);

/* Routine proc_getloginpids */
#define MIG_RPC_HAVE___PROC_GETLOGINPIDS
#define MIG_RPC_REQUEST_ID___PROC_GETLOGINPIDS 24039
#define MIG_RPC_REPLY_ID___PROC_GETLOGINPIDS 24139
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getloginpids
(
	process_t process,
	pid_t id,
	pidarray_t *pids,
	mach_msg_type_number_t *pidsCnt
);

/* Routine proc_setlogin */
#define MIG_RPC_HAVE___PROC_SETLOGIN
#define MIG_RPC_REQUEST_ID___PROC_SETLOGIN 24040
#define MIG_RPC_REPLY_ID___PROC_SETLOGIN 24140
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_setlogin
(
	process_t process,
	const_string_t logname
);

/* Routine proc_getlogin */
#define MIG_RPC_HAVE___PROC_GETLOGIN
#define MIG_RPC_REQUEST_ID___PROC_GETLOGIN 24041
#define MIG_RPC_REPLY_ID___PROC_GETLOGIN 24141
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getlogin
(
	process_t process,
	string_t logname
);

/* Routine proc_setsid */
#define MIG_RPC_HAVE___PROC_SETSID
#define MIG_RPC_REQUEST_ID___PROC_SETSID 24042
#define MIG_RPC_REPLY_ID___PROC_SETSID 24142
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_setsid
(
	process_t process
);

/* Routine proc_getsid */
#define MIG_RPC_HAVE___PROC_GETSID
#define MIG_RPC_REQUEST_ID___PROC_GETSID 24043
#define MIG_RPC_REPLY_ID___PROC_GETSID 24143
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getsid
(
	process_t process,
	pid_t pid,
	pid_t *sid
);

/* Routine proc_getsessionpgids */
#define MIG_RPC_HAVE___PROC_GETSESSIONPGIDS
#define MIG_RPC_REQUEST_ID___PROC_GETSESSIONPGIDS 24044
#define MIG_RPC_REPLY_ID___PROC_GETSESSIONPGIDS 24144
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getsessionpgids
(
	process_t process,
	pid_t sid,
	pidarray_t *pgidset,
	mach_msg_type_number_t *pgidsetCnt
);

/* Routine proc_getsessionpids */
#define MIG_RPC_HAVE___PROC_GETSESSIONPIDS
#define MIG_RPC_REQUEST_ID___PROC_GETSESSIONPIDS 24045
#define MIG_RPC_REPLY_ID___PROC_GETSESSIONPIDS 24145
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getsessionpids
(
	process_t process,
	pid_t sid,
	pidarray_t *pidset,
	mach_msg_type_number_t *pidsetCnt
);

/* Routine proc_getsidport */
#define MIG_RPC_HAVE___PROC_GETSIDPORT
#define MIG_RPC_REQUEST_ID___PROC_GETSIDPORT 24046
#define MIG_RPC_REPLY_ID___PROC_GETSIDPORT 24146
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getsidport
(
	process_t process,
	mach_port_t *sessport
);

/* Routine proc_setpgrp */
#define MIG_RPC_HAVE___PROC_SETPGRP
#define MIG_RPC_REQUEST_ID___PROC_SETPGRP 24047
#define MIG_RPC_REPLY_ID___PROC_SETPGRP 24147
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_setpgrp
(
	process_t process,
	pid_t pid,
	pid_t pgrp
);

/* Routine proc_getpgrp */
#define MIG_RPC_HAVE___PROC_GETPGRP
#define MIG_RPC_REQUEST_ID___PROC_GETPGRP 24048
#define MIG_RPC_REPLY_ID___PROC_GETPGRP 24148
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getpgrp
(
	process_t process,
	pid_t pid,
	pid_t *pgrp
);

/* Routine proc_getpgrppids */
#define MIG_RPC_HAVE___PROC_GETPGRPPIDS
#define MIG_RPC_REQUEST_ID___PROC_GETPGRPPIDS 24049
#define MIG_RPC_REPLY_ID___PROC_GETPGRPPIDS 24149
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getpgrppids
(
	process_t process,
	pid_t pgrp,
	pidarray_t *pidset,
	mach_msg_type_number_t *pidsetCnt
);

/* Routine proc_get_tty */
#define MIG_RPC_HAVE___PROC_GET_TTY
#define MIG_RPC_REQUEST_ID___PROC_GET_TTY 24050
#define MIG_RPC_REPLY_ID___PROC_GET_TTY 24150
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_get_tty
(
	process_t calling_process,
	pid_t target_process,
	mach_port_t *tty
);

/* Routine proc_getnports */
#define MIG_RPC_HAVE___PROC_GETNPORTS
#define MIG_RPC_REQUEST_ID___PROC_GETNPORTS 24051
#define MIG_RPC_REPLY_ID___PROC_GETNPORTS 24151
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getnports
(
	process_t process,
	pid_t which,
	mach_msg_type_number_t *nports
);

/* Routine proc_set_init_task */
#define MIG_RPC_HAVE___PROC_SET_INIT_TASK
#define MIG_RPC_REQUEST_ID___PROC_SET_INIT_TASK 24052
#define MIG_RPC_REPLY_ID___PROC_SET_INIT_TASK 24152
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_set_init_task
(
	process_t process,
	mach_port_t task
);

/* Routine proc_mark_important */
#define MIG_RPC_HAVE___PROC_MARK_IMPORTANT
#define MIG_RPC_REQUEST_ID___PROC_MARK_IMPORTANT 24053
#define MIG_RPC_REPLY_ID___PROC_MARK_IMPORTANT 24153
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_mark_important
(
	process_t process
);

/* Routine proc_is_important */
#define MIG_RPC_HAVE___PROC_IS_IMPORTANT
#define MIG_RPC_REQUEST_ID___PROC_IS_IMPORTANT 24054
#define MIG_RPC_REPLY_ID___PROC_IS_IMPORTANT 24154
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_is_important
(
	process_t process,
	boolean_t *essential
);

/* Routine proc_set_code */
#define MIG_RPC_HAVE___PROC_SET_CODE
#define MIG_RPC_REQUEST_ID___PROC_SET_CODE 24055
#define MIG_RPC_REPLY_ID___PROC_SET_CODE 24155
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_set_code
(
	process_t process,
	vm_address_t start_code,
	vm_address_t end_code
);

/* Routine proc_get_code */
#define MIG_RPC_HAVE___PROC_GET_CODE
#define MIG_RPC_REQUEST_ID___PROC_GET_CODE 24056
#define MIG_RPC_REPLY_ID___PROC_GET_CODE 24156
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_get_code
(
	process_t process,
	vm_address_t *start_code,
	vm_address_t *end_code
);

/* Routine proc_make_task_namespace */
#define MIG_RPC_HAVE___PROC_MAKE_TASK_NAMESPACE
#define MIG_RPC_REQUEST_ID___PROC_MAKE_TASK_NAMESPACE 24057
#define MIG_RPC_REPLY_ID___PROC_MAKE_TASK_NAMESPACE 24157
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_make_task_namespace
(
	process_t process,
	mach_port_t notify,
	mach_msg_type_name_t notifyPoly
);

/* Routine proc_set_exe */
#define MIG_RPC_HAVE___PROC_SET_EXE
#define MIG_RPC_REQUEST_ID___PROC_SET_EXE 24058
#define MIG_RPC_REPLY_ID___PROC_SET_EXE 24158
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_set_exe
(
	process_t process,
	const_string_t path
);

/* Routine proc_get_exe */
#define MIG_RPC_HAVE___PROC_GET_EXE
#define MIG_RPC_REQUEST_ID___PROC_GET_EXE 24059
#define MIG_RPC_REPLY_ID___PROC_GET_EXE 24159
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_get_exe
(
	process_t process,
	pid_t which,
	string_t path
);

/* Routine proc_set_entry */
#define MIG_RPC_HAVE___PROC_SET_ENTRY
#define MIG_RPC_REQUEST_ID___PROC_SET_ENTRY 24060
#define MIG_RPC_REPLY_ID___PROC_SET_ENTRY 24160
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_set_entry
(
	process_t process,
	vm_address_t entry
);

/* Routine proc_get_entry */
#define MIG_RPC_HAVE___PROC_GET_ENTRY
#define MIG_RPC_REQUEST_ID___PROC_GET_ENTRY 24061
#define MIG_RPC_REPLY_ID___PROC_GET_ENTRY 24161
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_get_entry
(
	process_t process,
	vm_address_t *entry
);

/* Routine proc_waitid */
#define MIG_RPC_HAVE___PROC_WAITID
#define MIG_RPC_REQUEST_ID___PROC_WAITID 24062
#define MIG_RPC_REPLY_ID___PROC_WAITID 24162
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_waitid
(
	process_t process,
	pid_t pid,
	int options,
	int *status,
	int *sigcode,
	rusage_t *rusage,
	pid_t *pid_status
);

/* SimpleRoutine proc_reauthenticate_reassign */
#define MIG_RPC_HAVE___PROC_REAUTHENTICATE_REASSIGN
#define MIG_RPC_REQUEST_ID___PROC_REAUTHENTICATE_REASSIGN 24063
#define MIG_RPC_REPLY_ID___PROC_REAUTHENTICATE_REASSIGN 24163
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_reauthenticate_reassign
(
	process_t old_process,
	mach_port_t rendezvous,
	mach_msg_type_name_t rendezvousPoly,
	mach_port_t new_task
);

/* SimpleRoutine proc_reauthenticate_complete */
#define MIG_RPC_HAVE___PROC_REAUTHENTICATE_COMPLETE
#define MIG_RPC_REQUEST_ID___PROC_REAUTHENTICATE_COMPLETE 24064
#define MIG_RPC_REPLY_ID___PROC_REAUTHENTICATE_COMPLETE 24164
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_reauthenticate_complete
(
	process_t process
);

/* Routine proc_getchildren_rusage */
#define MIG_RPC_HAVE___PROC_GETCHILDREN_RUSAGE
#define MIG_RPC_REQUEST_ID___PROC_GETCHILDREN_RUSAGE 24065
#define MIG_RPC_REPLY_ID___PROC_GETCHILDREN_RUSAGE 24165
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __proc_getchildren_rusage
(
	process_t process,
	rusage_t *children_rusage
);


/* Module process */

#include <mach/kern_return.h>
#include <mach/port.h>
#include <mach/message.h>

#include <mach/std_types.h>
#include <mach/mach_types.h>
#include <device/device_types.h>
#include <device/net_status.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/resource.h>
#include <sys/utsname.h>
#include <hurd/hurd_types.h>
#include <fcntl.h>

/* Routine proc_getprivports */
#define MIG_RPC_HAVE_PROC_GETPRIVPORTS
#define MIG_RPC_REQUEST_ID_PROC_GETPRIVPORTS 24004
#define MIG_RPC_REPLY_ID_PROC_GETPRIVPORTS 24104
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getprivports
(
	process_t process,
	mach_port_t *host_priv,
	mach_port_t *device_master
);

/* Routine proc_getallpids */
#define MIG_RPC_HAVE_PROC_GETALLPIDS
#define MIG_RPC_REQUEST_ID_PROC_GETALLPIDS 24005
#define MIG_RPC_REPLY_ID_PROC_GETALLPIDS 24105
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getallpids
(
	process_t process,
	pidarray_t *pidarray,
	mach_msg_type_number_t *pidarrayCnt
);

/* Routine proc_setexecdata */
#define MIG_RPC_HAVE_PROC_SETEXECDATA
#define MIG_RPC_REQUEST_ID_PROC_SETEXECDATA 24006
#define MIG_RPC_REPLY_ID_PROC_SETEXECDATA 24106
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_setexecdata
(
	process_t process,
	const_portarray_t ports,
	mach_msg_type_name_t portsPoly,
	mach_msg_type_number_t portsCnt,
	const_intarray_t ints,
	mach_msg_type_number_t intsCnt
);

/* Routine proc_getexecdata */
#define MIG_RPC_HAVE_PROC_GETEXECDATA
#define MIG_RPC_REQUEST_ID_PROC_GETEXECDATA 24007
#define MIG_RPC_REPLY_ID_PROC_GETEXECDATA 24107
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getexecdata
(
	process_t process,
	portarray_t *ports,
	mach_msg_type_number_t *portsCnt,
	intarray_t *ints,
	mach_msg_type_number_t *intsCnt
);

/* Routine proc_execdata_notify */
#define MIG_RPC_HAVE_PROC_EXECDATA_NOTIFY
#define MIG_RPC_REQUEST_ID_PROC_EXECDATA_NOTIFY 24008
#define MIG_RPC_REPLY_ID_PROC_EXECDATA_NOTIFY 24108
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_execdata_notify
(
	process_t process,
	mach_port_t notify,
	mach_msg_type_name_t notifyPoly
);

/* Routine proc_uname */
#define MIG_RPC_HAVE_PROC_UNAME
#define MIG_RPC_REQUEST_ID_PROC_UNAME 24009
#define MIG_RPC_REPLY_ID_PROC_UNAME 24109
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_uname
(
	process_t process,
	utsname_t *uname
);

/* Routine proc_register_version */
#define MIG_RPC_HAVE_PROC_REGISTER_VERSION
#define MIG_RPC_REQUEST_ID_PROC_REGISTER_VERSION 24010
#define MIG_RPC_REPLY_ID_PROC_REGISTER_VERSION 24110
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_register_version
(
	process_t process,
	mach_port_t credential,
	const_string_t name,
	const_string_t release,
	const_string_t version
);

/* SimpleRoutine proc_reauthenticate */
#define MIG_RPC_HAVE_PROC_REAUTHENTICATE
#define MIG_RPC_REQUEST_ID_PROC_REAUTHENTICATE 24011
#define MIG_RPC_REPLY_ID_PROC_REAUTHENTICATE 24111
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_reauthenticate
(
	process_t process,
	mach_port_t rendezvous,
	mach_msg_type_name_t rendezvousPoly
);

/* Routine proc_child */
#define MIG_RPC_HAVE_PROC_CHILD
#define MIG_RPC_REQUEST_ID_PROC_CHILD 24012
#define MIG_RPC_REPLY_ID_PROC_CHILD 24112
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_child
(
	process_t process,
	mach_port_t child
);

/* Routine proc_setmsgport */
#define MIG_RPC_HAVE_PROC_SETMSGPORT
#define MIG_RPC_REQUEST_ID_PROC_SETMSGPORT 24013
#define MIG_RPC_REPLY_ID_PROC_SETMSGPORT 24113
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_setmsgport
(
	process_t process,
	mach_port_t newmsgport,
	mach_port_t *oldmsgport
);

/* Routine proc_reassign */
#define MIG_RPC_HAVE_PROC_REASSIGN
#define MIG_RPC_REQUEST_ID_PROC_REASSIGN 24014
#define MIG_RPC_REPLY_ID_PROC_REASSIGN 24114
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_reassign
(
	process_t process,
	mach_port_t newtask
);

/* Routine proc_setowner */
#define MIG_RPC_HAVE_PROC_SETOWNER
#define MIG_RPC_REQUEST_ID_PROC_SETOWNER 24015
#define MIG_RPC_REPLY_ID_PROC_SETOWNER 24115
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_setowner
(
	process_t process,
	uid_t owner,
	int clear
);

/* Routine proc_getpids */
#define MIG_RPC_HAVE_PROC_GETPIDS
#define MIG_RPC_REQUEST_ID_PROC_GETPIDS 24016
#define MIG_RPC_REPLY_ID_PROC_GETPIDS 24116
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getpids
(
	process_t process,
	pid_t *pid,
	pid_t *ppid,
	int *orphaned
);

/* Routine proc_set_arg_locations */
#define MIG_RPC_HAVE_PROC_SET_ARG_LOCATIONS
#define MIG_RPC_REQUEST_ID_PROC_SET_ARG_LOCATIONS 24017
#define MIG_RPC_REPLY_ID_PROC_SET_ARG_LOCATIONS 24117
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_set_arg_locations
(
	process_t process,
	vm_address_t argv,
	vm_address_t envp
);

/* Routine proc_get_arg_locations */
#define MIG_RPC_HAVE_PROC_GET_ARG_LOCATIONS
#define MIG_RPC_REQUEST_ID_PROC_GET_ARG_LOCATIONS 24018
#define MIG_RPC_REPLY_ID_PROC_GET_ARG_LOCATIONS 24118
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_get_arg_locations
(
	process_t process,
	vm_address_t *argv,
	vm_address_t *envp
);

/* Routine proc_getmsgport */
#define MIG_RPC_HAVE_PROC_GETMSGPORT
#define MIG_RPC_REQUEST_ID_PROC_GETMSGPORT 24019
#define MIG_RPC_REPLY_ID_PROC_GETMSGPORT 24119
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getmsgport
(
	process_t process,
	pid_t pid,
	mach_port_t *msgport
);

/* Routine proc_wait */
#define MIG_RPC_HAVE_PROC_WAIT
#define MIG_RPC_REQUEST_ID_PROC_WAIT 24020
#define MIG_RPC_REPLY_ID_PROC_WAIT 24120
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_wait
(
	process_t process,
	pid_t pid,
	int options,
	int *status,
	int *sigcode,
	rusage_t *rusage,
	pid_t *pid_status
);

/* Routine proc_dostop */
#define MIG_RPC_HAVE_PROC_DOSTOP
#define MIG_RPC_REQUEST_ID_PROC_DOSTOP 24021
#define MIG_RPC_REPLY_ID_PROC_DOSTOP 24121
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_dostop
(
	process_t process,
	mach_port_t contthread
);

/* Routine proc_handle_exceptions */
#define MIG_RPC_HAVE_PROC_HANDLE_EXCEPTIONS
#define MIG_RPC_REQUEST_ID_PROC_HANDLE_EXCEPTIONS 24022
#define MIG_RPC_REPLY_ID_PROC_HANDLE_EXCEPTIONS 24122
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_handle_exceptions
(
	process_t process,
	mach_port_t msgport,
	mach_port_t forwardport,
	mach_msg_type_name_t forwardportPoly,
	int flavor,
	const thread_state_t new_state,
	mach_msg_type_number_t new_stateCnt
);

/* Routine proc_mark_stop */
#define MIG_RPC_HAVE_PROC_MARK_STOP
#define MIG_RPC_REQUEST_ID_PROC_MARK_STOP 24023
#define MIG_RPC_REPLY_ID_PROC_MARK_STOP 24123
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mark_stop
(
	process_t process,
	int signo,
	int sigcode
);

/* Routine proc_mark_cont */
#define MIG_RPC_HAVE_PROC_MARK_CONT
#define MIG_RPC_REQUEST_ID_PROC_MARK_CONT 24024
#define MIG_RPC_REPLY_ID_PROC_MARK_CONT 24124
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mark_cont
(
	process_t process
);

/* Routine proc_mark_exit */
#define MIG_RPC_HAVE_PROC_MARK_EXIT
#define MIG_RPC_REQUEST_ID_PROC_MARK_EXIT 24025
#define MIG_RPC_REPLY_ID_PROC_MARK_EXIT 24125
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mark_exit
(
	process_t process,
	int status,
	int sigcode
);

/* Routine proc_mark_exec */
#define MIG_RPC_HAVE_PROC_MARK_EXEC
#define MIG_RPC_REQUEST_ID_PROC_MARK_EXEC 24026
#define MIG_RPC_REPLY_ID_PROC_MARK_EXEC 24126
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mark_exec
(
	process_t process
);

/* Routine proc_mark_traced */
#define MIG_RPC_HAVE_PROC_MARK_TRACED
#define MIG_RPC_REQUEST_ID_PROC_MARK_TRACED 24027
#define MIG_RPC_REPLY_ID_PROC_MARK_TRACED 24127
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mark_traced
(
	process_t process
);

/* Routine proc_mod_stopchild */
#define MIG_RPC_HAVE_PROC_MOD_STOPCHILD
#define MIG_RPC_REQUEST_ID_PROC_MOD_STOPCHILD 24028
#define MIG_RPC_REPLY_ID_PROC_MOD_STOPCHILD 24128
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mod_stopchild
(
	process_t process,
	int doit
);

/* Routine proc_pid2task */
#define MIG_RPC_HAVE_PROC_PID2TASK
#define MIG_RPC_REQUEST_ID_PROC_PID2TASK 24029
#define MIG_RPC_REPLY_ID_PROC_PID2TASK 24129
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_pid2task
(
	process_t process,
	pid_t pid,
	mach_port_t *task
);

/* Routine proc_task2pid */
#define MIG_RPC_HAVE_PROC_TASK2PID
#define MIG_RPC_REQUEST_ID_PROC_TASK2PID 24030
#define MIG_RPC_REPLY_ID_PROC_TASK2PID 24130
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_task2pid
(
	process_t process,
	mach_port_t task,
	pid_t *pid
);

/* Routine proc_task2proc */
#define MIG_RPC_HAVE_PROC_TASK2PROC
#define MIG_RPC_REQUEST_ID_PROC_TASK2PROC 24031
#define MIG_RPC_REPLY_ID_PROC_TASK2PROC 24131
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_task2proc
(
	process_t process,
	mach_port_t task,
	mach_port_t *proc
);

/* Routine proc_proc2task */
#define MIG_RPC_HAVE_PROC_PROC2TASK
#define MIG_RPC_REQUEST_ID_PROC_PROC2TASK 24032
#define MIG_RPC_REPLY_ID_PROC_PROC2TASK 24132
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_proc2task
(
	process_t process,
	mach_port_t *task
);

/* Routine proc_pid2proc */
#define MIG_RPC_HAVE_PROC_PID2PROC
#define MIG_RPC_REQUEST_ID_PROC_PID2PROC 24033
#define MIG_RPC_REPLY_ID_PROC_PID2PROC 24133
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_pid2proc
(
	process_t process,
	pid_t pid,
	mach_port_t *proc
);

/* Routine proc_getprocinfo */
#define MIG_RPC_HAVE_PROC_GETPROCINFO
#define MIG_RPC_REQUEST_ID_PROC_GETPROCINFO 24034
#define MIG_RPC_REPLY_ID_PROC_GETPROCINFO 24134
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getprocinfo
(
	process_t process,
	pid_t which,
	int *flags,
	procinfo_t *procinfo,
	mach_msg_type_number_t *procinfoCnt,
	data_t *threadwaits,
	mach_msg_type_number_t *threadwaitsCnt
);

/* Routine proc_getprocargs */
#define MIG_RPC_HAVE_PROC_GETPROCARGS
#define MIG_RPC_REQUEST_ID_PROC_GETPROCARGS 24035
#define MIG_RPC_REPLY_ID_PROC_GETPROCARGS 24135
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getprocargs
(
	process_t process,
	pid_t which,
	data_t *procargs,
	mach_msg_type_number_t *procargsCnt
);

/* Routine proc_getprocenv */
#define MIG_RPC_HAVE_PROC_GETPROCENV
#define MIG_RPC_REQUEST_ID_PROC_GETPROCENV 24036
#define MIG_RPC_REPLY_ID_PROC_GETPROCENV 24136
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getprocenv
(
	process_t process,
	pid_t which,
	data_t *procenv,
	mach_msg_type_number_t *procenvCnt
);

/* Routine proc_make_login_coll */
#define MIG_RPC_HAVE_PROC_MAKE_LOGIN_COLL
#define MIG_RPC_REQUEST_ID_PROC_MAKE_LOGIN_COLL 24037
#define MIG_RPC_REPLY_ID_PROC_MAKE_LOGIN_COLL 24137
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_make_login_coll
(
	process_t process
);

/* Routine proc_getloginid */
#define MIG_RPC_HAVE_PROC_GETLOGINID
#define MIG_RPC_REQUEST_ID_PROC_GETLOGINID 24038
#define MIG_RPC_REPLY_ID_PROC_GETLOGINID 24138
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getloginid
(
	process_t process,
	pid_t pid,
	pid_t *login_id
);

/* Routine proc_getloginpids */
#define MIG_RPC_HAVE_PROC_GETLOGINPIDS
#define MIG_RPC_REQUEST_ID_PROC_GETLOGINPIDS 24039
#define MIG_RPC_REPLY_ID_PROC_GETLOGINPIDS 24139
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getloginpids
(
	process_t process,
	pid_t id,
	pidarray_t *pids,
	mach_msg_type_number_t *pidsCnt
);

/* Routine proc_setlogin */
#define MIG_RPC_HAVE_PROC_SETLOGIN
#define MIG_RPC_REQUEST_ID_PROC_SETLOGIN 24040
#define MIG_RPC_REPLY_ID_PROC_SETLOGIN 24140
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_setlogin
(
	process_t process,
	const_string_t logname
);

/* Routine proc_getlogin */
#define MIG_RPC_HAVE_PROC_GETLOGIN
#define MIG_RPC_REQUEST_ID_PROC_GETLOGIN 24041
#define MIG_RPC_REPLY_ID_PROC_GETLOGIN 24141
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getlogin
(
	process_t process,
	string_t logname
);

/* Routine proc_setsid */
#define MIG_RPC_HAVE_PROC_SETSID
#define MIG_RPC_REQUEST_ID_PROC_SETSID 24042
#define MIG_RPC_REPLY_ID_PROC_SETSID 24142
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_setsid
(
	process_t process
);

/* Routine proc_getsid */
#define MIG_RPC_HAVE_PROC_GETSID
#define MIG_RPC_REQUEST_ID_PROC_GETSID 24043
#define MIG_RPC_REPLY_ID_PROC_GETSID 24143
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getsid
(
	process_t process,
	pid_t pid,
	pid_t *sid
);

/* Routine proc_getsessionpgids */
#define MIG_RPC_HAVE_PROC_GETSESSIONPGIDS
#define MIG_RPC_REQUEST_ID_PROC_GETSESSIONPGIDS 24044
#define MIG_RPC_REPLY_ID_PROC_GETSESSIONPGIDS 24144
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getsessionpgids
(
	process_t process,
	pid_t sid,
	pidarray_t *pgidset,
	mach_msg_type_number_t *pgidsetCnt
);

/* Routine proc_getsessionpids */
#define MIG_RPC_HAVE_PROC_GETSESSIONPIDS
#define MIG_RPC_REQUEST_ID_PROC_GETSESSIONPIDS 24045
#define MIG_RPC_REPLY_ID_PROC_GETSESSIONPIDS 24145
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getsessionpids
(
	process_t process,
	pid_t sid,
	pidarray_t *pidset,
	mach_msg_type_number_t *pidsetCnt
);

/* Routine proc_getsidport */
#define MIG_RPC_HAVE_PROC_GETSIDPORT
#define MIG_RPC_REQUEST_ID_PROC_GETSIDPORT 24046
#define MIG_RPC_REPLY_ID_PROC_GETSIDPORT 24146
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getsidport
(
	process_t process,
	mach_port_t *sessport
);

/* Routine proc_setpgrp */
#define MIG_RPC_HAVE_PROC_SETPGRP
#define MIG_RPC_REQUEST_ID_PROC_SETPGRP 24047
#define MIG_RPC_REPLY_ID_PROC_SETPGRP 24147
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_setpgrp
(
	process_t process,
	pid_t pid,
	pid_t pgrp
);

/* Routine proc_getpgrp */
#define MIG_RPC_HAVE_PROC_GETPGRP
#define MIG_RPC_REQUEST_ID_PROC_GETPGRP 24048
#define MIG_RPC_REPLY_ID_PROC_GETPGRP 24148
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getpgrp
(
	process_t process,
	pid_t pid,
	pid_t *pgrp
);

/* Routine proc_getpgrppids */
#define MIG_RPC_HAVE_PROC_GETPGRPPIDS
#define MIG_RPC_REQUEST_ID_PROC_GETPGRPPIDS 24049
#define MIG_RPC_REPLY_ID_PROC_GETPGRPPIDS 24149
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getpgrppids
(
	process_t process,
	pid_t pgrp,
	pidarray_t *pidset,
	mach_msg_type_number_t *pidsetCnt
);

/* Routine proc_get_tty */
#define MIG_RPC_HAVE_PROC_GET_TTY
#define MIG_RPC_REQUEST_ID_PROC_GET_TTY 24050
#define MIG_RPC_REPLY_ID_PROC_GET_TTY 24150
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_get_tty
(
	process_t calling_process,
	pid_t target_process,
	mach_port_t *tty
);

/* Routine proc_getnports */
#define MIG_RPC_HAVE_PROC_GETNPORTS
#define MIG_RPC_REQUEST_ID_PROC_GETNPORTS 24051
#define MIG_RPC_REPLY_ID_PROC_GETNPORTS 24151
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getnports
(
	process_t process,
	pid_t which,
	mach_msg_type_number_t *nports
);

/* Routine proc_set_init_task */
#define MIG_RPC_HAVE_PROC_SET_INIT_TASK
#define MIG_RPC_REQUEST_ID_PROC_SET_INIT_TASK 24052
#define MIG_RPC_REPLY_ID_PROC_SET_INIT_TASK 24152
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_set_init_task
(
	process_t process,
	mach_port_t task
);

/* Routine proc_mark_important */
#define MIG_RPC_HAVE_PROC_MARK_IMPORTANT
#define MIG_RPC_REQUEST_ID_PROC_MARK_IMPORTANT 24053
#define MIG_RPC_REPLY_ID_PROC_MARK_IMPORTANT 24153
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_mark_important
(
	process_t process
);

/* Routine proc_is_important */
#define MIG_RPC_HAVE_PROC_IS_IMPORTANT
#define MIG_RPC_REQUEST_ID_PROC_IS_IMPORTANT 24054
#define MIG_RPC_REPLY_ID_PROC_IS_IMPORTANT 24154
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_is_important
(
	process_t process,
	boolean_t *essential
);

/* Routine proc_set_code */
#define MIG_RPC_HAVE_PROC_SET_CODE
#define MIG_RPC_REQUEST_ID_PROC_SET_CODE 24055
#define MIG_RPC_REPLY_ID_PROC_SET_CODE 24155
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_set_code
(
	process_t process,
	vm_address_t start_code,
	vm_address_t end_code
);

/* Routine proc_get_code */
#define MIG_RPC_HAVE_PROC_GET_CODE
#define MIG_RPC_REQUEST_ID_PROC_GET_CODE 24056
#define MIG_RPC_REPLY_ID_PROC_GET_CODE 24156
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_get_code
(
	process_t process,
	vm_address_t *start_code,
	vm_address_t *end_code
);

/* Routine proc_make_task_namespace */
#define MIG_RPC_HAVE_PROC_MAKE_TASK_NAMESPACE
#define MIG_RPC_REQUEST_ID_PROC_MAKE_TASK_NAMESPACE 24057
#define MIG_RPC_REPLY_ID_PROC_MAKE_TASK_NAMESPACE 24157
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_make_task_namespace
(
	process_t process,
	mach_port_t notify,
	mach_msg_type_name_t notifyPoly
);

/* Routine proc_set_exe */
#define MIG_RPC_HAVE_PROC_SET_EXE
#define MIG_RPC_REQUEST_ID_PROC_SET_EXE 24058
#define MIG_RPC_REPLY_ID_PROC_SET_EXE 24158
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_set_exe
(
	process_t process,
	const_string_t path
);

/* Routine proc_get_exe */
#define MIG_RPC_HAVE_PROC_GET_EXE
#define MIG_RPC_REQUEST_ID_PROC_GET_EXE 24059
#define MIG_RPC_REPLY_ID_PROC_GET_EXE 24159
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_get_exe
(
	process_t process,
	pid_t which,
	string_t path
);

/* Routine proc_set_entry */
#define MIG_RPC_HAVE_PROC_SET_ENTRY
#define MIG_RPC_REQUEST_ID_PROC_SET_ENTRY 24060
#define MIG_RPC_REPLY_ID_PROC_SET_ENTRY 24160
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_set_entry
(
	process_t process,
	vm_address_t entry
);

/* Routine proc_get_entry */
#define MIG_RPC_HAVE_PROC_GET_ENTRY
#define MIG_RPC_REQUEST_ID_PROC_GET_ENTRY 24061
#define MIG_RPC_REPLY_ID_PROC_GET_ENTRY 24161
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_get_entry
(
	process_t process,
	vm_address_t *entry
);

/* Routine proc_waitid */
#define MIG_RPC_HAVE_PROC_WAITID
#define MIG_RPC_REQUEST_ID_PROC_WAITID 24062
#define MIG_RPC_REPLY_ID_PROC_WAITID 24162
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_waitid
(
	process_t process,
	pid_t pid,
	int options,
	int *status,
	int *sigcode,
	rusage_t *rusage,
	pid_t *pid_status
);

/* SimpleRoutine proc_reauthenticate_reassign */
#define MIG_RPC_HAVE_PROC_REAUTHENTICATE_REASSIGN
#define MIG_RPC_REQUEST_ID_PROC_REAUTHENTICATE_REASSIGN 24063
#define MIG_RPC_REPLY_ID_PROC_REAUTHENTICATE_REASSIGN 24163
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_reauthenticate_reassign
(
	process_t old_process,
	mach_port_t rendezvous,
	mach_msg_type_name_t rendezvousPoly,
	mach_port_t new_task
);

/* SimpleRoutine proc_reauthenticate_complete */
#define MIG_RPC_HAVE_PROC_REAUTHENTICATE_COMPLETE
#define MIG_RPC_REQUEST_ID_PROC_REAUTHENTICATE_COMPLETE 24064
#define MIG_RPC_REPLY_ID_PROC_REAUTHENTICATE_COMPLETE 24164
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_reauthenticate_complete
(
	process_t process
);

/* Routine proc_getchildren_rusage */
#define MIG_RPC_HAVE_PROC_GETCHILDREN_RUSAGE
#define MIG_RPC_REQUEST_ID_PROC_GETCHILDREN_RUSAGE 24065
#define MIG_RPC_REPLY_ID_PROC_GETCHILDREN_RUSAGE 24165
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t proc_getchildren_rusage
(
	process_t process,
	rusage_t *children_rusage
);

#endif	/* not defined(_process_user_) */
