aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/osx-runtime/files/fsevents-clang.patch
blob: 1ef21ba8161068e86e1e6e3e9b763c6d8fda318d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Index: OSX-sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h
===================================================================
--- OSX-sdk.orig/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h
+++ OSX-sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h
@@ -259,7 +259,11 @@ enum {
    * historical events, i.e., those delivered before the HistoryDone
    * sentinel event.
    */
+#if defined(__clang__)
   kFSEventStreamCreateFlagIgnoreSelf __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_6_0) = 0x00000008,
+#else
+  kFSEventStreamCreateFlagIgnoreSelf = 0x00000008,
+#endif
 
   /*
    * Request file-level notifications.  Your stream will receive events
@@ -267,7 +271,11 @@ enum {
    * only receiving directory level notifications.  Use this flag with
    * care as it will generate significantly more events than without it.
    */
+#if defined(__clang__)
   kFSEventStreamCreateFlagFileEvents __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_6_0) = 0x00000010,
+#else
+  kFSEventStreamCreateFlagFileEvents = 0x00000010,
+#endif
 
   /*
    * Tag events that were triggered by the current process with the "OwnEvent" flag.
@@ -276,7 +284,11 @@ enum {
    * triggered by your process. Note: this has no effect on historical events, i.e.,
    * those delivered before the HistoryDone sentinel event.
    */
+#if defined(__clang__)
   kFSEventStreamCreateFlagMarkSelf __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0) = 0x00000020
+#else
+  kFSEventStreamCreateFlagMarkSelf = 0x00000020
+#endif
 };
 
 
@@ -411,6 +423,7 @@ enum {
    * A file system object was created at the specific path supplied in this event.
    * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
    */
+#if defined(__clang__)
   kFSEventStreamEventFlagItemCreated __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_6_0) = 0x00000100,
 
   /*
@@ -489,7 +502,86 @@ enum {
    * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
    */
   kFSEventStreamEventFlagItemIsLastHardlink __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_9_0) = 0x00200000,
+#else
+  kFSEventStreamEventFlagItemCreated = 0x00000100,
 
+  /*
+   * A file system object was removed at the specific path supplied in this event.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemRemoved = 0x00000200,
+
+  /*
+   * A file system object at the specific path supplied in this event had its metadata modified.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemInodeMetaMod = 0x00000400,
+
+  /*
+   * A file system object was renamed at the specific path supplied in this event.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemRenamed = 0x00000800,
+
+  /*
+   * A file system object at the specific path supplied in this event had its data modified.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemModified = 0x00001000,
+
+  /*
+   * A file system object at the specific path supplied in this event had its FinderInfo data modified.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemFinderInfoMod = 0x00002000,
+
+  /*
+   * A file system object at the specific path supplied in this event had its ownership changed.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemChangeOwner = 0x00004000,
+
+  /*
+   * A file system object at the specific path supplied in this event had its extended attributes modified.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemXattrMod = 0x00008000,
+
+  /*
+   * The file system object at the specific path supplied in this event is a regular file.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemIsFile = 0x00010000,
+
+  /*
+   * The file system object at the specific path supplied in this event is a directory.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemIsDir = 0x00020000,
+
+  /*
+   * The file system object at the specific path supplied in this event is a symbolic link.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemIsSymlink = 0x00040000,
+
+  /*
+   * Indicates the event was triggered by the current process.
+   * (This flag is only ever set if you specified the MarkSelf flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagOwnEvent = 0x00080000,
+
+  /* 
+   * Indicates the object at the specified path supplied in this event is a hard link.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemIsHardlink = 0x00100000,
+
+  /* Indicates the object at the specific path supplied in this event was the last hard link.
+   * (This flag is only ever set if you specified the FileEvents flag when creating the stream.)
+   */
+  kFSEventStreamEventFlagItemIsLastHardlink = 0x00200000,
+#endif
 };