1/** 2 * Copyright: Copyright Digital Mars 2010. 3 * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). 4 * Authors: Jacob Carlborg 5 * Version: Initial created: Feb 20, 2010 6 */ 7 8/* Copyright Digital Mars 2010. 9 * Distributed under the Boost Software License, Version 1.0. 10 * (See accompanying file LICENSE or copy at 11 * http://www.boost.org/LICENSE_1_0.txt) 12 */ 13module core.sys.darwin.mach.dyld; 14 15version (OSX) 16 version = Darwin; 17else version (iOS) 18 version = Darwin; 19else version (TVOS) 20 version = Darwin; 21else version (WatchOS) 22 version = Darwin; 23 24version (Darwin): 25extern (C): 26nothrow: 27@nogc: 28 29public import core.stdc.stdint; // for intptr_t 30public import core.sys.darwin.mach.loader; 31 32uint _dyld_image_count(); 33const(char)* _dyld_get_image_name(uint image_index); 34mach_header* _dyld_get_image_header(uint image_index); 35intptr_t _dyld_get_image_vmaddr_slide(uint image_index); 36 37void _dyld_register_func_for_add_image(void function(const scope mach_header* mh, intptr_t vmaddr_slide)); 38void _dyld_register_func_for_remove_image(void function(const scope mach_header* mh, intptr_t vmaddr_slide)); 39 40int NSVersionOfRunTimeLibrary(const char* libraryPath); 41int NSVersionOfLinkTimeLibrary(const char* libraryPath); 42int _NSGetExecutablePath(char* buf, uint* bufsize); 43