this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Header improvements for JavaScriptCore

+218 -76
-14
platform-include/ConditionalMacros.h
··· 89 89 These conditionals specify whether the compiler supports particular types. 90 90 91 91 TYPE_LONGLONG - Compiler supports "long long" 64-bit integers 92 - TYPE_BOOL - Compiler supports "bool" 93 92 TYPE_EXTENDED - Compiler supports "extended" 80/96 bit floating point 94 93 TYPE_LONGDOUBLE_IS_DOUBLE - Compiler implements "long double" same as "double" 95 94 ··· 143 142 #endif 144 143 145 144 #define TYPE_LONGLONG 1 146 - #ifdef __cplusplus 147 - #define TYPE_BOOL 1 148 - #else 149 - #define TYPE_BOOL 0 150 - #endif 151 145 152 146 #define FUNCTION_PASCAL 0 153 147 #define FUNCTION_DECLSPEC 0 ··· 187 181 #else 188 182 #define TYPE_LONGLONG 0 189 183 #endif 190 - #if __option(bool) 191 - #define TYPE_BOOL 1 192 - #else 193 - #define TYPE_BOOL 0 194 - #endif 195 184 #define TYPE_EXTENDED 0 196 185 #define TYPE_LONGDOUBLE_IS_DOUBLE 1 197 186 ··· 238 227 #endif 239 228 #ifndef TYPE_LONGLONG 240 229 #define TYPE_LONGLONG 0 241 - #endif 242 - #ifndef TYPE_BOOL 243 - #define TYPE_BOOL 0 244 230 #endif 245 231 #ifndef FUNCTION_PASCAL 246 232 #define FUNCTION_PASCAL 0
+2
platform-include/mach/mach_time.h
··· 33 33 34 34 #include <sys/cdefs.h> 35 35 36 + #include <uuid/uuid.h> 37 + 36 38 struct mach_timebase_info { 37 39 uint32_t numer; 38 40 uint32_t denom;
+3 -3
platform-include/mach/vm_region.h
··· 1 1 /* 2 - * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. 2 + * Copyright (c) 2000-2016 Apple Computer, Inc. All rights reserved. 3 3 * 4 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 5 * ··· 301 301 vm_size_t size; 302 302 }; 303 303 304 - #if VM32_SUPPORT 304 + #ifdef VM32_SUPPORT 305 305 struct vm32_read_entry { 306 306 vm32_address_t address; 307 307 vm32_size_t size; ··· 313 313 314 314 typedef struct mach_vm_read_entry mach_vm_read_entry_t[VM_MAP_ENTRY_MAX]; 315 315 typedef struct vm_read_entry vm_read_entry_t[VM_MAP_ENTRY_MAX]; 316 - #if VM32_SUPPORT 316 + #ifdef VM32_SUPPORT 317 317 typedef struct vm32_read_entry vm32_read_entry_t[VM_MAP_ENTRY_MAX]; 318 318 #endif 319 319
+2 -2
platform-include/sys/fcntl.h
··· 376 376 377 377 /* file descriptor flags (F_GETFD, F_SETFD) */ 378 378 #define FD_CLOEXEC 1 /* close-on-exec flag */ 379 - #if PRIVATE 379 + #ifdef PRIVATE 380 380 #define FD_CLOFORK 2 /* close-on-fork flag */ 381 381 #endif 382 382 ··· 394 394 #define F_OFD_LOCK 0x400 /* Use "OFD" semantics for lock */ 395 395 #endif 396 396 397 - #if PRIVATE 397 + #ifdef PRIVATE 398 398 /* 399 399 * ISOCHRONOUS attempts to sustain a minimum platform-dependent throughput 400 400 * for the duration of the I/O delivered to the driver.
+1 -1
platform-include/xpc/availability.h
··· 110 110 #define XPC_SIMULATOR_AVAILABILITY_STRING(version) \ 111 111 "Use of this interface on the iOS Simulator requires that its minimum supported OS be OS X v" version " or later." 112 112 113 - #if __XPC_BUILDING_XPC__ 113 + #ifdef __XPC_BUILDING_XPC__ 114 114 #define __XPC_IOS_SIMULATOR_AVAILABLE_STARTING__MAC_10_7 115 115 #define __XPC_IOS_SIMULATOR_AVAILABLE_STARTING__MAC_10_8 116 116 #define __XPC_IOS_SIMULATOR_AVAILABLE_STARTING__MAC_10_9
+38 -3
platform-include/xpc/base.h
··· 15 15 #define __has_attribute(x) 0 16 16 #endif // !defined(__has_attribute) 17 17 18 + #if !defined(__has_feature) 19 + #define __has_feature(x) 0 20 + #endif // !defined(__has_feature) 21 + 22 + #if !defined(__has_extension) 23 + #define __has_extension(x) 0 24 + #endif // !defined(__has_extension) 25 + 18 26 #if __has_include(<xpc/availability.h>) 19 27 #include <xpc/availability.h> 20 28 #else // __has_include(<xpc/availability.h>) 21 29 #include <Availability.h> 22 - #define __XPC_IOS_SIMULATOR_AVAILABLE_STARTING(version) 23 30 #endif // __has_include(<xpc/availability.h>) 24 31 25 32 #if XPC_SERVICE_MAIN_IN_LIBXPC ··· 61 68 #define XPC_NOINLINE __attribute__((noinline)) 62 69 #define XPC_NOIMPL __attribute__((unavailable)) 63 70 71 + #if __has_attribute(noescape) 72 + #define XPC_NOESCAPE __attribute__((__noescape__)) 73 + #else 74 + #define XPC_NOESCAPE 75 + #endif 76 + 64 77 #if __has_extension(attribute_unavailable_with_message) 65 78 #define XPC_UNAVAILABLE(m) __attribute__((unavailable(m))) 66 79 #else // __has_extension(attribute_unavailable_with_message) ··· 77 90 #else // __clang__ 78 91 #define XPC_DEPRECATED(m) __attribute__((deprecated)) 79 92 #endif // __clang 93 + 94 + #if __XPC_TEST__ 95 + #define XPC_TESTSTATIC 96 + #else // __XPC_TEST__ 97 + #define XPC_TESTSTATIC static 98 + #endif // __XPC_TEST__ 80 99 81 100 #if __has_feature(objc_arc) 82 101 #define XPC_GIVES_REFERENCE __strong ··· 89 108 #else // __has_feature(objc_arc) 90 109 #define XPC_GIVES_REFERENCE 91 110 #define XPC_UNRETAINED 92 - #define XPC_BRIDGE(xo) 111 + #define XPC_BRIDGE(xo) (xo) 93 112 #define XPC_BRIDGEREF_BEGIN(xo) (xo) 94 113 #define XPC_BRIDGEREF_BEGIN_WITH_REF(xo) (xo) 95 114 #define XPC_BRIDGEREF_MIDDLE(xo) (xo) ··· 158 177 #define XPC_DEPRECATED 159 178 /*! @parseOnly */ 160 179 #define XPC_UNAVAILABLE(m) 161 - #endif // __GNUC__ 180 + /*! @parseOnly */ 181 + #define XPC_NOESCAPE 182 + #endif // __GNUC__ 183 + 184 + #if __has_feature(assume_nonnull) 185 + #define XPC_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") 186 + #define XPC_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") 187 + #else 188 + #define XPC_ASSUME_NONNULL_BEGIN 189 + #define XPC_ASSUME_NONNULL_END 190 + #endif 191 + 192 + #if __has_feature(nullability_on_arrays) 193 + #define XPC_NONNULL_ARRAY _Nonnull 194 + #else 195 + #define XPC_NONNULL_ARRAY 196 + #endif 162 197 163 198 __END_DECLS 164 199
+168 -53
platform-include/xpc/xpc.h
··· 18 18 #include <unistd.h> 19 19 #include <fcntl.h> 20 20 21 + #ifndef __XPC_INDIRECT__ 22 + #define __XPC_INDIRECT__ 23 + #endif // __XPC_INDIRECT__ 24 + 25 + #include <xpc/base.h> 26 + 27 + XPC_ASSUME_NONNULL_BEGIN 21 28 __BEGIN_DECLS 22 29 23 30 #ifndef __OSX_AVAILABLE_STARTING 24 31 #define __OSX_AVAILABLE_STARTING(x, y) 25 32 #endif // __OSX_AVAILABLE_STARTING 26 - 27 - #ifndef __XPC_INDIRECT__ 28 - #define __XPC_INDIRECT__ 29 - #endif // __XPC_INDIRECT__ 30 - 31 - #include <xpc/base.h> 32 33 33 34 #define XPC_API_VERSION 20121012 34 35 ··· 105 106 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 106 107 XPC_EXPORT 107 108 XPC_TYPE(_xpc_type_connection); 108 - //XPC_DECL(xpc_connection); 109 - typedef xpc_object_t xpc_connection_t; 109 + XPC_DECL(xpc_connection); 110 110 111 111 /*! 112 112 * @typedef xpc_connection_handler_t ··· 320 320 XPC_EXPORT 321 321 const char *const _xpc_event_key_name; 322 322 323 + XPC_ASSUME_NONNULL_END 323 324 #ifndef __XPC_BUILDING_XPC__ 324 325 #include <xpc/endpoint.h> 325 326 #include <xpc/debug.h> ··· 329 330 #endif // __BLOCKS__ 330 331 #undef __XPC_INDIRECT__ 331 332 #include <launch.h> 332 - #endif // __XPC_BUILDING_XPC__ 333 + #endif // __XPC_BUILDING_XPC__ 334 + XPC_ASSUME_NONNULL_BEGIN 333 335 334 336 #pragma mark XPC Object Protocol 335 337 /*! ··· 423 425 */ 424 426 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 425 427 XPC_EXPORT XPC_NONNULL_ALL XPC_WARN_RESULT XPC_RETURNS_RETAINED 426 - xpc_object_t 428 + xpc_object_t _Nullable 427 429 xpc_copy(xpc_object_t object); 428 430 429 431 /*! ··· 732 734 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 733 735 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT 734 736 xpc_object_t 735 - xpc_data_create(const void *bytes, size_t length); 737 + xpc_data_create(const void * _Nullable bytes, size_t length); 736 738 737 739 /*! 738 740 * @function xpc_data_create_with_dispatch_data ··· 791 793 */ 792 794 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 793 795 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 794 - const void * 796 + const void * _Nullable 795 797 xpc_data_get_bytes_ptr(xpc_object_t xdata); 796 798 797 799 /*! ··· 922 924 */ 923 925 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 924 926 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 925 - const char * 927 + const char * _Nullable 926 928 xpc_string_get_string_ptr(xpc_object_t xstring); 927 929 928 930 #pragma mark UUID ··· 940 942 * A new UUID object. 941 943 */ 942 944 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 943 - XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT 945 + XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL1 944 946 xpc_object_t 945 - xpc_uuid_create(const uuid_t uuid); 947 + xpc_uuid_create(const uuid_t XPC_NONNULL_ARRAY uuid); 946 948 947 949 /*! 948 950 * @function xpc_uuid_get_bytes ··· 960 962 */ 961 963 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 962 964 XPC_EXPORT XPC_NONNULL1 963 - const uint8_t * 965 + const uint8_t * _Nullable 964 966 xpc_uuid_get_bytes(xpc_object_t xuuid); 965 967 966 968 #pragma mark File Descriptors ··· 994 996 */ 995 997 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 996 998 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT 997 - xpc_object_t 999 + xpc_object_t _Nullable 998 1000 xpc_fd_create(int fd); 999 1001 1000 1002 /*! ··· 1093 1095 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1094 1096 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 1095 1097 size_t 1096 - xpc_shmem_map(xpc_object_t xshmem, void **region); 1098 + xpc_shmem_map(xpc_object_t xshmem, void * _Nullable * _Nonnull region); 1097 1099 1098 1100 #pragma mark Array 1099 1101 /*! ··· 1110 1112 * A Boolean indicating whether iteration should continue. 1111 1113 */ 1112 1114 #ifdef __BLOCKS__ 1113 - typedef bool (^xpc_array_applier_t)(size_t index, xpc_object_t value); 1115 + typedef bool (^xpc_array_applier_t)(size_t index, xpc_object_t _Nonnull value); 1114 1116 #endif // __BLOCKS__ 1115 1117 1116 1118 /*! ··· 1141 1143 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1142 1144 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT 1143 1145 xpc_object_t 1144 - xpc_array_create(const xpc_object_t *objects, size_t count); 1146 + xpc_array_create(const xpc_object_t _Nonnull * _Nullable objects, size_t count); 1145 1147 1146 1148 /*! 1147 1149 * @function xpc_array_set_value ··· 1252 1254 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1253 1255 XPC_EXPORT XPC_NONNULL_ALL 1254 1256 bool 1255 - xpc_array_apply(xpc_object_t xarray, xpc_array_applier_t applier); 1257 + xpc_array_apply(xpc_object_t xarray, XPC_NOESCAPE xpc_array_applier_t applier); 1256 1258 #endif // __BLOCKS__ 1257 1259 1258 1260 #pragma mark Array Primitive Setters ··· 1464 1466 * {@link xpc_array_get_value()}. 1465 1467 */ 1466 1468 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1467 - XPC_EXPORT XPC_NONNULL1 1469 + XPC_EXPORT XPC_NONNULL1 XPC_NONNULL3 1468 1470 void 1469 - xpc_array_set_uuid(xpc_object_t xarray, size_t index, const uuid_t uuid); 1471 + xpc_array_set_uuid(xpc_object_t xarray, size_t index, 1472 + const uuid_t XPC_NONNULL_ARRAY uuid); 1470 1473 1471 1474 /*! 1472 1475 * @function xpc_array_set_fd ··· 1514 1517 * {@link xpc_array_get_value()}. The connection is NOT retained by the array. 1515 1518 */ 1516 1519 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1517 - XPC_EXPORT XPC_NONNULL1 1520 + XPC_EXPORT XPC_NONNULL1 XPC_NONNULL3 1518 1521 void 1519 1522 xpc_array_set_connection(xpc_object_t xarray, size_t index, 1520 1523 xpc_connection_t connection); ··· 1659 1662 */ 1660 1663 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1661 1664 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 1662 - const void * 1663 - xpc_array_get_data(xpc_object_t xarray, size_t index, size_t *length); 1665 + const void * _Nullable 1666 + xpc_array_get_data(xpc_object_t xarray, size_t index, 1667 + size_t * _Nullable length); 1664 1668 1665 1669 /*! 1666 1670 * @function xpc_array_get_string ··· 1682 1686 */ 1683 1687 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1684 1688 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 1685 - const char * 1689 + const char * _Nullable 1686 1690 xpc_array_get_string(xpc_object_t xarray, size_t index); 1687 1691 1688 1692 /*! ··· 1706 1710 */ 1707 1711 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1708 1712 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 1709 - const uint8_t * 1713 + const uint8_t * _Nullable 1710 1714 xpc_array_get_uuid(xpc_object_t xarray, size_t index); 1711 1715 1712 1716 /*! ··· 1758 1762 */ 1759 1763 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1760 1764 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL1 1761 - xpc_connection_t 1765 + xpc_connection_t _Nullable 1762 1766 xpc_array_create_connection(xpc_object_t xarray, size_t index); 1763 1767 1768 + /*! 1769 + * @function xpc_array_get_dictionary 1770 + * 1771 + * @abstract 1772 + * Returns the dictionary at the specified index in the array. 1773 + * 1774 + * @param xarray 1775 + * The array object which is to be examined. 1776 + * 1777 + * @param index 1778 + * The index of the value to obtain. This value must lie within the range of 1779 + * indexes as specified in xpc_array_set_value(). 1780 + * 1781 + * @result 1782 + * The object at the specified index within the array or NULL if the given 1783 + * object was not an XPC array or if the the value at the specified index was 1784 + * not a dictionary. 1785 + * 1786 + * @discussion 1787 + * This method does not grant the caller a reference to the underlying object, 1788 + * and thus the caller is not responsible for releasing the object. 1789 + */ 1790 + __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0) 1791 + XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 1792 + xpc_object_t _Nullable 1793 + xpc_array_get_dictionary(xpc_object_t self, size_t index); 1794 + 1795 + /*! 1796 + * @function xpc_array_get_array 1797 + * 1798 + * @abstract 1799 + * Returns the array at the specified index in the array. 1800 + * 1801 + * @param xarray 1802 + * The array object which is to be examined. 1803 + * 1804 + * @param index 1805 + * The index of the value to obtain. This value must lie within the range of 1806 + * indexes as specified in xpc_array_set_value(). 1807 + * 1808 + * @result 1809 + * The object at the specified index within the array or NULL if the given 1810 + * object was not an XPC array or if the the value at the specified index was 1811 + * not an array. 1812 + * 1813 + * @discussion 1814 + * This method does not grant the caller a reference to the underlying object, 1815 + * and thus the caller is not responsible for releasing the object. 1816 + */ 1817 + __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0) 1818 + XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 1819 + xpc_object_t _Nullable 1820 + xpc_array_get_array(xpc_object_t self, size_t index); 1821 + 1764 1822 #pragma mark Dictionary 1765 1823 /*! 1766 1824 * @typedef xpc_dictionary_applier_t ··· 1776 1834 * A Boolean indicating whether iteration should continue. 1777 1835 */ 1778 1836 #ifdef __BLOCKS__ 1779 - typedef bool (^xpc_dictionary_applier_t)(const char *key, xpc_object_t value); 1837 + typedef bool (^xpc_dictionary_applier_t)(const char * _Nonnull key, 1838 + xpc_object_t _Nonnull value); 1780 1839 #endif // __BLOCKS__ 1781 1840 1782 1841 /*! ··· 1789 1848 * @param keys 1790 1849 * An array of C-strings that are to be the keys for the values to be inserted. 1791 1850 * Each element of this array is copied into the dictionary's internal storage. 1792 - * If any element of this array is NULL, the behavior is undefined. 1851 + * Elements of this array may NOT be NULL. 1793 1852 * 1794 1853 * @param values 1795 1854 * A C-array that is parallel to the array of keys, consisting of objects that ··· 1812 1871 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1813 1872 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT 1814 1873 xpc_object_t 1815 - xpc_dictionary_create(const char * const *keys, const xpc_object_t *values, 1816 - size_t count); 1874 + xpc_dictionary_create(const char * _Nonnull const * _Nullable keys, 1875 + const xpc_object_t _Nullable * _Nullable values, size_t count); 1817 1876 1818 1877 /*! 1819 1878 * @function xpc_dictionary_create_reply ··· 1837 1896 */ 1838 1897 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1839 1898 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL_ALL 1840 - xpc_object_t 1899 + xpc_object_t _Nullable 1841 1900 xpc_dictionary_create_reply(xpc_object_t original); 1842 1901 1843 1902 /*! ··· 1862 1921 XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 1863 1922 void 1864 1923 xpc_dictionary_set_value(xpc_object_t xdict, const char *key, 1865 - xpc_object_t value); 1924 + xpc_object_t _Nullable value); 1866 1925 1867 1926 /*! 1868 1927 * @function xpc_dictionary_get_value ··· 1887 1946 */ 1888 1947 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1889 1948 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 XPC_NONNULL2 1890 - xpc_object_t 1949 + xpc_object_t _Nullable 1891 1950 xpc_dictionary_get_value(xpc_object_t xdict, const char *key); 1892 1951 1893 1952 /*! ··· 1935 1994 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1936 1995 XPC_EXPORT XPC_NONNULL_ALL 1937 1996 bool 1938 - xpc_dictionary_apply(xpc_object_t xdict, xpc_dictionary_applier_t applier); 1997 + xpc_dictionary_apply(xpc_object_t xdict, 1998 + XPC_NOESCAPE xpc_dictionary_applier_t applier); 1939 1999 #endif // __BLOCKS__ 1940 2000 1941 2001 /*! ··· 1955 2015 */ 1956 2016 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 1957 2017 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 1958 - xpc_connection_t 2018 + xpc_connection_t _Nullable 1959 2019 xpc_dictionary_get_remote_connection(xpc_object_t xdict); 1960 2020 1961 2021 #pragma mark Dictionary Primitive Setters ··· 2090 2150 * The length of the data. 2091 2151 */ 2092 2152 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2093 - XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 2153 + XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 XPC_NONNULL3 2094 2154 void 2095 2155 xpc_dictionary_set_data(xpc_object_t xdict, const char *key, const void *bytes, 2096 2156 size_t length); ··· 2113 2173 * {@link xpc_dictionary_get_value()}. 2114 2174 */ 2115 2175 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2116 - XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 2176 + XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 XPC_NONNULL3 2117 2177 void 2118 2178 xpc_dictionary_set_string(xpc_object_t xdict, const char *key, 2119 2179 const char *string); ··· 2136 2196 * with {@link xpc_dictionary_get_value()}. 2137 2197 */ 2138 2198 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2139 - XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 2199 + XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 XPC_NONNULL3 2140 2200 void 2141 - xpc_dictionary_set_uuid(xpc_object_t xdict, const char *key, const uuid_t uuid); 2201 + xpc_dictionary_set_uuid(xpc_object_t xdict, const char *key, 2202 + const uuid_t XPC_NONNULL_ARRAY uuid); 2142 2203 2143 2204 /*! 2144 2205 * @function xpc_dictionary_set_fd ··· 2181 2242 * the dictionary. 2182 2243 */ 2183 2244 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2184 - XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 2245 + XPC_EXPORT XPC_NONNULL1 XPC_NONNULL2 XPC_NONNULL3 2185 2246 void 2186 2247 xpc_dictionary_set_connection(xpc_object_t xdict, const char *key, 2187 2248 xpc_connection_t connection); ··· 2320 2381 */ 2321 2382 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2322 2383 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 2323 - const void * 2324 - xpc_dictionary_get_data(xpc_object_t xdict, const char *key, size_t *length); 2384 + const void * _Nullable 2385 + xpc_dictionary_get_data(xpc_object_t xdict, const char *key, 2386 + size_t * _Nullable length); 2325 2387 2326 2388 /*! 2327 2389 * @function xpc_dictionary_get_string ··· 2342 2404 */ 2343 2405 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2344 2406 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 2345 - const char * 2407 + const char * _Nullable 2346 2408 xpc_dictionary_get_string(xpc_object_t xdict, const char *key); 2347 2409 2348 2410 /*! ··· 2364 2426 */ 2365 2427 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2366 2428 XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL1 XPC_NONNULL2 2367 - const uint8_t * 2429 + const uint8_t * _Nullable 2368 2430 xpc_dictionary_get_uuid(xpc_object_t xdict, const char *key); 2369 2431 2370 2432 /*! ··· 2413 2475 */ 2414 2476 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2415 2477 XPC_EXPORT XPC_MALLOC XPC_RETURNS_RETAINED XPC_WARN_RESULT XPC_NONNULL_ALL 2416 - xpc_connection_t 2478 + xpc_connection_t _Nullable 2417 2479 xpc_dictionary_create_connection(xpc_object_t xdict, const char *key); 2418 2480 2481 + /*! 2482 + * @function xpc_dictionary_get_dictionary 2483 + * 2484 + * @abstract 2485 + * Returns the dictionary value for the specified key. 2486 + * 2487 + * @param xdict 2488 + * The dictionary object which is to be examined. 2489 + * 2490 + * @param key 2491 + * The key whose value is to be obtained. 2492 + * 2493 + * @result 2494 + * The object for the specified key within the dictionary. NULL if there is no 2495 + * value associated with the specified key, if the given object was not an 2496 + * XPC dictionary, or if the object for the specified key is not a dictionary. 2497 + * 2498 + * @discussion 2499 + * This method does not grant the caller a reference to the underlying object, 2500 + * and thus the caller is not responsible for releasing the object. 2501 + */ 2502 + __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0) 2503 + XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 2504 + xpc_object_t _Nullable 2505 + xpc_dictionary_get_dictionary(xpc_object_t self, const char *key); 2506 + 2507 + /*! 2508 + * @function xpc_dictionary_get_array 2509 + * 2510 + * @abstract 2511 + * Returns the array value for the specified key. 2512 + * 2513 + * @param xdict 2514 + * The dictionary object which is to be examined. 2515 + * 2516 + * @param key 2517 + * The key whose value is to be obtained. 2518 + * 2519 + * @result 2520 + * The object for the specified key within the dictionary. NULL if there is no 2521 + * value associated with the specified key, if the given object was not an 2522 + * XPC dictionary, or if the object for the specified key is not an array. 2523 + * 2524 + * @discussion 2525 + * This method does not grant the caller a reference to the underlying object, 2526 + * and thus the caller is not responsible for releasing the object. 2527 + */ 2528 + __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0) 2529 + XPC_EXPORT XPC_WARN_RESULT XPC_NONNULL_ALL 2530 + xpc_object_t _Nullable 2531 + xpc_dictionary_get_array(xpc_object_t self, const char *key); 2532 + 2419 2533 #pragma mark Runtime 2420 2534 /*! 2421 2535 * @function xpc_main ··· 2467 2581 * and xpc_transaction_end() to inform the XPC runtime about activity that 2468 2582 * occurs outside of this common pattern. 2469 2583 * 2470 - * When the XPC runtime has determined that the service should exit, the event 2471 - * handlers for all active peer connections will receive 2584 + * On macOS, when the XPC runtime has determined that the service should exit, 2585 + * the event handlers for all active peer connections will receive 2472 2586 * {@link XPC_ERROR_TERMINATION_IMMINENT} as an indication that they should 2473 2587 * unwind their existing transactions. After this error is delivered to a 2474 - * connection's event handler, no more messages will be delivered to the 2588 + * connection's event handler, no more messages will be delivered to the 2475 2589 * connection. 2476 2590 */ 2477 2591 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) ··· 2523 2637 __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0) 2524 2638 XPC_EXPORT XPC_NONNULL1 XPC_NONNULL3 2525 2639 void 2526 - xpc_set_event_stream_handler(const char *stream, dispatch_queue_t targetq, 2527 - xpc_handler_t handler); 2640 + xpc_set_event_stream_handler(const char *stream, 2641 + dispatch_queue_t _Nullable targetq, xpc_handler_t handler); 2528 2642 #endif // __BLOCKS__ 2529 2643 2530 2644 __END_DECLS 2645 + XPC_ASSUME_NONNULL_END 2531 2646 2532 2647 #endif // __XPC_H__
+1
src/libunwind/include/pthread_machdep.h
··· 1 + ../System/pthread_machdep.h
+1
src/sandbox/include/sandbox/private.h
··· 1 + ../../private.h
+1
src/sandbox/include/sandbox/sandbox.h
··· 1 + ../../sandbox.h
+1
src/sandbox/private.h
··· 1 + #include <sandbox/sandbox.h>