CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/CVE-2016-4669/__task.h
Views: 11779
1
#ifndef _task_user_
2
#define _task_user_
3
4
/* Module task */
5
6
#include <string.h>
7
#include <mach/ndr.h>
8
#include <mach/boolean.h>
9
#include <mach/kern_return.h>
10
#include <mach/notify.h>
11
#include <mach/mach_types.h>
12
#include <mach/message.h>
13
#include <mach/mig_errors.h>
14
#include <mach/port.h>
15
16
#ifndef KERNEL
17
#if defined(__has_include)
18
#if __has_include(<mach/mig_voucher_support.h>)
19
#ifndef USING_VOUCHERS
20
#define USING_VOUCHERS
21
#endif
22
#ifndef __VOUCHER_FORWARD_TYPE_DECLS__
23
#define __VOUCHER_FORWARD_TYPE_DECLS__
24
#ifdef __cplusplus
25
extern "C" {
26
#endif
27
extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import));
28
#ifdef __cplusplus
29
}
30
#endif
31
#endif // __VOUCHER_FORWARD_TYPE_DECLS__
32
#endif // __has_include(<mach/mach_voucher_types.h>)
33
#endif // __has_include
34
#endif // !KERNEL
35
36
#ifdef __MigPackStructs
37
#pragma pack(4)
38
#endif
39
typedef struct {
40
mach_msg_header_t Head;
41
NDR_record_t NDR;
42
kern_return_t RetCode;
43
} __Reply__mach_ports_register_t __attribute__((unused));
44
#ifdef __MigPackStructs
45
#pragma pack()
46
#endif
47
48
49
#endif
50
51