Ticket #32253: dyld_prev.diff

File dyld_prev.diff, 3.0 KB (added by daitakahashi, 13 years ago)

difference between dyld_prev 132.13 and 195.5

  • dyld_priv.h

    old new  
    11/* -*- mode: C++; c-basic-offset: 4; tab-width: 4 -*-
    22 *
    3  * Copyright (c) 2003-2008 Apple Computer, Inc. All rights reserved.
     3 * Copyright (c) 2003-2010 Apple Inc. All rights reserved.
    44 *
    55 * @APPLE_LICENSE_HEADER_START@
    66 *
     
    2424#ifndef _MACH_O_DYLD_PRIV_H_
    2525#define _MACH_O_DYLD_PRIV_H_
    2626
    27 
     27#include <stdbool.h>
     28#include <Availability.h>
    2829#include <mach-o/dyld.h>
    2930#include <mach-o/dyld_images.h>
    3031
     
    3334#endif /* __cplusplus */
    3435
    3536
     37
     38//
     39// private interface between libSystem.dylib and dyld
     40//
     41extern 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//
     47extern void _dyld_moninit(void (*monaddition)(char *lowpc, char *highpc));
     48
     49//
     50// private interface between libSystem.dylib and dyld
     51//
     52extern void _dyld_fork_child();
     53
     54
    3655//
    3756// Possible state changes for which you can register to be notified
    3857//
     
    6988
    7089
    7190//
     91// Possible thread-local variable state changes for which you can register to be notified
     92//
     93enum 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//
     101typedef 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//
     112typedef 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//
     122extern void
     123dyld_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//
     129extern void
     130dyld_enumerate_tlv_storage(dyld_tlv_state_change_handler handler);
     131
     132#endif
     133
     134
     135//
    72136// get slide for a given loaded mach_header 
    73137// Mac OS X 10.6 and later
    74138//
     
    114178
    115179
    116180
    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
     186extern bool dyld_shared_cache_some_image_overridden();
     187#endif
    118188
    119189
    120190