50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
#ifndef _task_user_
|
|
#define _task_user_
|
|
|
|
/* Module task */
|
|
|
|
#include <string.h>
|
|
#include <mach/ndr.h>
|
|
#include <mach/boolean.h>
|
|
#include <mach/kern_return.h>
|
|
#include <mach/notify.h>
|
|
#include <mach/mach_types.h>
|
|
#include <mach/message.h>
|
|
#include <mach/mig_errors.h>
|
|
#include <mach/port.h>
|
|
|
|
#ifndef KERNEL
|
|
#if defined(__has_include)
|
|
#if __has_include(<mach/mig_voucher_support.h>)
|
|
#ifndef USING_VOUCHERS
|
|
#define USING_VOUCHERS
|
|
#endif
|
|
#ifndef __VOUCHER_FORWARD_TYPE_DECLS__
|
|
#define __VOUCHER_FORWARD_TYPE_DECLS__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import));
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // __VOUCHER_FORWARD_TYPE_DECLS__
|
|
#endif // __has_include(<mach/mach_voucher_types.h>)
|
|
#endif // __has_include
|
|
#endif // !KERNEL
|
|
|
|
#ifdef __MigPackStructs
|
|
#pragma pack(4)
|
|
#endif
|
|
typedef struct {
|
|
mach_msg_header_t Head;
|
|
NDR_record_t NDR;
|
|
kern_return_t RetCode;
|
|
} __Reply__mach_ports_register_t __attribute__((unused));
|
|
#ifdef __MigPackStructs
|
|
#pragma pack()
|
|
#endif
|
|
|
|
|
|
#endif
|