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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
Index: include/stuff/ofile.h
===================================================================
--- include/stuff/ofile.h (revision 287)
+++ include/stuff/ofile.h (working copy)
@@ -29,17 +29,17 @@
#endif
#include "stuff/target_arch.h"
-#import <ar.h>
+#include <ar.h>
#ifndef AR_EFMT1
#define AR_EFMT1 "#1/" /* extended format #1 */
#endif
-#import <mach-o/loader.h>
+#include <mach-o/loader.h>
#ifdef OFI
-#import <mach-o/dyld.h>
+#include <mach-o/dyld.h>
#endif
-#import "stuff/bytesex.h"
-#import "stuff/bool.h"
-#import "stuff/arch.h"
+#include "stuff/bytesex.h"
+#include "stuff/bool.h"
+#include "stuff/arch.h"
enum ofile_type {
OFILE_UNKNOWN,
Index: include/stuff/breakout.h
===================================================================
--- include/stuff/breakout.h (revision 287)
+++ include/stuff/breakout.h (working copy)
@@ -24,7 +24,7 @@
#define __private_extern__ __declspec(private_extern)
#endif
-#import "stuff/ofile.h"
+#include "stuff/ofile.h"
/*
* This is used to build the table of contents of an archive. Each toc_entry
Index: include/stuff/bytesex.h
===================================================================
--- include/stuff/bytesex.h (revision 287)
+++ include/stuff/bytesex.h (working copy)
@@ -69,12 +69,10 @@
(((a) >> 8) & 0x0000ff00) | \
((unsigned int)(a) >> 24) )
-#ifndef __LP64__
#define SWAP_LONG(a) ( ((a) << 24) | \
(((a) << 8) & 0x00ff0000) | \
(((a) >> 8) & 0x0000ff00) | \
((unsigned long)(a) >> 24) )
-#endif
extern long long SWAP_LONG_LONG(
long long ll);
Index: include/ar.h
===================================================================
--- include/ar.h (revision 287)
+++ include/ar.h (working copy)
@@ -86,4 +86,9 @@
char ar_fmag[2]; /* consistency check */
};
+#ifndef HAVE_STRMODE
+#include <sys/types.h>
+void strmode(mode_t mode, char *bp);
+#endif
+
#endif /* !_AR_H_ */
Index: include/i386/_types.h
===================================================================
--- include/i386/_types.h (revision 287)
+++ include/i386/_types.h (working copy)
@@ -37,8 +37,6 @@
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
-typedef long long __int64_t;
-typedef unsigned long long __uint64_t;
typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural_t;
Index: include/foreign/architecture/i386/frame.h
===================================================================
--- include/foreign/architecture/i386/frame.h (revision 287)
+++ include/foreign/architecture/i386/frame.h (working copy)
@@ -63,7 +63,7 @@
} pgfault;
} err_code_t;
-#import <architecture/i386/sel.h>
+#include <architecture/i386/sel.h>
/*
* The actual hardware exception frame
Index: include/foreign/architecture/i386/fpu.h
===================================================================
--- include/foreign/architecture/i386/fpu.h (revision 287)
+++ include/foreign/architecture/i386/fpu.h (working copy)
@@ -121,7 +121,7 @@
:3;
} fp_control_t;
-#import <architecture/i386/sel.h>
+#include <architecture/i386/sel.h>
/*
* Floating point 'environment'
Index: include/foreign/objc/error.h
===================================================================
--- include/foreign/objc/error.h (revision 287)
+++ include/foreign/objc/error.h (working copy)
@@ -43,7 +43,7 @@
#define _OBJC_ERROR_H_
#include <setjmp.h>
-#import <objc/objc-api.h>
+#include <objc/objc-api.h>
typedef struct _NXHandler { /* a node in the handler chain */
Index: include/foreign/objc/objc-load.h
===================================================================
--- include/foreign/objc/objc-load.h (revision 287)
+++ include/foreign/objc/objc-load.h (working copy)
@@ -28,10 +28,10 @@
#ifndef _OBJC_LOAD_H_
#define _OBJC_LOAD_H_
-#import <objc/objc-class.h>
+#include <objc/objc-class.h>
-#import <mach-o/loader.h>
-#import <AvailabilityMacros.h>
+#include <mach-o/loader.h>
+#include <AvailabilityMacros.h>
/* dynamically loading Mach-O object files that contain Objective-C code */
Index: include/foreign/objc/hashtable.h
===================================================================
--- include/foreign/objc/hashtable.h (revision 287)
+++ include/foreign/objc/hashtable.h (working copy)
@@ -33,7 +33,7 @@
#warning The API in this header is obsoleted by NSHashtable.h
#endif
-#import <objc/objc.h>
+#include <objc/objc.h>
#include <stdint.h>
/*************************************************************************
Index: include/foreign/objc/objc-runtime.h
===================================================================
--- include/foreign/objc/objc-runtime.h (revision 287)
+++ include/foreign/objc/objc-runtime.h (working copy)
@@ -1,2 +1,2 @@
-#import <objc/runtime.h>
-#import <objc/message.h>
+#include <objc/runtime.h>
+#include <objc/message.h>
Index: include/foreign/objc/Protocol.h
===================================================================
--- include/foreign/objc/Protocol.h (revision 287)
+++ include/foreign/objc/Protocol.h (working copy)
@@ -28,7 +28,7 @@
#ifndef _OBJC_PROTOCOL_H_
#define _OBJC_PROTOCOL_H_
-#import <objc/Object.h>
+#include <objc/Object.h>
/* Warning: All of these methods will disappear in 64-bit. */
Index: include/foreign/objc/Object.h
===================================================================
--- include/foreign/objc/Object.h (revision 287)
+++ include/foreign/objc/Object.h (working copy)
@@ -33,7 +33,7 @@
#define _OBJC_OBJECT_H_
#include <stdarg.h>
-#import <objc/objc-runtime.h>
+#include <objc/objc-runtime.h>
#if __OBJC2__
Index: include/foreign/objc/objc-exception.h
===================================================================
--- include/foreign/objc/objc-exception.h (revision 287)
+++ include/foreign/objc/objc-exception.h (working copy)
@@ -24,7 +24,7 @@
#ifndef __OBJC_EXCEPTION_H_
#define __OBJC_EXCEPTION_H_
-#import <objc/objc.h>
+#include <objc/objc.h>
// ZEROCOST_SWITCH
#if !__LP64__ || !OBJC_ZEROCOST_EXCEPTIONS
Index: include/foreign/objc/zone.h
===================================================================
--- include/foreign/objc/zone.h (revision 287)
+++ include/foreign/objc/zone.h (working copy)
@@ -24,7 +24,7 @@
#ifndef _OBJC_ZONE_H_
#define _OBJC_ZONE_H_
-#import <malloc/malloc.h>
+#incldue <malloc/malloc.h>
typedef malloc_zone_t NXZone;
Index: include/foreign/objc/List.h
===================================================================
--- include/foreign/objc/List.h (revision 287)
+++ include/foreign/objc/List.h (working copy)
@@ -40,8 +40,8 @@
#warning The API in this header is obsoleted by NSArray.
-#import <objc/Object.h>
-#import <AvailabilityMacros.h>
+#include <objc/Object.h>
+#include <AvailabilityMacros.h>
DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER
@interface List : Object
Index: include/foreign/objc/objc.h
===================================================================
--- include/foreign/objc/objc.h (revision 287)
+++ include/foreign/objc/objc.h (working copy)
@@ -28,8 +28,8 @@
#ifndef _OBJC_OBJC_H_
#define _OBJC_OBJC_H_
-#import <objc/objc-api.h> // for OBJC_EXPORT
-#import <sys/types.h>
+#include <objc/objc-api.h> // for OBJC_EXPORT
+#include <sys/types.h>
typedef struct objc_class *Class;
Index: include/foreign/objc/hashtable2.h
===================================================================
--- include/foreign/objc/hashtable2.h (revision 287)
+++ include/foreign/objc/hashtable2.h (working copy)
@@ -33,7 +33,7 @@
#warning The API in this header is obsoleted by NSHashtable.h
#endif
-#import <objc/objc.h>
+#include <objc/objc.h>
#include <stdint.h>
/*************************************************************************
Index: include/foreign/objc/objc-class.h
===================================================================
--- include/foreign/objc/objc-class.h (revision 287)
+++ include/foreign/objc/objc-class.h (working copy)
@@ -1,2 +1,2 @@
-#import <objc/runtime.h>
-#import <objc/message.h>
+#include <objc/runtime.h>
+#include <objc/message.h>
Index: include/foreign/objc/objc-auto.h
===================================================================
--- include/foreign/objc/objc-auto.h (revision 287)
+++ include/foreign/objc/objc-auto.h (working copy)
@@ -24,7 +24,7 @@
#ifndef _OBJC_AUTO_H_
#define _OBJC_AUTO_H_
-#import <objc/objc.h>
+#include <objc/objc.h>
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
Index: include/foreign/objc/runtime.h
===================================================================
--- include/foreign/objc/runtime.h (revision 287)
+++ include/foreign/objc/runtime.h (working copy)
@@ -24,13 +24,13 @@
#ifndef _OBJC_RUNTIME_H
#define _OBJC_RUNTIME_H
-#import <objc/objc.h>
+#include <objc/objc.h>
-#import <sys/types.h>
-#import <stdarg.h>
-#import <stdint.h>
-#import <stddef.h>
-#import <AvailabilityMacros.h>
+#include <sys/types.h>
+#include <stdarg.h>
+#include <stdint.h>
+#include <stddef.h>
+#include <AvailabilityMacros.h>
/* Types */
Index: include/foreign/objc/message.h
===================================================================
--- include/foreign/objc/message.h (revision 287)
+++ include/foreign/objc/message.h (working copy)
@@ -21,8 +21,8 @@
* @APPLE_LICENSE_HEADER_END@
*/
-#import <objc/objc.h>
-#import <objc/runtime.h>
+#include <objc/objc.h>
+#include <objc/runtime.h>
struct objc_super {
Index: include/mach-o/nlist.h
===================================================================
--- include/mach-o/nlist.h (revision 287)
+++ include/mach-o/nlist.h (working copy)
@@ -75,9 +75,7 @@
*/
struct nlist {
union {
-#ifndef __LP64__
char *n_name; /* for use when in-core */
-#endif
int32_t n_strx; /* index into the string table */
} n_un;
uint8_t n_type; /* type flag, see below */
Index: include/mach-o/ranlib.h
===================================================================
--- include/mach-o/ranlib.h (revision 287)
+++ include/mach-o/ranlib.h (working copy)
@@ -60,9 +60,7 @@
struct ranlib {
union {
uint32_t ran_strx; /* string table index of */
-#ifndef __LP64__
char *ran_name; /* symbol defined by */
-#endif
} ran_un;
uint32_t ran_off; /* library member at this offset */
};
Index: include/mach/mach_traps.h
===================================================================
--- include/mach/mach_traps.h (revision 287)
+++ include/mach/mach_traps.h (working copy)
@@ -106,7 +106,6 @@
mach_port_name_t t,
int *x);
-#if !defined(__LP64__)
/* these should go away altogether - so no 64 legacy please */
extern kern_return_t map_fd(
@@ -116,7 +115,6 @@
boolean_t findspace,
vm_size_t size);
-#endif /* !defined(__LP64__) */
__END_DECLS
Index: include/mach/machine.h
===================================================================
--- include/mach/machine.h (revision 287)
+++ include/mach/machine.h (working copy)
@@ -80,8 +80,8 @@
#ifndef _MACH_MACHINE_H_
#define _MACH_MACHINE_H_
-#import <mach/machine/vm_types.h>
-#import <mach/boolean.h>
+#include <mach/machine/vm_types.h>
+#include <mach/boolean.h>
/*
* For each host, there is a maximum possible number of
|