• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma clang system_header
2 
3 typedef struct _FILE FILE;
4 extern FILE *stdin;
5 extern FILE *stdout;
6 extern FILE *stderr;
7 // Include a variant of standard streams that occur in the pre-processed file.
8 extern FILE *__stdinp;
9 extern FILE *__stdoutp;
10 extern FILE *__stderrp;
11 
12 
13 int fscanf(FILE *restrict, const char *restrict, ...);
14 
15 // Note, on some platforms errno macro gets replaced with a function call.
16 extern int errno;
17 
18 unsigned long strlen(const char *);
19 
20 char *strcpy(char *restrict, const char *restrict);
21 
22 typedef unsigned long __darwin_pthread_key_t;
23 typedef __darwin_pthread_key_t pthread_key_t;
24 int pthread_setspecific(pthread_key_t, const void *);
25 
26 typedef long long __int64_t;
27 typedef __int64_t __darwin_off_t;
28 typedef __darwin_off_t fpos_t;
29 
30 void setbuf(FILE * restrict, char * restrict);
31 int setvbuf(FILE * restrict, char * restrict, int, size_t);
32 
33 FILE *funopen(const void *,
34                  int (*)(void *, char *, int),
35                  int (*)(void *, const char *, int),
36                  fpos_t (*)(void *, fpos_t, int),
37                  int (*)(void *));
38 
39 int sqlite3_bind_text_my(int, const char*, int n, void(*)(void*));
40 
41 typedef void (*freeCallback) (void*);
42 typedef struct {
43   int i;
44   freeCallback fc;
45 } StWithCallback;
46 
47 int dealocateMemWhenDoneByVal(void*, StWithCallback);
48 int dealocateMemWhenDoneByRef(StWithCallback*, const void*);
49 
50 typedef struct CGContext *CGContextRef;
51 CGContextRef CGBitmapContextCreate(void *data/*, size_t width, size_t height,
52                                    size_t bitsPerComponent, size_t bytesPerRow,
53                                    CGColorSpaceRef space,
54                                    CGBitmapInfo bitmapInfo*/);
55 void *CGBitmapContextGetData(CGContextRef context);
56 
57 // Include xpc.
58 typedef struct _xpc_connection_s * xpc_connection_t;
59 typedef void (*xpc_finalizer_t)(void *value);
60 void xpc_connection_set_context(xpc_connection_t connection, void *context);
61 void xpc_connection_set_finalizer_f(xpc_connection_t connection, xpc_finalizer_t finalizer);
62 void xpc_connection_resume(xpc_connection_t connection);
63