peachsim 0.1.1667 → 0.1.1674
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/bridge-flow-runner.ts +4 -1
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/diagnose.ts +1 -19
- package/cli/commands/inspect/settling.ts +37 -4
- package/cli/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- package/cli/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +7 -36
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +557 -158
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +5098 -7344
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +602 -152
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +688 -194
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +247 -11
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +155 -5
- package/dist-lib/native-app-identity-project.cjs +43 -5
- package/dist-lib/native-app-identity-project.mjs +43 -5
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +73 -27
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +563 -183
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +964 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +38 -5
- package/dist-lib/sdk.mjs +38 -5
- package/dist-lib/skills.cjs +1031 -530
- package/dist-lib/swift-compile.cjs +298 -86
- package/dist-lib/swift-compile.mjs +298 -86
- package/dist-lib/swift-package.cjs +53 -4
- package/dist-lib/swift-package.mjs +52 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +25 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +603 -114
- package/dist-lib/vite.cjs +65 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +54 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +23 -4
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
- package/sdk/ios/usr/include/_ctype.h +388 -0
- package/sdk/ios/usr/include/_inttypes.h +296 -0
- package/sdk/ios/usr/include/_locale.h +83 -0
- package/sdk/ios/usr/include/_locale_posix2008.h +65 -0
- package/sdk/ios/usr/include/_time.h +207 -0
- package/sdk/ios/usr/include/ctype.h +70 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +69 -6
- package/sdk/ios/usr/include/inttypes.h +35 -0
- package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
- package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
- package/sdk/ios/usr/include/locale.h +59 -0
- package/sdk/ios/usr/include/runetype.h +118 -0
- package/sdk/ios/usr/include/setjmp.h +99 -0
- package/sdk/ios/usr/include/sys/_types/_clock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ct_rune_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_rune_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_time_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_wint_t.h +33 -0
- package/sdk/ios/usr/include/sys/cdefs.h +2 -0
- package/sdk/ios/usr/include/time.h +67 -2
- package/src/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -0
- package/src/host/bridge-host.ts +6 -43
- package/src/host/rolldown-bundle-forward.ts +4 -1
- package/src/launch-deadline.ts +74 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +109 -57
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-host.ts +21 -1
- package/src/swift-objc-compile.ts +7 -3
- package/src/swift-objc-import.ts +191 -27
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-standin.ts +9 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +69 -4
- package/src/swift-standins.ts +4 -1
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +36 -61
- package/src/worker-system-chunks.ts +3 -10
- package/src/xcode-project.ts +5 -5
- package/detox/attempt-events.cjs +0 -914
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2000-2023 Apple Computer, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
#ifndef _OS_OSBYTEORDERMACHINE_H
|
|
30
|
+
#define _OS_OSBYTEORDERMACHINE_H
|
|
31
|
+
|
|
32
|
+
#if !defined(__GNUC__) || (!defined(__i386__) && !defined(__x86_64__) && !defined (__arm__) && !defined(__arm64__))
|
|
33
|
+
|
|
34
|
+
#include <stdint.h>
|
|
35
|
+
|
|
36
|
+
#if !defined(OS_INLINE)
|
|
37
|
+
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
38
|
+
# define OS_INLINE static inline
|
|
39
|
+
# elif defined(__MWERKS__) || defined(__cplusplus)
|
|
40
|
+
# define OS_INLINE static inline
|
|
41
|
+
# else
|
|
42
|
+
# define OS_INLINE static __inline__
|
|
43
|
+
# endif
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
/* Generic byte swapping functions. */
|
|
47
|
+
|
|
48
|
+
OS_INLINE
|
|
49
|
+
uint16_t
|
|
50
|
+
_OSSwapInt16(
|
|
51
|
+
uint16_t data
|
|
52
|
+
)
|
|
53
|
+
{
|
|
54
|
+
return OSSwapConstInt16(data);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
OS_INLINE
|
|
58
|
+
uint32_t
|
|
59
|
+
_OSSwapInt32(
|
|
60
|
+
uint32_t data
|
|
61
|
+
)
|
|
62
|
+
{
|
|
63
|
+
return OSSwapConstInt32(data);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
OS_INLINE
|
|
67
|
+
uint64_t
|
|
68
|
+
_OSSwapInt64(
|
|
69
|
+
uint64_t data
|
|
70
|
+
)
|
|
71
|
+
{
|
|
72
|
+
return OSSwapConstInt64(data);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Functions for byte reversed loads. */
|
|
76
|
+
|
|
77
|
+
OS_INLINE
|
|
78
|
+
uint16_t
|
|
79
|
+
OSReadSwapInt16(
|
|
80
|
+
const volatile void * base,
|
|
81
|
+
uintptr_t byteOffset
|
|
82
|
+
)
|
|
83
|
+
{
|
|
84
|
+
uint16_t data = *(volatile uint16_t *)((uintptr_t)base + byteOffset);
|
|
85
|
+
return _OSSwapInt16(data);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
OS_INLINE
|
|
89
|
+
uint32_t
|
|
90
|
+
OSReadSwapInt32(
|
|
91
|
+
const volatile void * base,
|
|
92
|
+
uintptr_t byteOffset
|
|
93
|
+
)
|
|
94
|
+
{
|
|
95
|
+
uint32_t data = *(volatile uint32_t *)((uintptr_t)base + byteOffset);
|
|
96
|
+
return _OSSwapInt32(data);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
OS_INLINE
|
|
100
|
+
uint64_t
|
|
101
|
+
OSReadSwapInt64(
|
|
102
|
+
const volatile void * base,
|
|
103
|
+
uintptr_t byteOffset
|
|
104
|
+
)
|
|
105
|
+
{
|
|
106
|
+
uint64_t data = *(volatile uint64_t *)((uintptr_t)base + byteOffset);
|
|
107
|
+
return _OSSwapInt64(data);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Functions for byte reversed stores. */
|
|
111
|
+
|
|
112
|
+
OS_INLINE
|
|
113
|
+
void
|
|
114
|
+
OSWriteSwapInt16(
|
|
115
|
+
volatile void * base,
|
|
116
|
+
uintptr_t byteOffset,
|
|
117
|
+
uint16_t data
|
|
118
|
+
)
|
|
119
|
+
{
|
|
120
|
+
*(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
OS_INLINE
|
|
124
|
+
void
|
|
125
|
+
OSWriteSwapInt32(
|
|
126
|
+
volatile void * base,
|
|
127
|
+
uintptr_t byteOffset,
|
|
128
|
+
uint32_t data
|
|
129
|
+
)
|
|
130
|
+
{
|
|
131
|
+
*(volatile uint32_t *)((uintptr_t)base + byteOffset) = _OSSwapInt32(data);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
OS_INLINE
|
|
135
|
+
void
|
|
136
|
+
OSWriteSwapInt64(
|
|
137
|
+
volatile void * base,
|
|
138
|
+
uintptr_t byteOffset,
|
|
139
|
+
uint64_t data
|
|
140
|
+
)
|
|
141
|
+
{
|
|
142
|
+
*(volatile uint64_t *)((uintptr_t)base + byteOffset) = _OSSwapInt64(data);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#endif /* !defined(__GNUC__) || (!defined(__i386__) && !defined(__x86_64__) && !defined (__arm__) && !defined(__arm64__)) */
|
|
146
|
+
|
|
147
|
+
#endif /* ! _OS_OSBYTEORDERMACHINE_H */
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 1991, 1993
|
|
3
|
+
* The Regents of the University of California. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Redistribution and use in source and binary forms, with or without
|
|
6
|
+
* modification, are permitted provided that the following conditions
|
|
7
|
+
* are met:
|
|
8
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
* notice, this list of conditions and the following disclaimer.
|
|
10
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
* documentation and/or other materials provided with the distribution.
|
|
13
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
14
|
+
* must display the following acknowledgement:
|
|
15
|
+
* This product includes software developed by the University of
|
|
16
|
+
* California, Berkeley and its contributors.
|
|
17
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
18
|
+
* may be used to endorse or promote products derived from this software
|
|
19
|
+
* without specific prior written permission.
|
|
20
|
+
*
|
|
21
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
22
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
23
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
24
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
25
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
26
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
27
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
28
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
29
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
30
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
31
|
+
* SUCH DAMAGE.
|
|
32
|
+
*
|
|
33
|
+
* @(#)locale.h 8.1 (Berkeley) 6/2/93
|
|
34
|
+
* $FreeBSD: /repoman/r/ncvs/src/include/locale.h,v 1.7 2002/10/09 09:19:27 tjr Exp $
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
#ifndef _LOCALE_H_
|
|
38
|
+
#define _LOCALE_H_
|
|
39
|
+
|
|
40
|
+
#include <_bounds.h>
|
|
41
|
+
#include <_locale.h>
|
|
42
|
+
|
|
43
|
+
_LIBC_SINGLE_BY_DEFAULT()
|
|
44
|
+
|
|
45
|
+
#define LC_ALL 0
|
|
46
|
+
#define LC_COLLATE 1
|
|
47
|
+
#define LC_CTYPE 2
|
|
48
|
+
#define LC_MONETARY 3
|
|
49
|
+
#define LC_NUMERIC 4
|
|
50
|
+
#define LC_TIME 5
|
|
51
|
+
#define LC_MESSAGES 6
|
|
52
|
+
|
|
53
|
+
#define _LC_LAST 7 /* marks end */
|
|
54
|
+
|
|
55
|
+
__BEGIN_DECLS
|
|
56
|
+
char *_LIBC_CSTR setlocale(int, const char *);
|
|
57
|
+
__END_DECLS
|
|
58
|
+
|
|
59
|
+
#endif /* _LOCALE_H_ */
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*-
|
|
2
|
+
* Copyright (c) 1993
|
|
3
|
+
* The Regents of the University of California. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This code is derived from software contributed to Berkeley by
|
|
6
|
+
* Paul Borman at Krystal Technologies.
|
|
7
|
+
*
|
|
8
|
+
* Redistribution and use in source and binary forms, with or without
|
|
9
|
+
* modification, are permitted provided that the following conditions
|
|
10
|
+
* are met:
|
|
11
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
12
|
+
* notice, this list of conditions and the following disclaimer.
|
|
13
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
14
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
15
|
+
* documentation and/or other materials provided with the distribution.
|
|
16
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
17
|
+
* must display the following acknowledgement:
|
|
18
|
+
* This product includes software developed by the University of
|
|
19
|
+
* California, Berkeley and its contributors.
|
|
20
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
21
|
+
* may be used to endorse or promote products derived from this software
|
|
22
|
+
* without specific prior written permission.
|
|
23
|
+
*
|
|
24
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
25
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
26
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
27
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
28
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
29
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
30
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
31
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
32
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
33
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
34
|
+
* SUCH DAMAGE.
|
|
35
|
+
*
|
|
36
|
+
* @(#)runetype.h 8.1 (Berkeley) 6/2/93
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
#ifndef _RUNETYPE_H_
|
|
40
|
+
#define _RUNETYPE_H_
|
|
41
|
+
|
|
42
|
+
#include <_bounds.h>
|
|
43
|
+
#include <_types.h>
|
|
44
|
+
|
|
45
|
+
_LIBC_SINGLE_BY_DEFAULT()
|
|
46
|
+
|
|
47
|
+
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
|
|
48
|
+
|
|
49
|
+
#include <sys/_types/_size_t.h>
|
|
50
|
+
#include <sys/_types/_ct_rune_t.h>
|
|
51
|
+
#include <sys/_types/_rune_t.h>
|
|
52
|
+
#include <sys/_types/_wchar_t.h>
|
|
53
|
+
#include <sys/_types/_wint_t.h>
|
|
54
|
+
|
|
55
|
+
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
|
|
56
|
+
|
|
57
|
+
#define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */
|
|
58
|
+
#define _CRMASK (~(_CACHED_RUNES - 1))
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* The lower 8 bits of runetype[] contain the digit value of the rune.
|
|
62
|
+
*/
|
|
63
|
+
typedef struct {
|
|
64
|
+
__darwin_rune_t __min; /* First rune of the range */
|
|
65
|
+
__darwin_rune_t __max; /* Last rune (inclusive) of the range */
|
|
66
|
+
__darwin_rune_t __map; /* What first maps to in maps */
|
|
67
|
+
__uint32_t *_LIBC_UNSAFE_INDEXABLE __types; /* Array of types in range */
|
|
68
|
+
} _RuneEntry;
|
|
69
|
+
|
|
70
|
+
typedef struct {
|
|
71
|
+
int __nranges; /* Number of ranges stored */
|
|
72
|
+
_RuneEntry *_LIBC_COUNT(__nranges) __ranges; /* Pointer to the ranges */
|
|
73
|
+
} _RuneRange;
|
|
74
|
+
|
|
75
|
+
typedef struct {
|
|
76
|
+
char __name[14]; /* CHARCLASS_NAME_MAX = 14 */
|
|
77
|
+
__uint32_t __mask; /* charclass mask */
|
|
78
|
+
} _RuneCharClass;
|
|
79
|
+
|
|
80
|
+
typedef struct {
|
|
81
|
+
char __magic[8]; /* Magic saying what version we are */
|
|
82
|
+
char __encoding[32]; /* ASCII name of this encoding */
|
|
83
|
+
|
|
84
|
+
__darwin_rune_t (*__sgetrune)(const char *_LIBC_COUNT(__n) __string, __darwin_size_t __n, char const *_LIBC_UNSAFE_INDEXABLE /* NULL or within bounds of __string */ *);
|
|
85
|
+
int (*__sputrune)(__darwin_rune_t, char *_LIBC_COUNT(__n) __string, __darwin_size_t __n, char *_LIBC_UNSAFE_INDEXABLE /* NULL or within bounds of __string */ *);
|
|
86
|
+
__darwin_rune_t __invalid_rune; /* Deprecated */
|
|
87
|
+
|
|
88
|
+
__uint32_t __runetype[_CACHED_RUNES];
|
|
89
|
+
__darwin_rune_t __maplower[_CACHED_RUNES];
|
|
90
|
+
__darwin_rune_t __mapupper[_CACHED_RUNES];
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
* The following are to deal with Runes larger than _CACHED_RUNES - 1.
|
|
94
|
+
* Their data is actually contiguous with this structure so as to make
|
|
95
|
+
* it easier to read/write from/to disk.
|
|
96
|
+
*/
|
|
97
|
+
_RuneRange __runetype_ext;
|
|
98
|
+
_RuneRange __maplower_ext;
|
|
99
|
+
_RuneRange __mapupper_ext;
|
|
100
|
+
|
|
101
|
+
void *_LIBC_SIZE(__variable_len) __variable; /* Data which depends on the encoding */
|
|
102
|
+
int __variable_len; /* how long that data is */
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* extra fields to deal with arbitrary character classes
|
|
106
|
+
*/
|
|
107
|
+
int __ncharclasses;
|
|
108
|
+
_RuneCharClass *_LIBC_COUNT(__ncharclasses) __charclasses;
|
|
109
|
+
} _RuneLocale;
|
|
110
|
+
|
|
111
|
+
#define _RUNE_MAGIC_A "RuneMagA" /* Indicates version A of RuneLocale */
|
|
112
|
+
|
|
113
|
+
__BEGIN_DECLS
|
|
114
|
+
extern _RuneLocale _DefaultRuneLocale;
|
|
115
|
+
extern _RuneLocale *_CurrentRuneLocale;
|
|
116
|
+
__END_DECLS
|
|
117
|
+
|
|
118
|
+
#endif /* !_RUNETYPE_H_ */
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. Please obtain a copy of the License at
|
|
10
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this
|
|
11
|
+
* file.
|
|
12
|
+
*
|
|
13
|
+
* The Original Code and all software distributed under the License are
|
|
14
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
15
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
16
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
18
|
+
* Please see the License for the specific language governing rights and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*
|
|
21
|
+
* @APPLE_LICENSE_HEADER_END@
|
|
22
|
+
*/
|
|
23
|
+
#ifndef _BSD_SETJMP_H
|
|
24
|
+
#define _BSD_SETJMP_H
|
|
25
|
+
|
|
26
|
+
#include <sys/cdefs.h>
|
|
27
|
+
#include <Availability.h>
|
|
28
|
+
|
|
29
|
+
#if defined(__x86_64__)
|
|
30
|
+
/*
|
|
31
|
+
* _JBLEN is number of ints required to save the following:
|
|
32
|
+
* rflags, rip, rbp, rsp, rbx, r12, r13, r14, r15... these are 8 bytes each
|
|
33
|
+
* mxcsr, fp control word, sigmask... these are 4 bytes each
|
|
34
|
+
* add 16 ints for future expansion needs...
|
|
35
|
+
*/
|
|
36
|
+
#define _JBLEN ((9 * 2) + 3 + 16)
|
|
37
|
+
typedef int jmp_buf[_JBLEN];
|
|
38
|
+
typedef int sigjmp_buf[_JBLEN + 1];
|
|
39
|
+
|
|
40
|
+
#elif defined(__i386__)
|
|
41
|
+
|
|
42
|
+
/*
|
|
43
|
+
* _JBLEN is number of ints required to save the following:
|
|
44
|
+
* eax, ebx, ecx, edx, edi, esi, ebp, esp, ss, eflags, eip,
|
|
45
|
+
* cs, de, es, fs, gs == 16 ints
|
|
46
|
+
* onstack, mask = 2 ints
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
#define _JBLEN (18)
|
|
50
|
+
typedef int jmp_buf[_JBLEN];
|
|
51
|
+
typedef int sigjmp_buf[_JBLEN + 1];
|
|
52
|
+
|
|
53
|
+
#elif defined(__arm__) && !defined(__ARM_ARCH_7K__)
|
|
54
|
+
/*
|
|
55
|
+
* _JBLEN is number of ints required to save the following:
|
|
56
|
+
* r4-r8, r10, fp, sp, lr, sig == 10 register_t sized
|
|
57
|
+
* s16-s31 == 16 register_t sized + 1 int for FSTMX
|
|
58
|
+
* 1 extra int for future use
|
|
59
|
+
*/
|
|
60
|
+
#define _JBLEN (10 + 16 + 2)
|
|
61
|
+
#define _JBLEN_MAX _JBLEN
|
|
62
|
+
|
|
63
|
+
typedef int jmp_buf[_JBLEN];
|
|
64
|
+
typedef int sigjmp_buf[_JBLEN + 1];
|
|
65
|
+
|
|
66
|
+
#elif defined(__arm64__) || defined(__ARM_ARCH_7K__)
|
|
67
|
+
/*
|
|
68
|
+
* _JBLEN is the number of ints required to save the following:
|
|
69
|
+
* r21-r29, sp, fp, lr == 12 registers, 8 bytes each. d8-d15
|
|
70
|
+
* are another 8 registers, each 8 bytes long. (aapcs64 specifies
|
|
71
|
+
* that only 64-bit versions of FP registers need to be saved).
|
|
72
|
+
* Finally, two 8-byte fields for signal handling purposes.
|
|
73
|
+
*/
|
|
74
|
+
#define _JBLEN ((14 + 8 + 2) * 2)
|
|
75
|
+
|
|
76
|
+
typedef int jmp_buf[_JBLEN];
|
|
77
|
+
typedef int sigjmp_buf[_JBLEN + 1];
|
|
78
|
+
|
|
79
|
+
#else
|
|
80
|
+
# error Undefined platform for setjmp
|
|
81
|
+
#endif
|
|
82
|
+
|
|
83
|
+
__BEGIN_DECLS
|
|
84
|
+
extern int setjmp(jmp_buf);
|
|
85
|
+
extern void longjmp(jmp_buf, int) __dead2;
|
|
86
|
+
|
|
87
|
+
#ifndef _ANSI_SOURCE
|
|
88
|
+
int _setjmp(jmp_buf);
|
|
89
|
+
void _longjmp(jmp_buf, int) __dead2;
|
|
90
|
+
int sigsetjmp(sigjmp_buf, int);
|
|
91
|
+
void siglongjmp(sigjmp_buf, int) __dead2;
|
|
92
|
+
#endif /* _ANSI_SOURCE */
|
|
93
|
+
|
|
94
|
+
#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
|
|
95
|
+
void longjmperror(void);
|
|
96
|
+
#endif /* neither ANSI nor POSIX */
|
|
97
|
+
__END_DECLS
|
|
98
|
+
|
|
99
|
+
#endif /* _BSD_SETJMP_H */
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
#ifndef _CLOCK_T
|
|
29
|
+
#define _CLOCK_T
|
|
30
|
+
#include <machine/types.h> /* __darwin_clock_t */
|
|
31
|
+
typedef __darwin_clock_t clock_t;
|
|
32
|
+
#endif /* _CLOCK_T */
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2012 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
#ifndef _CT_RUNE_T
|
|
30
|
+
#define _CT_RUNE_T
|
|
31
|
+
#include <machine/_types.h> /* __darwin_ct_rune_t */
|
|
32
|
+
typedef __darwin_ct_rune_t ct_rune_t;
|
|
33
|
+
#endif /* _CT_RUNE_T */
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2012 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
#ifndef _RUNE_T
|
|
29
|
+
#define _RUNE_T
|
|
30
|
+
#include <machine/_types.h> /* __darwin_rune_t */
|
|
31
|
+
typedef __darwin_rune_t rune_t;
|
|
32
|
+
#endif /* _RUNE_T */
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
#ifndef _TIME_T
|
|
29
|
+
#define _TIME_T
|
|
30
|
+
#include <machine/types.h> /* __darwin_time_t */
|
|
31
|
+
typedef __darwin_time_t time_t;
|
|
32
|
+
#endif /* _TIME_T */
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2012 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
#ifndef _WINT_T
|
|
30
|
+
#define _WINT_T
|
|
31
|
+
#include <machine/_types.h> /* __darwin_wint_t */
|
|
32
|
+
typedef __darwin_wint_t wint_t;
|
|
33
|
+
#endif /* _WINT_T */
|
|
@@ -46,6 +46,8 @@
|
|
|
46
46
|
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
|
|
47
47
|
#define __deprecated_enum_msg(_msg) __deprecated_msg(_msg)
|
|
48
48
|
#define __unavailable __attribute__((__unavailable__))
|
|
49
|
+
#define __dead2 __attribute__((__noreturn__))
|
|
50
|
+
#define __pure2 __attribute__((__const__))
|
|
49
51
|
#if __STDC_VERSION__ < 199901
|
|
50
52
|
#define __restrict
|
|
51
53
|
#else
|
|
@@ -1,2 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2000, 2023 Apple Computer, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. Please obtain a copy of the License at
|
|
10
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this
|
|
11
|
+
* file.
|
|
12
|
+
*
|
|
13
|
+
* The Original Code and all software distributed under the License are
|
|
14
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
15
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
16
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
18
|
+
* Please see the License for the specific language governing rights and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*
|
|
21
|
+
* @APPLE_LICENSE_HEADER_END@
|
|
22
|
+
*/
|
|
23
|
+
/*
|
|
24
|
+
* Copyright (c) 1989, 1993
|
|
25
|
+
* The Regents of the University of California. All rights reserved.
|
|
26
|
+
* (c) UNIX System Laboratories, Inc.
|
|
27
|
+
* All or some portions of this file are derived from material licensed
|
|
28
|
+
* to the University of California by American Telephone and Telegraph
|
|
29
|
+
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
|
30
|
+
* the permission of UNIX System Laboratories, Inc.
|
|
31
|
+
*
|
|
32
|
+
* Redistribution and use in source and binary forms, with or without
|
|
33
|
+
* modification, are permitted provided that the following conditions
|
|
34
|
+
* are met:
|
|
35
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
36
|
+
* notice, this list of conditions and the following disclaimer.
|
|
37
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
38
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
39
|
+
* documentation and/or other materials provided with the distribution.
|
|
40
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
41
|
+
* must display the following acknowledgement:
|
|
42
|
+
* This product includes software developed by the University of
|
|
43
|
+
* California, Berkeley and its contributors.
|
|
44
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
45
|
+
* may be used to endorse or promote products derived from this software
|
|
46
|
+
* without specific prior written permission.
|
|
47
|
+
*
|
|
48
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
49
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
50
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
51
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
52
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
53
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
54
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
55
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
56
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
57
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
58
|
+
* SUCH DAMAGE.
|
|
59
|
+
*
|
|
60
|
+
* @(#)time.h 8.3 (Berkeley) 1/21/94
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
#include <_time.h>
|
|
64
|
+
|
|
65
|
+
#ifdef _USE_EXTENDED_LOCALES_
|
|
66
|
+
#include <xlocale/_time.h>
|
|
67
|
+
#endif /* _USE_EXTENDED_LOCALES_ */
|