Ticket #32253: dyld_prev.diff
File dyld_prev.diff, 3.0 KB (added by daitakahashi, 13 years ago) |
---|
-
dyld_priv.h
old new 1 1 /* -*- mode: C++; c-basic-offset: 4; tab-width: 4 -*- 2 2 * 3 * Copyright (c) 2003-20 08 Apple Computer,Inc. All rights reserved.3 * Copyright (c) 2003-2010 Apple Inc. All rights reserved. 4 4 * 5 5 * @APPLE_LICENSE_HEADER_START@ 6 6 * … … 24 24 #ifndef _MACH_O_DYLD_PRIV_H_ 25 25 #define _MACH_O_DYLD_PRIV_H_ 26 26 27 27 #include <stdbool.h> 28 #include <Availability.h> 28 29 #include <mach-o/dyld.h> 29 30 #include <mach-o/dyld_images.h> 30 31 … … 33 34 #endif /* __cplusplus */ 34 35 35 36 37 38 // 39 // private interface between libSystem.dylib and dyld 40 // 41 extern int _dyld_func_lookup(const char* dyld_func_name, void **address); 42 43 44 // 45 // _dyld_moninit() is a private interface between libSystem.dylib and dyld 46 // 47 extern void _dyld_moninit(void (*monaddition)(char *lowpc, char *highpc)); 48 49 // 50 // private interface between libSystem.dylib and dyld 51 // 52 extern void _dyld_fork_child(); 53 54 36 55 // 37 56 // Possible state changes for which you can register to be notified 38 57 // … … 69 88 70 89 71 90 // 91 // Possible thread-local variable state changes for which you can register to be notified 92 // 93 enum dyld_tlv_states { 94 dyld_tlv_state_allocated = 10, // TLV range newly allocated 95 dyld_tlv_state_deallocated = 20 // TLV range about to be deallocated 96 }; 97 98 // 99 // Info about thread-local variable storage. 100 // 101 typedef struct { 102 size_t info_size; // sizeof(dyld_tlv_info) 103 void * tlv_addr; // Base address of TLV storage 104 size_t tlv_size; // Byte size of TLV storage 105 } dyld_tlv_info; 106 107 #if __BLOCKS__ 108 109 // 110 // Callback that notes changes to thread-local variable storage. 111 // 112 typedef void (^dyld_tlv_state_change_handler)(enum dyld_tlv_states state, const dyld_tlv_info *info); 113 114 // 115 // Register a handler to be called when a thread adds or removes storage for thread-local variables. 116 // The registered handler will only be called from and on behalf of the thread that owns the storage. 117 // The registered handler will NOT be called for any storage that was 118 // already allocated before dyld_register_tlv_state_change_handler() was 119 // called. Use dyld_enumerate_tlv_storage() to get that information. 120 // Exists in Mac OS X 10.7 and later 121 // 122 extern void 123 dyld_register_tlv_state_change_handler(enum dyld_tlv_states state, dyld_tlv_state_change_handler handler); 124 125 // 126 // Enumerate the current thread-local variable storage allocated for the current thread. 127 // Exists in Mac OS X 10.7 and later 128 // 129 extern void 130 dyld_enumerate_tlv_storage(dyld_tlv_state_change_handler handler); 131 132 #endif 133 134 135 // 72 136 // get slide for a given loaded mach_header 73 137 // Mac OS X 10.6 and later 74 138 // … … 114 178 115 179 116 180 117 181 #if __IPHONE_OS_VERSION_MIN_REQUIRED 182 // 183 // Returns if any OS dylib has overridden its copy in the shared cache 184 // 185 // Exists in iPhoneOS 3.1 and later 186 extern bool dyld_shared_cache_some_image_overridden(); 187 #endif 118 188 119 189 120 190