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