Rizin
unix-like reverse engineering framework and cli tools
darwin-stub.h
Go to the documentation of this file.
1 /* Copyright libuv project contributors. All rights reserved.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to
5  * deal in the Software without restriction, including without limitation the
6  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  * sell copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions:
9  *
10  * The above copyright notice and this permission notice shall be included in
11  * all copies or substantial portions of the Software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19  * IN THE SOFTWARE.
20  */
21 
22 #ifndef UV_DARWIN_STUB_H_
23 #define UV_DARWIN_STUB_H_
24 
25 #include <stdint.h>
26 
27 struct CFArrayCallBacks;
30 struct CFRange;
31 
32 typedef double CFAbsoluteTime;
33 typedef double CFTimeInterval;
35 typedef int OSStatus;
36 typedef long CFIndex;
37 typedef struct CFArrayCallBacks CFArrayCallBacks;
42 typedef unsigned CFStringEncoding;
43 typedef void* CFAllocatorRef;
44 typedef void* CFArrayRef;
45 typedef void* CFBundleRef;
46 typedef void* CFDataRef;
47 typedef void* CFDictionaryRef;
48 typedef void* CFMutableDictionaryRef;
49 typedef struct CFRange CFRange;
50 typedef void* CFRunLoopRef;
51 typedef void* CFRunLoopSourceRef;
52 typedef void* CFStringRef;
53 typedef void* CFTypeRef;
54 typedef void* FSEventStreamRef;
55 
57 typedef unsigned int io_iterator_t;
58 typedef unsigned int io_object_t;
59 typedef unsigned int io_service_t;
60 typedef unsigned int io_registry_entry_t;
61 
62 
64  void*,
65  size_t,
66  void*,
68  const FSEventStreamEventId*);
69 
72  void* info;
73  void* pad[7];
74  void (*perform)(void*);
75 };
76 
79  void* info;
80  void* pad[3];
81 };
82 
83 struct CFRange {
86 };
87 
88 static const CFStringEncoding kCFStringEncodingUTF8 = 0x8000100;
89 static const OSStatus noErr = 0;
90 
92 
93 static const int kFSEventStreamCreateFlagNoDefer = 2;
94 static const int kFSEventStreamCreateFlagFileEvents = 16;
95 
97 static const int kFSEventStreamEventFlagHistoryDone = 16;
98 static const int kFSEventStreamEventFlagItemChangeOwner = 0x4000;
99 static const int kFSEventStreamEventFlagItemCreated = 0x100;
102 static const int kFSEventStreamEventFlagItemIsDir = 0x20000;
103 static const int kFSEventStreamEventFlagItemModified = 0x1000;
104 static const int kFSEventStreamEventFlagItemRemoved = 0x200;
105 static const int kFSEventStreamEventFlagItemRenamed = 0x800;
106 static const int kFSEventStreamEventFlagItemXattrMod = 0x8000;
108 static const int kFSEventStreamEventFlagMount = 64;
110 static const int kFSEventStreamEventFlagUnmount = 128;
112 
113 #endif /* UV_DARWIN_STUB_H_ */
static const int kFSEventStreamEventFlagItemCreated
Definition: darwin-stub.h:99
uint64_t FSEventStreamEventId
Definition: darwin-stub.h:41
void * CFBundleRef
Definition: darwin-stub.h:45
static const int kFSEventStreamEventFlagUnmount
Definition: darwin-stub.h:110
uint32_t FSEventStreamCreateFlags
Definition: darwin-stub.h:40
unsigned int io_iterator_t
Definition: darwin-stub.h:57
static const int kFSEventStreamCreateFlagNoDefer
Definition: darwin-stub.h:93
long CFIndex
Definition: darwin-stub.h:36
static const int kFSEventStreamEventFlagEventIdsWrapped
Definition: darwin-stub.h:96
static const int kFSEventStreamEventFlagKernelDropped
Definition: darwin-stub.h:107
static const OSStatus noErr
Definition: darwin-stub.h:89
void * CFDataRef
Definition: darwin-stub.h:46
void(* FSEventStreamCallback)(const FSEventStreamRef, void *, size_t, void *, const FSEventStreamEventFlags *, const FSEventStreamEventId *)
Definition: darwin-stub.h:63
static const int kFSEventStreamEventFlagHistoryDone
Definition: darwin-stub.h:97
static const int kFSEventStreamEventFlagItemChangeOwner
Definition: darwin-stub.h:98
static const CFStringEncoding kCFStringEncodingUTF8
Definition: darwin-stub.h:88
unsigned int io_registry_entry_t
Definition: darwin-stub.h:60
static const int kFSEventStreamEventFlagItemIsDir
Definition: darwin-stub.h:102
void * CFDictionaryRef
Definition: darwin-stub.h:47
static const int kFSEventStreamEventFlagItemFinderInfoMod
Definition: darwin-stub.h:100
void * CFMutableDictionaryRef
Definition: darwin-stub.h:48
static const int kFSEventStreamEventFlagUserDropped
Definition: darwin-stub.h:111
double CFTimeInterval
Definition: darwin-stub.h:33
void * CFRunLoopRef
Definition: darwin-stub.h:50
unsigned int io_service_t
Definition: darwin-stub.h:59
static const int kFSEventStreamCreateFlagFileEvents
Definition: darwin-stub.h:94
static const int kFSEventStreamEventFlagItemRenamed
Definition: darwin-stub.h:105
int OSStatus
Definition: darwin-stub.h:35
static const int kFSEventStreamEventFlagItemRemoved
Definition: darwin-stub.h:104
struct CFArrayCallBacks CFArrayCallBacks
Definition: darwin-stub.h:37
void * CFStringRef
Definition: darwin-stub.h:52
void * CFAllocatorRef
Definition: darwin-stub.h:43
static const int kFSEventStreamEventFlagMount
Definition: darwin-stub.h:108
static const FSEventStreamEventId kFSEventStreamEventIdSinceNow
Definition: darwin-stub.h:91
void * CFTypeRef
Definition: darwin-stub.h:53
unsigned int io_object_t
Definition: darwin-stub.h:58
void * CFRunLoopSourceRef
Definition: darwin-stub.h:51
static const int kFSEventStreamEventFlagItemXattrMod
Definition: darwin-stub.h:106
void * CFArrayRef
Definition: darwin-stub.h:44
uint32_t IOOptionBits
Definition: darwin-stub.h:56
static const int kFSEventStreamEventFlagRootChanged
Definition: darwin-stub.h:109
double CFAbsoluteTime
Definition: darwin-stub.h:30
unsigned CFStringEncoding
Definition: darwin-stub.h:42
void * FSEventStreamRef
Definition: darwin-stub.h:54
static const int kFSEventStreamEventFlagItemInodeMetaMod
Definition: darwin-stub.h:101
int FSEventStreamEventFlags
Definition: darwin-stub.h:34
static const int kFSEventStreamEventFlagItemModified
Definition: darwin-stub.h:103
int size_t
Definition: sftypes.h:40
unsigned int uint32_t
Definition: sftypes.h:29
unsigned long uint64_t
Definition: sftypes.h:28
CFIndex location
Definition: darwin-stub.h:84
CFIndex length
Definition: darwin-stub.h:85
void(* perform)(void *)
Definition: darwin-stub.h:74