Build Information
Failed to build swift-posix, reference 0.0.1 (6feac9), with Swift 6.3 for Wasm on 19 Aug 2026 09:03:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
49 | private let _EEXIST = EEXIST
50 | private let _EXDEV = EXDEV
51 | private let _ENODEV = ENODEV
| `- error: cannot find 'ENODEV' in scope
52 | private let _ENOTDIR = ENOTDIR
53 | private let _EISDIR = EISDIR
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:52:24: error: cannot find 'ENOTDIR' in scope
50 | private let _EXDEV = EXDEV
51 | private let _ENODEV = ENODEV
52 | private let _ENOTDIR = ENOTDIR
| `- error: cannot find 'ENOTDIR' in scope
53 | private let _EISDIR = EISDIR
54 | private let _EINVAL = EINVAL
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:53:23: error: cannot find 'EISDIR' in scope
51 | private let _ENODEV = ENODEV
52 | private let _ENOTDIR = ENOTDIR
53 | private let _EISDIR = EISDIR
| `- error: cannot find 'EISDIR' in scope
54 | private let _EINVAL = EINVAL
55 | private let _ENFILE = ENFILE
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:54:23: error: cannot find 'EINVAL' in scope
52 | private let _ENOTDIR = ENOTDIR
53 | private let _EISDIR = EISDIR
54 | private let _EINVAL = EINVAL
| `- error: cannot find 'EINVAL' in scope
55 | private let _ENFILE = ENFILE
56 | private let _EMFILE = EMFILE
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:55:23: error: cannot find 'ENFILE' in scope
53 | private let _EISDIR = EISDIR
54 | private let _EINVAL = EINVAL
55 | private let _ENFILE = ENFILE
| `- error: cannot find 'ENFILE' in scope
56 | private let _EMFILE = EMFILE
57 | private let _ENOTTY = ENOTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:56:23: error: cannot find 'EMFILE' in scope
54 | private let _EINVAL = EINVAL
55 | private let _ENFILE = ENFILE
56 | private let _EMFILE = EMFILE
| `- error: cannot find 'EMFILE' in scope
57 | private let _ENOTTY = ENOTTY
58 | private let _ETXTBSY = ETXTBSY
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:57:23: error: cannot find 'ENOTTY' in scope
55 | private let _ENFILE = ENFILE
56 | private let _EMFILE = EMFILE
57 | private let _ENOTTY = ENOTTY
| `- error: cannot find 'ENOTTY' in scope
58 | private let _ETXTBSY = ETXTBSY
59 | private let _EFBIG = EFBIG
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:58:24: error: cannot find 'ETXTBSY' in scope
56 | private let _EMFILE = EMFILE
57 | private let _ENOTTY = ENOTTY
58 | private let _ETXTBSY = ETXTBSY
| `- error: cannot find 'ETXTBSY' in scope
59 | private let _EFBIG = EFBIG
60 | private let _ENOSPC = ENOSPC
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:59:22: error: cannot find 'EFBIG' in scope
57 | private let _ENOTTY = ENOTTY
58 | private let _ETXTBSY = ETXTBSY
59 | private let _EFBIG = EFBIG
| `- error: cannot find 'EFBIG' in scope
60 | private let _ENOSPC = ENOSPC
61 | private let _ESPIPE = ESPIPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:60:23: error: cannot find 'ENOSPC' in scope
58 | private let _ETXTBSY = ETXTBSY
59 | private let _EFBIG = EFBIG
60 | private let _ENOSPC = ENOSPC
| `- error: cannot find 'ENOSPC' in scope
61 | private let _ESPIPE = ESPIPE
62 | private let _EROFS = EROFS
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:61:23: error: cannot find 'ESPIPE' in scope
59 | private let _EFBIG = EFBIG
60 | private let _ENOSPC = ENOSPC
61 | private let _ESPIPE = ESPIPE
| `- error: cannot find 'ESPIPE' in scope
62 | private let _EROFS = EROFS
63 | private let _EMLINK = EMLINK
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:62:22: error: cannot find 'EROFS' in scope
60 | private let _ENOSPC = ENOSPC
61 | private let _ESPIPE = ESPIPE
62 | private let _EROFS = EROFS
| `- error: cannot find 'EROFS' in scope
63 | private let _EMLINK = EMLINK
64 | private let _EPIPE = EPIPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:63:23: error: cannot find 'EMLINK' in scope
61 | private let _ESPIPE = ESPIPE
62 | private let _EROFS = EROFS
63 | private let _EMLINK = EMLINK
| `- error: cannot find 'EMLINK' in scope
64 | private let _EPIPE = EPIPE
65 | private let _EDOM = EDOM
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:64:22: error: cannot find 'EPIPE' in scope
62 | private let _EROFS = EROFS
63 | private let _EMLINK = EMLINK
64 | private let _EPIPE = EPIPE
| `- error: cannot find 'EPIPE' in scope
65 | private let _EDOM = EDOM
66 | private let _ERANGE = ERANGE
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:65:21: error: cannot find 'EDOM' in scope
63 | private let _EMLINK = EMLINK
64 | private let _EPIPE = EPIPE
65 | private let _EDOM = EDOM
| `- error: cannot find 'EDOM' in scope
66 | private let _ERANGE = ERANGE
67 | private let _EDEADLK = EDEADLK
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:66:23: error: cannot find 'ERANGE' in scope
64 | private let _EPIPE = EPIPE
65 | private let _EDOM = EDOM
66 | private let _ERANGE = ERANGE
| `- error: cannot find 'ERANGE' in scope
67 | private let _EDEADLK = EDEADLK
68 | private let _ENAMETOOLONG = ENAMETOOLONG
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:67:24: error: cannot find 'EDEADLK' in scope
65 | private let _EDOM = EDOM
66 | private let _ERANGE = ERANGE
67 | private let _EDEADLK = EDEADLK
| `- error: cannot find 'EDEADLK' in scope
68 | private let _ENAMETOOLONG = ENAMETOOLONG
69 | private let _ENOLCK = ENOLCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:68:29: error: cannot find 'ENAMETOOLONG' in scope
66 | private let _ERANGE = ERANGE
67 | private let _EDEADLK = EDEADLK
68 | private let _ENAMETOOLONG = ENAMETOOLONG
| `- error: cannot find 'ENAMETOOLONG' in scope
69 | private let _ENOLCK = ENOLCK
70 | private let _ENOSYS = ENOSYS
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:69:23: error: cannot find 'ENOLCK' in scope
67 | private let _EDEADLK = EDEADLK
68 | private let _ENAMETOOLONG = ENAMETOOLONG
69 | private let _ENOLCK = ENOLCK
| `- error: cannot find 'ENOLCK' in scope
70 | private let _ENOSYS = ENOSYS
71 | private let _ENOTEMPTY = ENOTEMPTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:70:23: error: cannot find 'ENOSYS' in scope
68 | private let _ENAMETOOLONG = ENAMETOOLONG
69 | private let _ENOLCK = ENOLCK
70 | private let _ENOSYS = ENOSYS
| `- error: cannot find 'ENOSYS' in scope
71 | private let _ENOTEMPTY = ENOTEMPTY
72 | private let _ELOOP = ELOOP
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:71:26: error: cannot find 'ENOTEMPTY' in scope
69 | private let _ENOLCK = ENOLCK
70 | private let _ENOSYS = ENOSYS
71 | private let _ENOTEMPTY = ENOTEMPTY
| `- error: cannot find 'ENOTEMPTY' in scope
72 | private let _ELOOP = ELOOP
73 | private let _EWOULDBLOCK = EWOULDBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:72:22: error: cannot find 'ELOOP' in scope
70 | private let _ENOSYS = ENOSYS
71 | private let _ENOTEMPTY = ENOTEMPTY
72 | private let _ELOOP = ELOOP
| `- error: cannot find 'ELOOP' in scope
73 | private let _EWOULDBLOCK = EWOULDBLOCK
74 | private let _ENOTSUP = ENOTSUP
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:73:28: error: cannot find 'EWOULDBLOCK' in scope
71 | private let _ENOTEMPTY = ENOTEMPTY
72 | private let _ELOOP = ELOOP
73 | private let _EWOULDBLOCK = EWOULDBLOCK
| `- error: cannot find 'EWOULDBLOCK' in scope
74 | private let _ENOTSUP = ENOTSUP
75 | private let _EOPNOTSUPP = EOPNOTSUPP
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:74:24: error: cannot find 'ENOTSUP' in scope
72 | private let _ELOOP = ELOOP
73 | private let _EWOULDBLOCK = EWOULDBLOCK
74 | private let _ENOTSUP = ENOTSUP
| `- error: cannot find 'ENOTSUP' in scope
75 | private let _EOPNOTSUPP = EOPNOTSUPP
76 | private let _ETIMEDOUT = ETIMEDOUT
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:75:27: error: cannot find 'EOPNOTSUPP' in scope
73 | private let _EWOULDBLOCK = EWOULDBLOCK
74 | private let _ENOTSUP = ENOTSUP
75 | private let _EOPNOTSUPP = EOPNOTSUPP
| `- error: cannot find 'EOPNOTSUPP' in scope
76 | private let _ETIMEDOUT = ETIMEDOUT
77 | private let _EINPROGRESS = EINPROGRESS
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:76:26: error: cannot find 'ETIMEDOUT' in scope
74 | private let _ENOTSUP = ENOTSUP
75 | private let _EOPNOTSUPP = EOPNOTSUPP
76 | private let _ETIMEDOUT = ETIMEDOUT
| `- error: cannot find 'ETIMEDOUT' in scope
77 | private let _EINPROGRESS = EINPROGRESS
78 | private let _EALREADY = EALREADY
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:77:28: error: cannot find 'EINPROGRESS' in scope
75 | private let _EOPNOTSUPP = EOPNOTSUPP
76 | private let _ETIMEDOUT = ETIMEDOUT
77 | private let _EINPROGRESS = EINPROGRESS
| `- error: cannot find 'EINPROGRESS' in scope
78 | private let _EALREADY = EALREADY
79 | private let _ECONNREFUSED = ECONNREFUSED
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:78:25: error: cannot find 'EALREADY' in scope
76 | private let _ETIMEDOUT = ETIMEDOUT
77 | private let _EINPROGRESS = EINPROGRESS
78 | private let _EALREADY = EALREADY
| `- error: cannot find 'EALREADY' in scope
79 | private let _ECONNREFUSED = ECONNREFUSED
80 | private let _ECONNRESET = ECONNRESET
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:79:29: error: cannot find 'ECONNREFUSED' in scope
77 | private let _EINPROGRESS = EINPROGRESS
78 | private let _EALREADY = EALREADY
79 | private let _ECONNREFUSED = ECONNREFUSED
| `- error: cannot find 'ECONNREFUSED' in scope
80 | private let _ECONNRESET = ECONNRESET
81 | private let _EADDRINUSE = EADDRINUSE
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:80:27: error: cannot find 'ECONNRESET' in scope
78 | private let _EALREADY = EALREADY
79 | private let _ECONNREFUSED = ECONNREFUSED
80 | private let _ECONNRESET = ECONNRESET
| `- error: cannot find 'ECONNRESET' in scope
81 | private let _EADDRINUSE = EADDRINUSE
82 | private let _EOVERFLOW = EOVERFLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:81:27: error: cannot find 'EADDRINUSE' in scope
79 | private let _ECONNREFUSED = ECONNREFUSED
80 | private let _ECONNRESET = ECONNRESET
81 | private let _EADDRINUSE = EADDRINUSE
| `- error: cannot find 'EADDRINUSE' in scope
82 | private let _EOVERFLOW = EOVERFLOW
83 | private let _EILSEQ = EILSEQ
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:82:26: error: cannot find 'EOVERFLOW' in scope
80 | private let _ECONNRESET = ECONNRESET
81 | private let _EADDRINUSE = EADDRINUSE
82 | private let _EOVERFLOW = EOVERFLOW
| `- error: cannot find 'EOVERFLOW' in scope
83 | private let _EILSEQ = EILSEQ
84 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:83:23: error: cannot find 'EILSEQ' in scope
81 | private let _EADDRINUSE = EADDRINUSE
82 | private let _EOVERFLOW = EOVERFLOW
83 | private let _EILSEQ = EILSEQ
| `- error: cannot find 'EILSEQ' in scope
84 |
85 | extension Errno {
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:19:21: error: cannot find 'errno' in scope
17 | /// The calling thread's current `errno` value.
18 | public static var current: Errno {
19 | get { Errno(errno) }
| `- error: cannot find 'errno' in scope
20 | set { errno = newValue.rawValue }
21 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:20:15: error: cannot find 'errno' in scope
18 | public static var current: Errno {
19 | get { Errno(errno) }
20 | set { errno = newValue.rawValue }
| `- error: cannot find 'errno' in scope
21 | }
22 | /// The result of `strerror(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:24:32: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Errno'
22 | /// The result of `strerror(3)`.
23 | public var description: String {
24 | guard let s = strerror(rawValue) else { return "Unknown error \(rawValue)" }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Errno'
25 | return String(cString: s)
26 | }
[19/23] Compiling POSIXGlobals Math.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:17:43: error: cannot find 'C' in scope
15 |
16 | /// identical to C's `acos(3)`.
17 | public func acos(_ x: Double) -> Double { C.acos(x) }
| `- error: cannot find 'C' in scope
18 | /// identical to C's `acosh(3)`.
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:19:44: error: cannot find 'C' in scope
17 | public func acos(_ x: Double) -> Double { C.acos(x) }
18 | /// identical to C's `acosh(3)`.
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
| `- error: cannot find 'C' in scope
20 | /// identical to C's `asin(3)`.
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:21:43: error: cannot find 'C' in scope
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
20 | /// identical to C's `asin(3)`.
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
| `- error: cannot find 'C' in scope
22 | /// identical to C's `asinh(3)`.
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:23:44: error: cannot find 'C' in scope
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
22 | /// identical to C's `asinh(3)`.
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
| `- error: cannot find 'C' in scope
24 | /// identical to C's `atan(3)`.
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:25:43: error: cannot find 'C' in scope
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
24 | /// identical to C's `atan(3)`.
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
| `- error: cannot find 'C' in scope
26 | /// identical to C's `atan2(3)`.
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:27:57: error: cannot find 'C' in scope
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
26 | /// identical to C's `atan2(3)`.
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
| `- error: cannot find 'C' in scope
28 | /// identical to C's `atanh(3)`.
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:29:44: error: cannot find 'C' in scope
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
28 | /// identical to C's `atanh(3)`.
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
| `- error: cannot find 'C' in scope
30 | /// identical to C's `cbrt(3)`.
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:31:43: error: cannot find 'C' in scope
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
30 | /// identical to C's `cbrt(3)`.
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
| `- error: cannot find 'C' in scope
32 | /// identical to C's `cos(3)`.
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:33:42: error: cannot find 'C' in scope
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
32 | /// identical to C's `cos(3)`.
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
| `- error: cannot find 'C' in scope
34 | /// identical to C's `cosh(3)`.
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:35:43: error: cannot find 'C' in scope
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
34 | /// identical to C's `cosh(3)`.
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
| `- error: cannot find 'C' in scope
36 | /// identical to C's `erf(3)`.
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:37:42: error: cannot find 'C' in scope
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
36 | /// identical to C's `erf(3)`.
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
| `- error: cannot find 'C' in scope
38 | /// identical to C's `erfc(3)`.
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:39:43: error: cannot find 'C' in scope
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
38 | /// identical to C's `erfc(3)`.
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
| `- error: cannot find 'C' in scope
40 | /// identical to C's `exp(3)`.
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:41:42: error: cannot find 'C' in scope
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
40 | /// identical to C's `exp(3)`.
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
| `- error: cannot find 'C' in scope
42 | /// identical to C's `exp2(3)`.
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:43:43: error: cannot find 'C' in scope
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
42 | /// identical to C's `exp2(3)`.
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
| `- error: cannot find 'C' in scope
44 | /// identical to C's `expm1(3)`.
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:45:44: error: cannot find 'C' in scope
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
44 | /// identical to C's `expm1(3)`.
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
| `- error: cannot find 'C' in scope
46 | /// identical to C's `hypot(3)`.
47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:47:57: error: cannot find 'C' in scope
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
46 | /// identical to C's `hypot(3)`.
47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
| `- error: cannot find 'C' in scope
48 | /// identical to C's `lgamma(3)` (thread-safe; the sign is discarded).
49 | public func lgamma(_ x: Double) -> Double {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:51:12: error: cannot find 'lgamma_r' in scope
49 | public func lgamma(_ x: Double) -> Double {
50 | var sign: CInt = 0
51 | return lgamma_r(x, &sign)
| `- error: cannot find 'lgamma_r' in scope
52 | }
53 | /// identical to C's `log(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:54:42: error: cannot find 'C' in scope
52 | }
53 | /// identical to C's `log(3)`.
54 | public func log(_ x: Double) -> Double { C.log(x) }
| `- error: cannot find 'C' in scope
55 | /// identical to C's `log10(3)`.
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:56:44: error: cannot find 'C' in scope
54 | public func log(_ x: Double) -> Double { C.log(x) }
55 | /// identical to C's `log10(3)`.
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
| `- error: cannot find 'C' in scope
57 | /// identical to C's `log1p(3)`.
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:58:44: error: cannot find 'C' in scope
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
57 | /// identical to C's `log1p(3)`.
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
| `- error: cannot find 'C' in scope
59 | /// identical to C's `log2(3)`.
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:60:43: error: cannot find 'C' in scope
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
59 | /// identical to C's `log2(3)`.
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
| `- error: cannot find 'C' in scope
61 | /// identical to C's `pow(3)`.
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:62:55: error: cannot find 'C' in scope
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
61 | /// identical to C's `pow(3)`.
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
| `- error: cannot find 'C' in scope
63 | /// identical to C's `sin(3)`.
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:64:42: error: cannot find 'C' in scope
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
63 | /// identical to C's `sin(3)`.
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
| `- error: cannot find 'C' in scope
65 | /// identical to C's `sinh(3)`.
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:66:43: error: cannot find 'C' in scope
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
65 | /// identical to C's `sinh(3)`.
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
| `- error: cannot find 'C' in scope
67 | /// identical to C's `tan(3)`.
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:68:42: error: cannot find 'C' in scope
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
67 | /// identical to C's `tan(3)`.
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
| `- error: cannot find 'C' in scope
69 | /// identical to C's `tanh(3)`.
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:70:43: error: cannot find 'C' in scope
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
69 | /// identical to C's `tanh(3)`.
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
| `- error: cannot find 'C' in scope
71 | /// identical to C's `tgamma(3)`.
72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:72:45: error: cannot find 'C' in scope
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
71 | /// identical to C's `tgamma(3)`.
72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
| `- error: cannot find 'C' in scope
73 |
74 | // MARK: rounding, decomposition, and friends (Swift-native)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:103:26: error: extra argument in call
101 | public func remquo(_ x: Double, _ y: Double) -> (remainder: Double, quotient: Int) {
102 | var q: CInt = 0
103 | let r = remquo(x, y, &q)
| `- error: extra argument in call
104 | return (r, Int(q))
105 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:128:22: error: extra argument in call
126 | public func frexp(_ x: Double) -> (mantissa: Double, exponent: Int) {
127 | var e: CInt = 0
128 | let m = frexp(x, &e)
| `- error: extra argument in call
129 | return (m, Int(e))
130 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:132:65: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
130 | }
131 | /// identical to C's `ldexp(3)`: x * 2**exp.
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:134:67: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
135 | /// identical to C's `modf(3)`; returns the fractional and integral parts.
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:138:21: error: extra argument in call
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
137 | var i: Double = 0
138 | let f = modf(x, &i)
| `- error: extra argument in call
139 | return (f, i)
140 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:142:43: error: cannot find 'C' in scope
140 | }
141 | /// identical to C's `logb(3)`.
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
| `- error: cannot find 'C' in scope
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:144:45: error: cannot find 'C' in scope
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
| `- error: cannot find 'C' in scope
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:146:71: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
147 |
148 | // MARK: classification (Swift-native, swifty return types)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:179:36: error: cannot find 'C' in scope
177 |
178 | /// identical to C's `fegetround(3)`.
179 | public func fegetround() -> CInt { C.fegetround() }
| `- error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:182:48: error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
182 | public func fesetround(_ mode: CInt) -> CInt { C.fesetround(mode) }
| `- error: cannot find 'C' in scope
183 |
184 | // (FE_* and M_* constants are re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:15:21: error: cannot find type 'uid_t' in scope
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- error: cannot find type 'uid_t' in scope
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:17:21: error: cannot find type 'gid_t' in scope
15 | public let uid: uid_t
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- error: cannot find type 'gid_t' in scope
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:25:25: error: cannot find type 'passwd' in scope
23 | public let shell: String
24 |
25 | internal init(_ pw: passwd) {
| `- error: cannot find type 'passwd' in scope
26 | name = pw.pw_name.map { String(cString: $0) } ?? ""
27 | uid = pw.pw_uid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Hashable'
9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
| `- error: type 'Passwd' does not conform to protocol 'Hashable'
12 | /// user name (`pw_name`)
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Equatable'
9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
| |- error: type 'Passwd' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
12 | /// user name (`pw_name`)
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
Swift.==:1:24: note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Passwd' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Passwd' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Passwd' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Passwd' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:48:29: error: cannot find type 'uid_t' in scope
46 |
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
| `- error: cannot find type 'uid_t' in scope
49 | var pw = passwd()
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:62:21: error: cannot find type 'gid_t' in scope
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- error: cannot find type 'gid_t' in scope
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:66:25: error: cannot find type 'group' in scope
64 | public let members: [String]
65 |
66 | internal init(_ gr: group) {
| `- error: cannot find type 'group' in scope
67 | name = gr.gr_name.map { String(cString: $0) } ?? ""
68 | gid = gr.gr_gid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Hashable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
| `- error: type 'Group' does not conform to protocol 'Hashable'
59 | /// group name (`gr_name`)
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Group' to 'Hashable'
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Equatable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
| |- error: type 'Group' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
59 | /// group name (`gr_name`)
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Group' to 'Equatable'
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
Swift.==:1:24: note: candidate would match if 'Group' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Group' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Group' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Group' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Group' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Group' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Group' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Group' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Group' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Group, Group) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Group, Group) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:91:29: error: cannot find type 'gid_t' in scope
89 |
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
| `- error: cannot find type 'gid_t' in scope
92 | var gr = group()
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:39:14: error: cannot find 'passwd' in scope
37 | /// identical to C's `getpwnam(3)` (via `getpwnam_r`).
38 | public func getpwnam(_ name: String) -> Passwd? {
39 | var pw = passwd()
| `- error: cannot find 'passwd' in scope
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:41:38: error: cannot find type 'passwd' in scope
39 | var pw = passwd()
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
| `- error: cannot find type 'passwd' in scope
42 | let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
43 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:42:32: error: cannot find 'getpwnam_r' in scope
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
42 | let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
| `- error: cannot find 'getpwnam_r' in scope
43 | guard r == 0, result != nil else { return nil }
44 | return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:49:14: error: cannot find 'passwd' in scope
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
49 | var pw = passwd()
| `- error: cannot find 'passwd' in scope
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:51:38: error: cannot find type 'passwd' in scope
49 | var pw = passwd()
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
| `- error: cannot find type 'passwd' in scope
52 | let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
53 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:52:13: error: cannot find 'getpwuid_r' in scope
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
52 | let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
| `- error: cannot find 'getpwuid_r' in scope
53 | guard r == 0, result != nil else { return nil }
54 | return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:82:14: error: cannot find 'group' in scope
80 | /// identical to C's `getgrnam(3)` (via `getgrnam_r`).
81 | public func getgrnam(_ name: String) -> Group? {
82 | var gr = group()
| `- error: cannot find 'group' in scope
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:84:38: error: cannot find type 'group' in scope
82 | var gr = group()
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
| `- error: cannot find type 'group' in scope
85 | let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
86 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:85:32: error: cannot find 'getgrnam_r' in scope
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
85 | let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
| `- error: cannot find 'getgrnam_r' in scope
86 | guard r == 0, result != nil else { return nil }
87 | return Group(gr)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:92:14: error: cannot find 'group' in scope
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
92 | var gr = group()
| `- error: cannot find 'group' in scope
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:94:38: error: cannot find type 'group' in scope
92 | var gr = group()
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
| `- error: cannot find type 'group' in scope
95 | let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
96 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:95:13: error: cannot find 'getgrgid_r' in scope
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
95 | let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
| `- error: cannot find 'getgrgid_r' in scope
96 | guard r == 0, result != nil else { return nil }
97 | return Group(gr)
[20/23] Compiling POSIXGlobals Platform.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:17:43: error: cannot find 'C' in scope
15 |
16 | /// identical to C's `acos(3)`.
17 | public func acos(_ x: Double) -> Double { C.acos(x) }
| `- error: cannot find 'C' in scope
18 | /// identical to C's `acosh(3)`.
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:19:44: error: cannot find 'C' in scope
17 | public func acos(_ x: Double) -> Double { C.acos(x) }
18 | /// identical to C's `acosh(3)`.
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
| `- error: cannot find 'C' in scope
20 | /// identical to C's `asin(3)`.
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:21:43: error: cannot find 'C' in scope
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
20 | /// identical to C's `asin(3)`.
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
| `- error: cannot find 'C' in scope
22 | /// identical to C's `asinh(3)`.
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:23:44: error: cannot find 'C' in scope
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
22 | /// identical to C's `asinh(3)`.
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
| `- error: cannot find 'C' in scope
24 | /// identical to C's `atan(3)`.
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:25:43: error: cannot find 'C' in scope
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
24 | /// identical to C's `atan(3)`.
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
| `- error: cannot find 'C' in scope
26 | /// identical to C's `atan2(3)`.
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:27:57: error: cannot find 'C' in scope
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
26 | /// identical to C's `atan2(3)`.
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
| `- error: cannot find 'C' in scope
28 | /// identical to C's `atanh(3)`.
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:29:44: error: cannot find 'C' in scope
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
28 | /// identical to C's `atanh(3)`.
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
| `- error: cannot find 'C' in scope
30 | /// identical to C's `cbrt(3)`.
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:31:43: error: cannot find 'C' in scope
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
30 | /// identical to C's `cbrt(3)`.
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
| `- error: cannot find 'C' in scope
32 | /// identical to C's `cos(3)`.
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:33:42: error: cannot find 'C' in scope
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
32 | /// identical to C's `cos(3)`.
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
| `- error: cannot find 'C' in scope
34 | /// identical to C's `cosh(3)`.
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:35:43: error: cannot find 'C' in scope
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
34 | /// identical to C's `cosh(3)`.
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
| `- error: cannot find 'C' in scope
36 | /// identical to C's `erf(3)`.
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:37:42: error: cannot find 'C' in scope
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
36 | /// identical to C's `erf(3)`.
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
| `- error: cannot find 'C' in scope
38 | /// identical to C's `erfc(3)`.
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:39:43: error: cannot find 'C' in scope
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
38 | /// identical to C's `erfc(3)`.
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
| `- error: cannot find 'C' in scope
40 | /// identical to C's `exp(3)`.
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:41:42: error: cannot find 'C' in scope
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
40 | /// identical to C's `exp(3)`.
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
| `- error: cannot find 'C' in scope
42 | /// identical to C's `exp2(3)`.
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:43:43: error: cannot find 'C' in scope
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
42 | /// identical to C's `exp2(3)`.
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
| `- error: cannot find 'C' in scope
44 | /// identical to C's `expm1(3)`.
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:45:44: error: cannot find 'C' in scope
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
44 | /// identical to C's `expm1(3)`.
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
| `- error: cannot find 'C' in scope
46 | /// identical to C's `hypot(3)`.
47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:47:57: error: cannot find 'C' in scope
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
46 | /// identical to C's `hypot(3)`.
47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
| `- error: cannot find 'C' in scope
48 | /// identical to C's `lgamma(3)` (thread-safe; the sign is discarded).
49 | public func lgamma(_ x: Double) -> Double {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:51:12: error: cannot find 'lgamma_r' in scope
49 | public func lgamma(_ x: Double) -> Double {
50 | var sign: CInt = 0
51 | return lgamma_r(x, &sign)
| `- error: cannot find 'lgamma_r' in scope
52 | }
53 | /// identical to C's `log(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:54:42: error: cannot find 'C' in scope
52 | }
53 | /// identical to C's `log(3)`.
54 | public func log(_ x: Double) -> Double { C.log(x) }
| `- error: cannot find 'C' in scope
55 | /// identical to C's `log10(3)`.
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:56:44: error: cannot find 'C' in scope
54 | public func log(_ x: Double) -> Double { C.log(x) }
55 | /// identical to C's `log10(3)`.
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
| `- error: cannot find 'C' in scope
57 | /// identical to C's `log1p(3)`.
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:58:44: error: cannot find 'C' in scope
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
57 | /// identical to C's `log1p(3)`.
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
| `- error: cannot find 'C' in scope
59 | /// identical to C's `log2(3)`.
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:60:43: error: cannot find 'C' in scope
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
59 | /// identical to C's `log2(3)`.
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
| `- error: cannot find 'C' in scope
61 | /// identical to C's `pow(3)`.
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:62:55: error: cannot find 'C' in scope
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
61 | /// identical to C's `pow(3)`.
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
| `- error: cannot find 'C' in scope
63 | /// identical to C's `sin(3)`.
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:64:42: error: cannot find 'C' in scope
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
63 | /// identical to C's `sin(3)`.
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
| `- error: cannot find 'C' in scope
65 | /// identical to C's `sinh(3)`.
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:66:43: error: cannot find 'C' in scope
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
65 | /// identical to C's `sinh(3)`.
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
| `- error: cannot find 'C' in scope
67 | /// identical to C's `tan(3)`.
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:68:42: error: cannot find 'C' in scope
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
67 | /// identical to C's `tan(3)`.
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
| `- error: cannot find 'C' in scope
69 | /// identical to C's `tanh(3)`.
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:70:43: error: cannot find 'C' in scope
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
69 | /// identical to C's `tanh(3)`.
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
| `- error: cannot find 'C' in scope
71 | /// identical to C's `tgamma(3)`.
72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:72:45: error: cannot find 'C' in scope
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
71 | /// identical to C's `tgamma(3)`.
72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
| `- error: cannot find 'C' in scope
73 |
74 | // MARK: rounding, decomposition, and friends (Swift-native)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:103:26: error: extra argument in call
101 | public func remquo(_ x: Double, _ y: Double) -> (remainder: Double, quotient: Int) {
102 | var q: CInt = 0
103 | let r = remquo(x, y, &q)
| `- error: extra argument in call
104 | return (r, Int(q))
105 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:128:22: error: extra argument in call
126 | public func frexp(_ x: Double) -> (mantissa: Double, exponent: Int) {
127 | var e: CInt = 0
128 | let m = frexp(x, &e)
| `- error: extra argument in call
129 | return (m, Int(e))
130 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:132:65: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
130 | }
131 | /// identical to C's `ldexp(3)`: x * 2**exp.
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:134:67: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
135 | /// identical to C's `modf(3)`; returns the fractional and integral parts.
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:138:21: error: extra argument in call
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
137 | var i: Double = 0
138 | let f = modf(x, &i)
| `- error: extra argument in call
139 | return (f, i)
140 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:142:43: error: cannot find 'C' in scope
140 | }
141 | /// identical to C's `logb(3)`.
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
| `- error: cannot find 'C' in scope
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:144:45: error: cannot find 'C' in scope
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
| `- error: cannot find 'C' in scope
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:146:71: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
147 |
148 | // MARK: classification (Swift-native, swifty return types)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:179:36: error: cannot find 'C' in scope
177 |
178 | /// identical to C's `fegetround(3)`.
179 | public func fegetround() -> CInt { C.fegetround() }
| `- error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:182:48: error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
182 | public func fesetround(_ mode: CInt) -> CInt { C.fesetround(mode) }
| `- error: cannot find 'C' in scope
183 |
184 | // (FE_* and M_* constants are re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:15:21: error: cannot find type 'uid_t' in scope
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- error: cannot find type 'uid_t' in scope
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:17:21: error: cannot find type 'gid_t' in scope
15 | public let uid: uid_t
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- error: cannot find type 'gid_t' in scope
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:25:25: error: cannot find type 'passwd' in scope
23 | public let shell: String
24 |
25 | internal init(_ pw: passwd) {
| `- error: cannot find type 'passwd' in scope
26 | name = pw.pw_name.map { String(cString: $0) } ?? ""
27 | uid = pw.pw_uid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Hashable'
9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
| `- error: type 'Passwd' does not conform to protocol 'Hashable'
12 | /// user name (`pw_name`)
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Equatable'
9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
| |- error: type 'Passwd' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
12 | /// user name (`pw_name`)
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
Swift.==:1:24: note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Passwd' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Passwd' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Passwd' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Passwd' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:48:29: error: cannot find type 'uid_t' in scope
46 |
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
| `- error: cannot find type 'uid_t' in scope
49 | var pw = passwd()
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:62:21: error: cannot find type 'gid_t' in scope
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- error: cannot find type 'gid_t' in scope
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:66:25: error: cannot find type 'group' in scope
64 | public let members: [String]
65 |
66 | internal init(_ gr: group) {
| `- error: cannot find type 'group' in scope
67 | name = gr.gr_name.map { String(cString: $0) } ?? ""
68 | gid = gr.gr_gid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Hashable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
| `- error: type 'Group' does not conform to protocol 'Hashable'
59 | /// group name (`gr_name`)
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Group' to 'Hashable'
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Equatable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
| |- error: type 'Group' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
59 | /// group name (`gr_name`)
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Group' to 'Equatable'
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
Swift.==:1:24: note: candidate would match if 'Group' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Group' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Group' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Group' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Group' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Group' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Group' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Group' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Group' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Group, Group) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Group, Group) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:91:29: error: cannot find type 'gid_t' in scope
89 |
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
| `- error: cannot find type 'gid_t' in scope
92 | var gr = group()
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:39:14: error: cannot find 'passwd' in scope
37 | /// identical to C's `getpwnam(3)` (via `getpwnam_r`).
38 | public func getpwnam(_ name: String) -> Passwd? {
39 | var pw = passwd()
| `- error: cannot find 'passwd' in scope
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:41:38: error: cannot find type 'passwd' in scope
39 | var pw = passwd()
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
| `- error: cannot find type 'passwd' in scope
42 | let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
43 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:42:32: error: cannot find 'getpwnam_r' in scope
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
42 | let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
| `- error: cannot find 'getpwnam_r' in scope
43 | guard r == 0, result != nil else { return nil }
44 | return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:49:14: error: cannot find 'passwd' in scope
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
49 | var pw = passwd()
| `- error: cannot find 'passwd' in scope
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:51:38: error: cannot find type 'passwd' in scope
49 | var pw = passwd()
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
| `- error: cannot find type 'passwd' in scope
52 | let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
53 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:52:13: error: cannot find 'getpwuid_r' in scope
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
52 | let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
| `- error: cannot find 'getpwuid_r' in scope
53 | guard r == 0, result != nil else { return nil }
54 | return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:82:14: error: cannot find 'group' in scope
80 | /// identical to C's `getgrnam(3)` (via `getgrnam_r`).
81 | public func getgrnam(_ name: String) -> Group? {
82 | var gr = group()
| `- error: cannot find 'group' in scope
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:84:38: error: cannot find type 'group' in scope
82 | var gr = group()
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
| `- error: cannot find type 'group' in scope
85 | let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
86 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:85:32: error: cannot find 'getgrnam_r' in scope
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
85 | let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
| `- error: cannot find 'getgrnam_r' in scope
86 | guard r == 0, result != nil else { return nil }
87 | return Group(gr)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:92:14: error: cannot find 'group' in scope
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
92 | var gr = group()
| `- error: cannot find 'group' in scope
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:94:38: error: cannot find type 'group' in scope
92 | var gr = group()
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
| `- error: cannot find type 'group' in scope
95 | let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
96 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:95:13: error: cannot find 'getgrgid_r' in scope
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
95 | let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
| `- error: cannot find 'getgrgid_r' in scope
96 | guard r == 0, result != nil else { return nil }
97 | return Group(gr)
[21/23] Compiling POSIXGlobals PwdGrp.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:17:43: error: cannot find 'C' in scope
15 |
16 | /// identical to C's `acos(3)`.
17 | public func acos(_ x: Double) -> Double { C.acos(x) }
| `- error: cannot find 'C' in scope
18 | /// identical to C's `acosh(3)`.
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:19:44: error: cannot find 'C' in scope
17 | public func acos(_ x: Double) -> Double { C.acos(x) }
18 | /// identical to C's `acosh(3)`.
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
| `- error: cannot find 'C' in scope
20 | /// identical to C's `asin(3)`.
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:21:43: error: cannot find 'C' in scope
19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
20 | /// identical to C's `asin(3)`.
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
| `- error: cannot find 'C' in scope
22 | /// identical to C's `asinh(3)`.
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:23:44: error: cannot find 'C' in scope
21 | public func asin(_ x: Double) -> Double { C.asin(x) }
22 | /// identical to C's `asinh(3)`.
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
| `- error: cannot find 'C' in scope
24 | /// identical to C's `atan(3)`.
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:25:43: error: cannot find 'C' in scope
23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
24 | /// identical to C's `atan(3)`.
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
| `- error: cannot find 'C' in scope
26 | /// identical to C's `atan2(3)`.
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:27:57: error: cannot find 'C' in scope
25 | public func atan(_ x: Double) -> Double { C.atan(x) }
26 | /// identical to C's `atan2(3)`.
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
| `- error: cannot find 'C' in scope
28 | /// identical to C's `atanh(3)`.
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:29:44: error: cannot find 'C' in scope
27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
28 | /// identical to C's `atanh(3)`.
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
| `- error: cannot find 'C' in scope
30 | /// identical to C's `cbrt(3)`.
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:31:43: error: cannot find 'C' in scope
29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
30 | /// identical to C's `cbrt(3)`.
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
| `- error: cannot find 'C' in scope
32 | /// identical to C's `cos(3)`.
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:33:42: error: cannot find 'C' in scope
31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
32 | /// identical to C's `cos(3)`.
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
| `- error: cannot find 'C' in scope
34 | /// identical to C's `cosh(3)`.
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:35:43: error: cannot find 'C' in scope
33 | public func cos(_ x: Double) -> Double { C.cos(x) }
34 | /// identical to C's `cosh(3)`.
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
| `- error: cannot find 'C' in scope
36 | /// identical to C's `erf(3)`.
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:37:42: error: cannot find 'C' in scope
35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
36 | /// identical to C's `erf(3)`.
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
| `- error: cannot find 'C' in scope
38 | /// identical to C's `erfc(3)`.
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:39:43: error: cannot find 'C' in scope
37 | public func erf(_ x: Double) -> Double { C.erf(x) }
38 | /// identical to C's `erfc(3)`.
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
| `- error: cannot find 'C' in scope
40 | /// identical to C's `exp(3)`.
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:41:42: error: cannot find 'C' in scope
39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
40 | /// identical to C's `exp(3)`.
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
| `- error: cannot find 'C' in scope
42 | /// identical to C's `exp2(3)`.
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:43:43: error: cannot find 'C' in scope
41 | public func exp(_ x: Double) -> Double { C.exp(x) }
42 | /// identical to C's `exp2(3)`.
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
| `- error: cannot find 'C' in scope
44 | /// identical to C's `expm1(3)`.
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:45:44: error: cannot find 'C' in scope
43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
44 | /// identical to C's `expm1(3)`.
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
| `- error: cannot find 'C' in scope
46 | /// identical to C's `hypot(3)`.
47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:47:57: error: cannot find 'C' in scope
45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
46 | /// identical to C's `hypot(3)`.
47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
| `- error: cannot find 'C' in scope
48 | /// identical to C's `lgamma(3)` (thread-safe; the sign is discarded).
49 | public func lgamma(_ x: Double) -> Double {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:51:12: error: cannot find 'lgamma_r' in scope
49 | public func lgamma(_ x: Double) -> Double {
50 | var sign: CInt = 0
51 | return lgamma_r(x, &sign)
| `- error: cannot find 'lgamma_r' in scope
52 | }
53 | /// identical to C's `log(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:54:42: error: cannot find 'C' in scope
52 | }
53 | /// identical to C's `log(3)`.
54 | public func log(_ x: Double) -> Double { C.log(x) }
| `- error: cannot find 'C' in scope
55 | /// identical to C's `log10(3)`.
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:56:44: error: cannot find 'C' in scope
54 | public func log(_ x: Double) -> Double { C.log(x) }
55 | /// identical to C's `log10(3)`.
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
| `- error: cannot find 'C' in scope
57 | /// identical to C's `log1p(3)`.
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:58:44: error: cannot find 'C' in scope
56 | public func log10(_ x: Double) -> Double { C.log10(x) }
57 | /// identical to C's `log1p(3)`.
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
| `- error: cannot find 'C' in scope
59 | /// identical to C's `log2(3)`.
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:60:43: error: cannot find 'C' in scope
58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
59 | /// identical to C's `log2(3)`.
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
| `- error: cannot find 'C' in scope
61 | /// identical to C's `pow(3)`.
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:62:55: error: cannot find 'C' in scope
60 | public func log2(_ x: Double) -> Double { C.log2(x) }
61 | /// identical to C's `pow(3)`.
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
| `- error: cannot find 'C' in scope
63 | /// identical to C's `sin(3)`.
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:64:42: error: cannot find 'C' in scope
62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
63 | /// identical to C's `sin(3)`.
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
| `- error: cannot find 'C' in scope
65 | /// identical to C's `sinh(3)`.
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:66:43: error: cannot find 'C' in scope
64 | public func sin(_ x: Double) -> Double { C.sin(x) }
65 | /// identical to C's `sinh(3)`.
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
| `- error: cannot find 'C' in scope
67 | /// identical to C's `tan(3)`.
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:68:42: error: cannot find 'C' in scope
66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
67 | /// identical to C's `tan(3)`.
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
| `- error: cannot find 'C' in scope
69 | /// identical to C's `tanh(3)`.
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:70:43: error: cannot find 'C' in scope
68 | public func tan(_ x: Double) -> Double { C.tan(x) }
69 | /// identical to C's `tanh(3)`.
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
| `- error: cannot find 'C' in scope
71 | /// identical to C's `tgamma(3)`.
72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:72:45: error: cannot find 'C' in scope
70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
71 | /// identical to C's `tgamma(3)`.
72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
| `- error: cannot find 'C' in scope
73 |
74 | // MARK: rounding, decomposition, and friends (Swift-native)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:103:26: error: extra argument in call
101 | public func remquo(_ x: Double, _ y: Double) -> (remainder: Double, quotient: Int) {
102 | var q: CInt = 0
103 | let r = remquo(x, y, &q)
| `- error: extra argument in call
104 | return (r, Int(q))
105 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:128:22: error: extra argument in call
126 | public func frexp(_ x: Double) -> (mantissa: Double, exponent: Int) {
127 | var e: CInt = 0
128 | let m = frexp(x, &e)
| `- error: extra argument in call
129 | return (m, Int(e))
130 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:132:65: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
130 | }
131 | /// identical to C's `ldexp(3)`: x * 2**exp.
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:134:67: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
135 | /// identical to C's `modf(3)`; returns the fractional and integral parts.
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:138:21: error: extra argument in call
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
137 | var i: Double = 0
138 | let f = modf(x, &i)
| `- error: extra argument in call
139 | return (f, i)
140 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:142:43: error: cannot find 'C' in scope
140 | }
141 | /// identical to C's `logb(3)`.
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
| `- error: cannot find 'C' in scope
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:144:45: error: cannot find 'C' in scope
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
| `- error: cannot find 'C' in scope
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:146:71: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
147 |
148 | // MARK: classification (Swift-native, swifty return types)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:179:36: error: cannot find 'C' in scope
177 |
178 | /// identical to C's `fegetround(3)`.
179 | public func fegetround() -> CInt { C.fegetround() }
| `- error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:182:48: error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
182 | public func fesetround(_ mode: CInt) -> CInt { C.fesetround(mode) }
| `- error: cannot find 'C' in scope
183 |
184 | // (FE_* and M_* constants are re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:15:21: error: cannot find type 'uid_t' in scope
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- error: cannot find type 'uid_t' in scope
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:17:21: error: cannot find type 'gid_t' in scope
15 | public let uid: uid_t
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- error: cannot find type 'gid_t' in scope
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:25:25: error: cannot find type 'passwd' in scope
23 | public let shell: String
24 |
25 | internal init(_ pw: passwd) {
| `- error: cannot find type 'passwd' in scope
26 | name = pw.pw_name.map { String(cString: $0) } ?? ""
27 | uid = pw.pw_uid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Hashable'
9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
| `- error: type 'Passwd' does not conform to protocol 'Hashable'
12 | /// user name (`pw_name`)
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Equatable'
9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
| |- error: type 'Passwd' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
12 | /// user name (`pw_name`)
13 | public let name: String
14 | /// user id (`pw_uid`)
15 | public let uid: uid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
16 | /// group id (`pw_gid`)
17 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
18 | /// real name / GECOS field (`pw_gecos`)
19 | public let gecos: String
Swift.==:1:24: note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Passwd' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Passwd' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Passwd' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Passwd' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Passwd' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:48:29: error: cannot find type 'uid_t' in scope
46 |
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
| `- error: cannot find type 'uid_t' in scope
49 | var pw = passwd()
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:62:21: error: cannot find type 'gid_t' in scope
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- error: cannot find type 'gid_t' in scope
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:66:25: error: cannot find type 'group' in scope
64 | public let members: [String]
65 |
66 | internal init(_ gr: group) {
| `- error: cannot find type 'group' in scope
67 | name = gr.gr_name.map { String(cString: $0) } ?? ""
68 | gid = gr.gr_gid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Hashable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
| `- error: type 'Group' does not conform to protocol 'Hashable'
59 | /// group name (`gr_name`)
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Group' to 'Hashable'
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Equatable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
| |- error: type 'Group' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
59 | /// group name (`gr_name`)
60 | public let name: String
61 | /// group id (`gr_gid`)
62 | public let gid: gid_t
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Group' to 'Equatable'
63 | /// member user names (`gr_mem`)
64 | public let members: [String]
Swift.==:1:24: note: candidate would match if 'Group' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Group' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Group' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Group' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Group' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Group' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Group' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Group' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Group' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Group' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Group, Group) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Group, Group) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:91:29: error: cannot find type 'gid_t' in scope
89 |
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
| `- error: cannot find type 'gid_t' in scope
92 | var gr = group()
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:39:14: error: cannot find 'passwd' in scope
37 | /// identical to C's `getpwnam(3)` (via `getpwnam_r`).
38 | public func getpwnam(_ name: String) -> Passwd? {
39 | var pw = passwd()
| `- error: cannot find 'passwd' in scope
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:41:38: error: cannot find type 'passwd' in scope
39 | var pw = passwd()
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
| `- error: cannot find type 'passwd' in scope
42 | let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
43 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:42:32: error: cannot find 'getpwnam_r' in scope
40 | var buf = [CChar](repeating: 0, count: pwBufSize)
41 | var result: UnsafeMutablePointer<passwd>? = nil
42 | let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
| `- error: cannot find 'getpwnam_r' in scope
43 | guard r == 0, result != nil else { return nil }
44 | return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:49:14: error: cannot find 'passwd' in scope
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
49 | var pw = passwd()
| `- error: cannot find 'passwd' in scope
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:51:38: error: cannot find type 'passwd' in scope
49 | var pw = passwd()
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
| `- error: cannot find type 'passwd' in scope
52 | let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
53 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:52:13: error: cannot find 'getpwuid_r' in scope
50 | var buf = [CChar](repeating: 0, count: pwBufSize)
51 | var result: UnsafeMutablePointer<passwd>? = nil
52 | let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
| `- error: cannot find 'getpwuid_r' in scope
53 | guard r == 0, result != nil else { return nil }
54 | return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:82:14: error: cannot find 'group' in scope
80 | /// identical to C's `getgrnam(3)` (via `getgrnam_r`).
81 | public func getgrnam(_ name: String) -> Group? {
82 | var gr = group()
| `- error: cannot find 'group' in scope
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:84:38: error: cannot find type 'group' in scope
82 | var gr = group()
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
| `- error: cannot find type 'group' in scope
85 | let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
86 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:85:32: error: cannot find 'getgrnam_r' in scope
83 | var buf = [CChar](repeating: 0, count: pwBufSize)
84 | var result: UnsafeMutablePointer<group>? = nil
85 | let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
| `- error: cannot find 'getgrnam_r' in scope
86 | guard r == 0, result != nil else { return nil }
87 | return Group(gr)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:92:14: error: cannot find 'group' in scope
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
92 | var gr = group()
| `- error: cannot find 'group' in scope
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:94:38: error: cannot find type 'group' in scope
92 | var gr = group()
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
| `- error: cannot find type 'group' in scope
95 | let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
96 | guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:95:13: error: cannot find 'getgrgid_r' in scope
93 | var buf = [CChar](repeating: 0, count: pwBufSize)
94 | var result: UnsafeMutablePointer<group>? = nil
95 | let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
| `- error: cannot find 'getgrgid_r' in scope
96 | guard r == 0, result != nil else { return nil }
97 | return Group(gr)
[22/23] Compiling POSIXGlobals Unimplemented.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:12:25: error: cannot find type 'pid_t' in scope
10 |
11 | /// identical to C's `getpid(2)`.
12 | public func getpid() -> pid_t { C.getpid() }
| `- error: cannot find type 'pid_t' in scope
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:14:26: error: cannot find type 'pid_t' in scope
12 | public func getpid() -> pid_t { C.getpid() }
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
| `- error: cannot find type 'pid_t' in scope
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:16:25: error: cannot find type 'uid_t' in scope
14 | public func getppid() -> pid_t { C.getppid() }
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
| `- error: cannot find type 'uid_t' in scope
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:18:26: error: cannot find type 'uid_t' in scope
16 | public func getuid() -> uid_t { C.getuid() }
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
| `- error: cannot find type 'uid_t' in scope
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:20:25: error: cannot find type 'gid_t' in scope
18 | public func geteuid() -> uid_t { C.geteuid() }
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
| `- error: cannot find type 'gid_t' in scope
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:22:26: error: cannot find type 'gid_t' in scope
20 | public func getgid() -> gid_t { C.getgid() }
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
| `- error: cannot find type 'gid_t' in scope
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:24:26: error: cannot find type 'pid_t' in scope
22 | public func getegid() -> gid_t { C.getegid() }
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
| `- error: cannot find type 'pid_t' in scope
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:26:27: error: cannot find type 'uid_t' in scope
24 | public func getpgrp() -> pid_t { C.getpgrp() }
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
| `- error: cannot find type 'uid_t' in scope
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:28:27: error: cannot find type 'gid_t' in scope
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
| `- error: cannot find type 'gid_t' in scope
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:30:28: error: cannot find type 'pid_t' in scope
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
| `- error: cannot find type 'pid_t' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:30:43: error: cannot find type 'pid_t' in scope
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
| `- error: cannot find type 'pid_t' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:33:32: error: cannot find type 'pid_t' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
33 | public func setsid() throws -> pid_t { try check(C.setsid()) }
| `- error: cannot find type 'pid_t' in scope
34 |
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:36:36: error: cannot find type 'gid_t' in scope
34 |
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
36 | public func getgroups() throws -> [gid_t] {
| `- error: cannot find type 'gid_t' in scope
37 | let n = try check(getgroups(0, nil))
38 | guard n > 0 else { return [] }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:54:30: error: cannot find type 'pid_t' in scope
52 | /// identical to C's `fork(2)`; returns 0 in the child and the child's
53 | /// pid in the parent.
54 | public func fork() throws -> pid_t { try check(C.fork()) }
| `- error: cannot find type 'pid_t' in scope
55 |
56 | /// identical to C's `_exit(2)`: exits without running cleanup.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:113:25: error: cannot find 'SEEK_SET' in scope
111 | public init(rawValue: CInt) { self.rawValue = rawValue }
112 | }
113 | private let _SEEK_SET = SEEK_SET
| `- error: cannot find 'SEEK_SET' in scope
114 | private let _SEEK_CUR = SEEK_CUR
115 | private let _SEEK_END = SEEK_END
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:114:25: error: cannot find 'SEEK_CUR' in scope
112 | }
113 | private let _SEEK_SET = SEEK_SET
114 | private let _SEEK_CUR = SEEK_CUR
| `- error: cannot find 'SEEK_CUR' in scope
115 | private let _SEEK_END = SEEK_END
116 | extension Whence {
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:115:25: error: cannot find 'SEEK_END' in scope
113 | private let _SEEK_SET = SEEK_SET
114 | private let _SEEK_CUR = SEEK_CUR
115 | private let _SEEK_END = SEEK_END
| `- error: cannot find 'SEEK_END' in scope
116 | extension Whence {
117 | public static let SEEK_SET = Whence(rawValue: _SEEK_SET)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:124:88: error: cannot find type 'off_t' in scope
122 | /// identical to C's `lseek(2)`; returns the new offset.
123 | @discardableResult
124 | public func lseek(_ fd: CInt, _ offset: off_t, _ whence: Whence = .SEEK_SET) throws -> off_t {
| `- error: cannot find type 'off_t' in scope
125 | try check(lseek(fd, offset, whence.rawValue))
126 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:124:41: error: cannot find type 'off_t' in scope
122 | /// identical to C's `lseek(2)`; returns the new offset.
123 | @discardableResult
124 | public func lseek(_ fd: CInt, _ offset: off_t, _ whence: Whence = .SEEK_SET) throws -> off_t {
| `- error: cannot find type 'off_t' in scope
125 | try check(lseek(fd, offset, whence.rawValue))
126 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:159:21: error: cannot find 'F_OK' in scope
157 | public init(rawValue: CInt) { self.rawValue = rawValue }
158 | }
159 | private let _F_OK = F_OK
| `- error: cannot find 'F_OK' in scope
160 | private let _R_OK = R_OK
161 | private let _W_OK = W_OK
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:160:21: error: cannot find 'R_OK' in scope
158 | }
159 | private let _F_OK = F_OK
160 | private let _R_OK = R_OK
| `- error: cannot find 'R_OK' in scope
161 | private let _W_OK = W_OK
162 | private let _X_OK = X_OK
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:161:21: error: cannot find 'W_OK' in scope
159 | private let _F_OK = F_OK
160 | private let _R_OK = R_OK
161 | private let _W_OK = W_OK
| `- error: cannot find 'W_OK' in scope
162 | private let _X_OK = X_OK
163 | extension AccessMode {
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:162:21: error: cannot find 'X_OK' in scope
160 | private let _R_OK = R_OK
161 | private let _W_OK = W_OK
162 | private let _X_OK = X_OK
| `- error: cannot find 'X_OK' in scope
163 | extension AccessMode {
164 | public static let F_OK = AccessMode(rawValue: _F_OK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:181:44: error: cannot find type 'uid_t' in scope
179 |
180 | /// identical to C's `chown(2)`.
181 | public func chown(_ path: String, _ owner: uid_t, _ group: gid_t) throws {
| `- error: cannot find type 'uid_t' in scope
182 | _ = try path.withCString { try check(chown($0, owner, group)) }
183 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:181:60: error: cannot find type 'gid_t' in scope
179 |
180 | /// identical to C's `chown(2)`.
181 | public func chown(_ path: String, _ owner: uid_t, _ group: gid_t) throws {
| `- error: cannot find type 'gid_t' in scope
182 | _ = try path.withCString { try check(chown($0, owner, group)) }
183 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:219:59: error: cannot find '_SC_ARG_MAX' in scope
217 |
218 | // CInt() because Glibc imports these anonymous-enum constants as Int
219 | public static let argMax = SysconfName(rawValue: CInt(_SC_ARG_MAX))
| `- error: cannot find '_SC_ARG_MAX' in scope
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:220:61: error: cannot find '_SC_CHILD_MAX' in scope
218 | // CInt() because Glibc imports these anonymous-enum constants as Int
219 | public static let argMax = SysconfName(rawValue: CInt(_SC_ARG_MAX))
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
| `- error: cannot find '_SC_CHILD_MAX' in scope
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:221:62: error: cannot find '_SC_CLK_TCK' in scope
219 | public static let argMax = SysconfName(rawValue: CInt(_SC_ARG_MAX))
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
| `- error: cannot find '_SC_CLK_TCK' in scope
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:222:63: error: cannot find '_SC_NGROUPS_MAX' in scope
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
| `- error: cannot find '_SC_NGROUPS_MAX' in scope
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:223:60: error: cannot find '_SC_OPEN_MAX' in scope
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
| `- error: cannot find '_SC_OPEN_MAX' in scope
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:224:61: error: cannot find '_SC_PAGESIZE' in scope
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
| `- error: cannot find '_SC_PAGESIZE' in scope
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:225:62: error: cannot find '_SC_STREAM_MAX' in scope
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
| `- error: cannot find '_SC_STREAM_MAX' in scope
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:226:62: error: cannot find '_SC_TZNAME_MAX' in scope
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
| `- error: cannot find '_SC_TZNAME_MAX' in scope
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:227:63: error: cannot find '_SC_JOB_CONTROL' in scope
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
| `- error: cannot find '_SC_JOB_CONTROL' in scope
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:228:61: error: cannot find '_SC_SAVED_IDS' in scope
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
| `- error: cannot find '_SC_SAVED_IDS' in scope
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
230 | public static let processorsOnline = SysconfName(rawValue: CInt(_SC_NPROCESSORS_ONLN))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:229:60: error: cannot find '_SC_VERSION' in scope
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
| `- error: cannot find '_SC_VERSION' in scope
230 | public static let processorsOnline = SysconfName(rawValue: CInt(_SC_NPROCESSORS_ONLN))
231 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:230:69: error: cannot find '_SC_NPROCESSORS_ONLN' in scope
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
230 | public static let processorsOnline = SysconfName(rawValue: CInt(_SC_NPROCESSORS_ONLN))
| `- error: cannot find '_SC_NPROCESSORS_ONLN' in scope
231 | }
232 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:250:61: error: cannot find '_PC_LINK_MAX' in scope
248 |
249 | // CInt() because Glibc imports these anonymous-enum constants as Int
250 | public static let linkMax = PathconfName(rawValue: CInt(_PC_LINK_MAX))
| `- error: cannot find '_PC_LINK_MAX' in scope
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:251:62: error: cannot find '_PC_MAX_CANON' in scope
249 | // CInt() because Glibc imports these anonymous-enum constants as Int
250 | public static let linkMax = PathconfName(rawValue: CInt(_PC_LINK_MAX))
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
| `- error: cannot find '_PC_MAX_CANON' in scope
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:252:62: error: cannot find '_PC_MAX_INPUT' in scope
250 | public static let linkMax = PathconfName(rawValue: CInt(_PC_LINK_MAX))
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
| `- error: cannot find '_PC_MAX_INPUT' in scope
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:253:61: error: cannot find '_PC_NAME_MAX' in scope
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
| `- error: cannot find '_PC_NAME_MAX' in scope
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:254:61: error: cannot find '_PC_PATH_MAX' in scope
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
| `- error: cannot find '_PC_PATH_MAX' in scope
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:255:61: error: cannot find '_PC_PIPE_BUF' in scope
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
| `- error: cannot find '_PC_PIPE_BUF' in scope
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:256:69: error: cannot find '_PC_CHOWN_RESTRICTED' in scope
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
| `- error: cannot find '_PC_CHOWN_RESTRICTED' in scope
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
258 | public static let vdisable = PathconfName(rawValue: CInt(_PC_VDISABLE))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:257:61: error: cannot find '_PC_NO_TRUNC' in scope
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
| `- error: cannot find '_PC_NO_TRUNC' in scope
258 | public static let vdisable = PathconfName(rawValue: CInt(_PC_VDISABLE))
259 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:258:62: error: cannot find '_PC_VDISABLE' in scope
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
258 | public static let vdisable = PathconfName(rawValue: CInt(_PC_VDISABLE))
| `- error: cannot find '_PC_VDISABLE' in scope
259 | }
260 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:286:45: error: cannot find type 'pid_t' in scope
284 |
285 | /// identical to C's `tcgetpgrp(3)`.
286 | public func tcgetpgrp(_ fd: CInt) throws -> pid_t { try check(C.tcgetpgrp(fd)) }
| `- error: cannot find type 'pid_t' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:289:43: error: cannot find type 'pid_t' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
289 | public func tcsetpgrp(_ fd: CInt, _ pgid: pid_t) throws { try check(C.tcsetpgrp(fd, pgid)) }
| `- error: cannot find type 'pid_t' in scope
290 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:12:33: error: cannot find 'C' in scope
10 |
11 | /// identical to C's `getpid(2)`.
12 | public func getpid() -> pid_t { C.getpid() }
| `- error: cannot find 'C' in scope
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:14:34: error: cannot find 'C' in scope
12 | public func getpid() -> pid_t { C.getpid() }
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
| `- error: cannot find 'C' in scope
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:16:33: error: cannot find 'C' in scope
14 | public func getppid() -> pid_t { C.getppid() }
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
| `- error: cannot find 'C' in scope
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:18:34: error: cannot find 'C' in scope
16 | public func getuid() -> uid_t { C.getuid() }
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
| `- error: cannot find 'C' in scope
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:20:33: error: cannot find 'C' in scope
18 | public func geteuid() -> uid_t { C.geteuid() }
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
| `- error: cannot find 'C' in scope
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:22:34: error: cannot find 'C' in scope
20 | public func getgid() -> gid_t { C.getgid() }
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
| `- error: cannot find 'C' in scope
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:24:34: error: cannot find 'C' in scope
22 | public func getegid() -> gid_t { C.getegid() }
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
| `- error: cannot find 'C' in scope
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:26:53: error: cannot find 'C' in scope
24 | public func getpgrp() -> pid_t { C.getpgrp() }
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
| `- error: cannot find 'C' in scope
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:28:53: error: cannot find 'C' in scope
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
| `- error: cannot find 'C' in scope
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:30:69: error: cannot find 'C' in scope
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
| `- error: cannot find 'C' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:33:50: error: cannot find 'C' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
33 | public func setsid() throws -> pid_t { try check(C.setsid()) }
| `- error: cannot find 'C' in scope
34 |
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:37:36: error: 'nil' requires a contextual type
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
36 | public func getgroups() throws -> [gid_t] {
37 | let n = try check(getgroups(0, nil))
| `- error: 'nil' requires a contextual type
38 | guard n > 0 else { return [] }
39 | var groups = [gid_t](repeating: 0, count: Int(n))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:39:19: error: cannot find 'gid_t' in scope
37 | let n = try check(getgroups(0, nil))
38 | guard n > 0 else { return [] }
39 | var groups = [gid_t](repeating: 0, count: Int(n))
| `- error: cannot find 'gid_t' in scope
40 | let m = try check(getgroups(n, &groups))
41 | return Array(groups.prefix(Int(m)))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:39:18: error: cannot call value of non-function type '[Any]'
37 | let n = try check(getgroups(0, nil))
38 | guard n > 0 else { return [] }
39 | var groups = [gid_t](repeating: 0, count: Int(n))
| `- error: cannot call value of non-function type '[Any]'
40 | let m = try check(getgroups(n, &groups))
41 | return Array(groups.prefix(Int(m)))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:46:19: error: cannot find 'C' in scope
44 | /// identical to C's `getlogin(3)`.
45 | public func getlogin() -> String? {
46 | guard let p = C.getlogin() else { return nil }
| `- error: cannot find 'C' in scope
47 | return String(cString: p)
48 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:54:48: error: cannot find 'C' in scope
52 | /// identical to C's `fork(2)`; returns 0 in the child and the child's
53 | /// pid in the parent.
54 | public func fork() throws -> pid_t { try check(C.fork()) }
| `- error: cannot find 'C' in scope
55 |
56 | /// identical to C's `_exit(2)`: exits without running cleanup.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:57:50: error: cannot find 'C' in scope
55 |
56 | /// identical to C's `_exit(2)`: exits without running cleanup.
57 | public func _exit(_ status: CInt = 0) -> Never { C._exit(status) }
| `- error: cannot find 'C' in scope
58 |
59 | /// identical to C's `nice(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:64:13: error: cannot find 'C' in scope
62 | // -1 is a legal return value; disambiguate with errno.
63 | Errno.current = Errno(0)
64 | let r = C.nice(increment)
| `- error: cannot find 'C' in scope
65 | if r == -1 && Errno.current.rawValue != 0 { throw Errno.current }
66 | return r
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:71:50: error: cannot find 'C' in scope
69 | /// identical to C's `alarm(2)`.
70 | @discardableResult
71 | public func alarm(_ seconds: UInt32) -> UInt32 { C.alarm(seconds) }
| `- error: cannot find 'C' in scope
72 |
73 | /// identical to C's `pause(2)`: waits until a signal is delivered.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:74:27: error: cannot find 'C' in scope
72 |
73 | /// identical to C's `pause(2)`: waits until a signal is delivered.
74 | public func pause() { _ = C.pause() }
| `- error: cannot find 'C' in scope
75 |
76 | /// identical to C's `sleep(3)`; returns the unslept seconds.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:78:50: error: cannot find 'C' in scope
76 | /// identical to C's `sleep(3)`; returns the unslept seconds.
77 | @discardableResult
78 | public func sleep(_ seconds: UInt32) -> UInt32 { C.sleep(seconds) }
| `- error: cannot find 'C' in scope
79 |
80 | // MARK: file descriptors
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:83:50: error: cannot find 'C' in scope
81 |
82 | /// identical to C's `close(2)`.
83 | public func close(_ fd: CInt) throws { try check(C.close(fd)) }
| `- error: cannot find 'C' in scope
84 |
85 | /// identical to C's `dup(2)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:86:56: error: cannot find 'C' in scope
84 |
85 | /// identical to C's `dup(2)`.
86 | public func dup(_ fd: CInt) throws -> CInt { try check(C.dup(fd)) }
| `- error: cannot find 'C' in scope
87 |
88 | /// identical to C's `dup2(2)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:90:70: error: cannot find 'C' in scope
88 | /// identical to C's `dup2(2)`.
89 | @discardableResult
90 | public func dup2(_ fd: CInt, _ fd2: CInt) throws -> CInt { try check(C.dup2(fd, fd2)) }
| `- error: cannot find 'C' in scope
91 |
92 | /// identical to C's `pipe(2)`; returns the read and write descriptors.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:95:20: error: argument passed to call that takes no arguments
93 | public func pipe() throws -> (read: CInt, write: CInt) {
94 | var fds: [CInt] = [0, 0]
95 | try check(pipe(&fds))
| `- error: argument passed to call that takes no arguments
96 | return (fds[0], fds[1])
97 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:100:42: error: cannot find 'C' in scope
98 |
99 | /// identical to C's `isatty(3)`.
100 | public func isatty(_ fd: CInt) -> Bool { C.isatty(fd) == 1 }
| `- error: cannot find 'C' in scope
101 |
102 | /// identical to C's `ttyname(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:104:19: error: cannot find 'C' in scope
102 | /// identical to C's `ttyname(3)`.
103 | public func ttyname(_ fd: CInt) -> String? {
104 | guard let p = C.ttyname(fd) else { return nil }
| `- error: cannot find 'C' in scope
105 | return String(cString: p)
106 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:133:45: error: extra argument in call
131 | var buf = [UInt8](repeating: 0, count: count)
132 | n = try buf.withUnsafeMutableBytes { raw in
133 | try check(read(fd, raw.baseAddress, count))
| `- error: extra argument in call
134 | }
135 | return Array(buf.prefix(n))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:133:32: error: cannot convert value of type 'UnsafeMutableRawPointer?' to expected argument type 'Int'
131 | var buf = [UInt8](repeating: 0, count: count)
132 | n = try buf.withUnsafeMutableBytes { raw in
133 | try check(read(fd, raw.baseAddress, count))
| `- error: cannot convert value of type 'UnsafeMutableRawPointer?' to expected argument type 'Int'
134 | }
135 | return Array(buf.prefix(n))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:142:19: error: no exact matches in call to global function 'write'
138 | /// identical to C's `write(2)`; returns the number of bytes written.
139 | @discardableResult
140 | public func write(_ fd: CInt, _ bytes: [UInt8]) throws -> Int {
| `- note: candidate has partially matching parameter list (CInt, [UInt8])
141 | try bytes.withUnsafeBytes { raw in
142 | try check(write(fd, raw.baseAddress, raw.count))
| `- error: no exact matches in call to global function 'write'
143 | }
144 | }
:
146 | /// identical to C's `write(2)`, taking the UTF-8 bytes of a String.
147 | @discardableResult
148 | public func write(_ fd: CInt, _ string: String) throws -> Int {
| `- note: candidate has partially matching parameter list (CInt, String)
149 | try write(fd, Array(string.utf8))
150 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:172:50: error: binary operator '==' cannot be applied to operands of type 'Bool' and 'Int'
170 | /// identical to C's `access(2)`, but returns a Bool.
171 | public func access(_ path: String, _ mode: AccessMode = .F_OK) -> Bool {
172 | path.withCString { access($0, mode.rawValue) == 0 }
| |- error: binary operator '==' cannot be applied to operands of type 'Bool' and 'Int'
| `- note: overloads for '==' exist with these partially matching parameter lists: (Bool, Bool), (Int, Int)
173 | }
174 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:172:31: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
170 | /// identical to C's `access(2)`, but returns a Bool.
171 | public func access(_ path: String, _ mode: AccessMode = .F_OK) -> Bool {
172 | path.withCString { access($0, mode.rawValue) == 0 }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
173 | }
174 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:177:48: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
175 | /// identical to C's `chdir(2)`.
176 | public func chdir(_ path: String) throws {
177 | _ = try path.withCString { try check(chdir($0)) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
178 | }
179 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:187:25: error: argument passed to call that takes no arguments
185 | /// identical to C's `getcwd(3)`.
186 | public func getcwd() throws -> String {
187 | guard let p = getcwd(nil, 0) else { throw Errno.current }
| `- error: argument passed to call that takes no arguments
188 | defer { free(p) }
189 | return String(cString: p)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:187:26: error: 'nil' requires a contextual type
185 | /// identical to C's `getcwd(3)`.
186 | public func getcwd() throws -> String {
187 | guard let p = getcwd(nil, 0) else { throw Errno.current }
| `- error: 'nil' requires a contextual type
188 | defer { free(p) }
189 | return String(cString: p)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:196:28: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
194 | _ = try existing.withCString { e in
195 | try new.withCString { n in
196 | try check(link(e, n))
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
197 | }
198 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:196:31: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
194 | _ = try existing.withCString { e in
195 | try new.withCString { n in
196 | try check(link(e, n))
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
197 | }
198 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:203:49: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
201 | /// identical to C's `unlink(2)`.
202 | public func unlink(_ path: String) throws {
203 | _ = try path.withCString { try check(unlink($0)) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
204 | }
205 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:208:48: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
206 | /// identical to C's `rmdir(2)`.
207 | public func rmdir(_ path: String) throws {
208 | _ = try path.withCString { try check(rmdir($0)) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
209 | }
210 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:236:26: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SysconfName'
234 | public func sysconf(_ name: SysconfName) throws -> Int? {
235 | Errno.current = Errno(0)
236 | let r = sysconf(name.rawValue)
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SysconfName'
237 | if r == -1 {
238 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:264:41: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
262 | public func pathconf(_ path: String, _ name: PathconfName) throws -> Int? {
263 | Errno.current = Errno(0)
264 | let r = path.withCString { pathconf($0, name.rawValue) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
265 | if r == -1 {
266 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:264:50: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
262 | public func pathconf(_ path: String, _ name: PathconfName) throws -> Int? {
263 | Errno.current = Errno(0)
264 | let r = path.withCString { pathconf($0, name.rawValue) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
265 | if r == -1 {
266 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:275:32: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
273 | public func fpathconf(_ fd: CInt, _ name: PathconfName) throws -> Int? {
274 | Errno.current = Errno(0)
275 | let r = fpathconf(fd, name.rawValue)
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
276 | if r == -1 {
277 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:286:63: error: cannot find 'C' in scope
284 |
285 | /// identical to C's `tcgetpgrp(3)`.
286 | public func tcgetpgrp(_ fd: CInt) throws -> pid_t { try check(C.tcgetpgrp(fd)) }
| `- error: cannot find 'C' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:289:69: error: cannot find 'C' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
289 | public func tcsetpgrp(_ fd: CInt, _ pgid: pid_t) throws { try check(C.tcsetpgrp(fd, pgid)) }
| `- error: cannot find 'C' in scope
290 |
[23/23] Compiling POSIXGlobals Unistd.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:12:25: error: cannot find type 'pid_t' in scope
10 |
11 | /// identical to C's `getpid(2)`.
12 | public func getpid() -> pid_t { C.getpid() }
| `- error: cannot find type 'pid_t' in scope
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:14:26: error: cannot find type 'pid_t' in scope
12 | public func getpid() -> pid_t { C.getpid() }
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
| `- error: cannot find type 'pid_t' in scope
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:16:25: error: cannot find type 'uid_t' in scope
14 | public func getppid() -> pid_t { C.getppid() }
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
| `- error: cannot find type 'uid_t' in scope
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:18:26: error: cannot find type 'uid_t' in scope
16 | public func getuid() -> uid_t { C.getuid() }
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
| `- error: cannot find type 'uid_t' in scope
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:20:25: error: cannot find type 'gid_t' in scope
18 | public func geteuid() -> uid_t { C.geteuid() }
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
| `- error: cannot find type 'gid_t' in scope
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:22:26: error: cannot find type 'gid_t' in scope
20 | public func getgid() -> gid_t { C.getgid() }
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
| `- error: cannot find type 'gid_t' in scope
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:24:26: error: cannot find type 'pid_t' in scope
22 | public func getegid() -> gid_t { C.getegid() }
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
| `- error: cannot find type 'pid_t' in scope
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:26:27: error: cannot find type 'uid_t' in scope
24 | public func getpgrp() -> pid_t { C.getpgrp() }
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
| `- error: cannot find type 'uid_t' in scope
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:28:27: error: cannot find type 'gid_t' in scope
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
| `- error: cannot find type 'gid_t' in scope
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:30:28: error: cannot find type 'pid_t' in scope
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
| `- error: cannot find type 'pid_t' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:30:43: error: cannot find type 'pid_t' in scope
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
| `- error: cannot find type 'pid_t' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:33:32: error: cannot find type 'pid_t' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
33 | public func setsid() throws -> pid_t { try check(C.setsid()) }
| `- error: cannot find type 'pid_t' in scope
34 |
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:36:36: error: cannot find type 'gid_t' in scope
34 |
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
36 | public func getgroups() throws -> [gid_t] {
| `- error: cannot find type 'gid_t' in scope
37 | let n = try check(getgroups(0, nil))
38 | guard n > 0 else { return [] }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:54:30: error: cannot find type 'pid_t' in scope
52 | /// identical to C's `fork(2)`; returns 0 in the child and the child's
53 | /// pid in the parent.
54 | public func fork() throws -> pid_t { try check(C.fork()) }
| `- error: cannot find type 'pid_t' in scope
55 |
56 | /// identical to C's `_exit(2)`: exits without running cleanup.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:113:25: error: cannot find 'SEEK_SET' in scope
111 | public init(rawValue: CInt) { self.rawValue = rawValue }
112 | }
113 | private let _SEEK_SET = SEEK_SET
| `- error: cannot find 'SEEK_SET' in scope
114 | private let _SEEK_CUR = SEEK_CUR
115 | private let _SEEK_END = SEEK_END
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:114:25: error: cannot find 'SEEK_CUR' in scope
112 | }
113 | private let _SEEK_SET = SEEK_SET
114 | private let _SEEK_CUR = SEEK_CUR
| `- error: cannot find 'SEEK_CUR' in scope
115 | private let _SEEK_END = SEEK_END
116 | extension Whence {
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:115:25: error: cannot find 'SEEK_END' in scope
113 | private let _SEEK_SET = SEEK_SET
114 | private let _SEEK_CUR = SEEK_CUR
115 | private let _SEEK_END = SEEK_END
| `- error: cannot find 'SEEK_END' in scope
116 | extension Whence {
117 | public static let SEEK_SET = Whence(rawValue: _SEEK_SET)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:124:88: error: cannot find type 'off_t' in scope
122 | /// identical to C's `lseek(2)`; returns the new offset.
123 | @discardableResult
124 | public func lseek(_ fd: CInt, _ offset: off_t, _ whence: Whence = .SEEK_SET) throws -> off_t {
| `- error: cannot find type 'off_t' in scope
125 | try check(lseek(fd, offset, whence.rawValue))
126 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:124:41: error: cannot find type 'off_t' in scope
122 | /// identical to C's `lseek(2)`; returns the new offset.
123 | @discardableResult
124 | public func lseek(_ fd: CInt, _ offset: off_t, _ whence: Whence = .SEEK_SET) throws -> off_t {
| `- error: cannot find type 'off_t' in scope
125 | try check(lseek(fd, offset, whence.rawValue))
126 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:159:21: error: cannot find 'F_OK' in scope
157 | public init(rawValue: CInt) { self.rawValue = rawValue }
158 | }
159 | private let _F_OK = F_OK
| `- error: cannot find 'F_OK' in scope
160 | private let _R_OK = R_OK
161 | private let _W_OK = W_OK
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:160:21: error: cannot find 'R_OK' in scope
158 | }
159 | private let _F_OK = F_OK
160 | private let _R_OK = R_OK
| `- error: cannot find 'R_OK' in scope
161 | private let _W_OK = W_OK
162 | private let _X_OK = X_OK
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:161:21: error: cannot find 'W_OK' in scope
159 | private let _F_OK = F_OK
160 | private let _R_OK = R_OK
161 | private let _W_OK = W_OK
| `- error: cannot find 'W_OK' in scope
162 | private let _X_OK = X_OK
163 | extension AccessMode {
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:162:21: error: cannot find 'X_OK' in scope
160 | private let _R_OK = R_OK
161 | private let _W_OK = W_OK
162 | private let _X_OK = X_OK
| `- error: cannot find 'X_OK' in scope
163 | extension AccessMode {
164 | public static let F_OK = AccessMode(rawValue: _F_OK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:181:44: error: cannot find type 'uid_t' in scope
179 |
180 | /// identical to C's `chown(2)`.
181 | public func chown(_ path: String, _ owner: uid_t, _ group: gid_t) throws {
| `- error: cannot find type 'uid_t' in scope
182 | _ = try path.withCString { try check(chown($0, owner, group)) }
183 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:181:60: error: cannot find type 'gid_t' in scope
179 |
180 | /// identical to C's `chown(2)`.
181 | public func chown(_ path: String, _ owner: uid_t, _ group: gid_t) throws {
| `- error: cannot find type 'gid_t' in scope
182 | _ = try path.withCString { try check(chown($0, owner, group)) }
183 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:219:59: error: cannot find '_SC_ARG_MAX' in scope
217 |
218 | // CInt() because Glibc imports these anonymous-enum constants as Int
219 | public static let argMax = SysconfName(rawValue: CInt(_SC_ARG_MAX))
| `- error: cannot find '_SC_ARG_MAX' in scope
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:220:61: error: cannot find '_SC_CHILD_MAX' in scope
218 | // CInt() because Glibc imports these anonymous-enum constants as Int
219 | public static let argMax = SysconfName(rawValue: CInt(_SC_ARG_MAX))
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
| `- error: cannot find '_SC_CHILD_MAX' in scope
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:221:62: error: cannot find '_SC_CLK_TCK' in scope
219 | public static let argMax = SysconfName(rawValue: CInt(_SC_ARG_MAX))
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
| `- error: cannot find '_SC_CLK_TCK' in scope
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:222:63: error: cannot find '_SC_NGROUPS_MAX' in scope
220 | public static let childMax = SysconfName(rawValue: CInt(_SC_CHILD_MAX))
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
| `- error: cannot find '_SC_NGROUPS_MAX' in scope
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:223:60: error: cannot find '_SC_OPEN_MAX' in scope
221 | public static let clockTick = SysconfName(rawValue: CInt(_SC_CLK_TCK))
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
| `- error: cannot find '_SC_OPEN_MAX' in scope
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:224:61: error: cannot find '_SC_PAGESIZE' in scope
222 | public static let ngroupsMax = SysconfName(rawValue: CInt(_SC_NGROUPS_MAX))
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
| `- error: cannot find '_SC_PAGESIZE' in scope
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:225:62: error: cannot find '_SC_STREAM_MAX' in scope
223 | public static let openMax = SysconfName(rawValue: CInt(_SC_OPEN_MAX))
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
| `- error: cannot find '_SC_STREAM_MAX' in scope
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:226:62: error: cannot find '_SC_TZNAME_MAX' in scope
224 | public static let pageSize = SysconfName(rawValue: CInt(_SC_PAGESIZE))
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
| `- error: cannot find '_SC_TZNAME_MAX' in scope
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:227:63: error: cannot find '_SC_JOB_CONTROL' in scope
225 | public static let streamMax = SysconfName(rawValue: CInt(_SC_STREAM_MAX))
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
| `- error: cannot find '_SC_JOB_CONTROL' in scope
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:228:61: error: cannot find '_SC_SAVED_IDS' in scope
226 | public static let tznameMax = SysconfName(rawValue: CInt(_SC_TZNAME_MAX))
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
| `- error: cannot find '_SC_SAVED_IDS' in scope
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
230 | public static let processorsOnline = SysconfName(rawValue: CInt(_SC_NPROCESSORS_ONLN))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:229:60: error: cannot find '_SC_VERSION' in scope
227 | public static let jobControl = SysconfName(rawValue: CInt(_SC_JOB_CONTROL))
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
| `- error: cannot find '_SC_VERSION' in scope
230 | public static let processorsOnline = SysconfName(rawValue: CInt(_SC_NPROCESSORS_ONLN))
231 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:230:69: error: cannot find '_SC_NPROCESSORS_ONLN' in scope
228 | public static let savedIDs = SysconfName(rawValue: CInt(_SC_SAVED_IDS))
229 | public static let version = SysconfName(rawValue: CInt(_SC_VERSION))
230 | public static let processorsOnline = SysconfName(rawValue: CInt(_SC_NPROCESSORS_ONLN))
| `- error: cannot find '_SC_NPROCESSORS_ONLN' in scope
231 | }
232 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:250:61: error: cannot find '_PC_LINK_MAX' in scope
248 |
249 | // CInt() because Glibc imports these anonymous-enum constants as Int
250 | public static let linkMax = PathconfName(rawValue: CInt(_PC_LINK_MAX))
| `- error: cannot find '_PC_LINK_MAX' in scope
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:251:62: error: cannot find '_PC_MAX_CANON' in scope
249 | // CInt() because Glibc imports these anonymous-enum constants as Int
250 | public static let linkMax = PathconfName(rawValue: CInt(_PC_LINK_MAX))
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
| `- error: cannot find '_PC_MAX_CANON' in scope
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:252:62: error: cannot find '_PC_MAX_INPUT' in scope
250 | public static let linkMax = PathconfName(rawValue: CInt(_PC_LINK_MAX))
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
| `- error: cannot find '_PC_MAX_INPUT' in scope
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:253:61: error: cannot find '_PC_NAME_MAX' in scope
251 | public static let maxCanon = PathconfName(rawValue: CInt(_PC_MAX_CANON))
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
| `- error: cannot find '_PC_NAME_MAX' in scope
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:254:61: error: cannot find '_PC_PATH_MAX' in scope
252 | public static let maxInput = PathconfName(rawValue: CInt(_PC_MAX_INPUT))
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
| `- error: cannot find '_PC_PATH_MAX' in scope
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:255:61: error: cannot find '_PC_PIPE_BUF' in scope
253 | public static let nameMax = PathconfName(rawValue: CInt(_PC_NAME_MAX))
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
| `- error: cannot find '_PC_PIPE_BUF' in scope
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:256:69: error: cannot find '_PC_CHOWN_RESTRICTED' in scope
254 | public static let pathMax = PathconfName(rawValue: CInt(_PC_PATH_MAX))
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
| `- error: cannot find '_PC_CHOWN_RESTRICTED' in scope
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
258 | public static let vdisable = PathconfName(rawValue: CInt(_PC_VDISABLE))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:257:61: error: cannot find '_PC_NO_TRUNC' in scope
255 | public static let pipeBuf = PathconfName(rawValue: CInt(_PC_PIPE_BUF))
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
| `- error: cannot find '_PC_NO_TRUNC' in scope
258 | public static let vdisable = PathconfName(rawValue: CInt(_PC_VDISABLE))
259 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:258:62: error: cannot find '_PC_VDISABLE' in scope
256 | public static let chownRestricted = PathconfName(rawValue: CInt(_PC_CHOWN_RESTRICTED))
257 | public static let noTrunc = PathconfName(rawValue: CInt(_PC_NO_TRUNC))
258 | public static let vdisable = PathconfName(rawValue: CInt(_PC_VDISABLE))
| `- error: cannot find '_PC_VDISABLE' in scope
259 | }
260 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:286:45: error: cannot find type 'pid_t' in scope
284 |
285 | /// identical to C's `tcgetpgrp(3)`.
286 | public func tcgetpgrp(_ fd: CInt) throws -> pid_t { try check(C.tcgetpgrp(fd)) }
| `- error: cannot find type 'pid_t' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:289:43: error: cannot find type 'pid_t' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
289 | public func tcsetpgrp(_ fd: CInt, _ pgid: pid_t) throws { try check(C.tcsetpgrp(fd, pgid)) }
| `- error: cannot find type 'pid_t' in scope
290 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:12:33: error: cannot find 'C' in scope
10 |
11 | /// identical to C's `getpid(2)`.
12 | public func getpid() -> pid_t { C.getpid() }
| `- error: cannot find 'C' in scope
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:14:34: error: cannot find 'C' in scope
12 | public func getpid() -> pid_t { C.getpid() }
13 | /// identical to C's `getppid(2)`.
14 | public func getppid() -> pid_t { C.getppid() }
| `- error: cannot find 'C' in scope
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:16:33: error: cannot find 'C' in scope
14 | public func getppid() -> pid_t { C.getppid() }
15 | /// identical to C's `getuid(2)`.
16 | public func getuid() -> uid_t { C.getuid() }
| `- error: cannot find 'C' in scope
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:18:34: error: cannot find 'C' in scope
16 | public func getuid() -> uid_t { C.getuid() }
17 | /// identical to C's `geteuid(2)`.
18 | public func geteuid() -> uid_t { C.geteuid() }
| `- error: cannot find 'C' in scope
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:20:33: error: cannot find 'C' in scope
18 | public func geteuid() -> uid_t { C.geteuid() }
19 | /// identical to C's `getgid(2)`.
20 | public func getgid() -> gid_t { C.getgid() }
| `- error: cannot find 'C' in scope
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:22:34: error: cannot find 'C' in scope
20 | public func getgid() -> gid_t { C.getgid() }
21 | /// identical to C's `getegid(2)`.
22 | public func getegid() -> gid_t { C.getegid() }
| `- error: cannot find 'C' in scope
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:24:34: error: cannot find 'C' in scope
22 | public func getegid() -> gid_t { C.getegid() }
23 | /// identical to C's `getpgrp(2)`.
24 | public func getpgrp() -> pid_t { C.getpgrp() }
| `- error: cannot find 'C' in scope
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:26:53: error: cannot find 'C' in scope
24 | public func getpgrp() -> pid_t { C.getpgrp() }
25 | /// identical to C's `setuid(2)`.
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
| `- error: cannot find 'C' in scope
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:28:53: error: cannot find 'C' in scope
26 | public func setuid(_ uid: uid_t) throws { try check(C.setuid(uid)) }
27 | /// identical to C's `setgid(2)`.
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
| `- error: cannot find 'C' in scope
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:30:69: error: cannot find 'C' in scope
28 | public func setgid(_ gid: gid_t) throws { try check(C.setgid(gid)) }
29 | /// identical to C's `setpgid(2)`.
30 | public func setpgid(_ pid: pid_t, _ pgid: pid_t) throws { try check(C.setpgid(pid, pgid)) }
| `- error: cannot find 'C' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:33:50: error: cannot find 'C' in scope
31 | /// identical to C's `setsid(2)`.
32 | @discardableResult
33 | public func setsid() throws -> pid_t { try check(C.setsid()) }
| `- error: cannot find 'C' in scope
34 |
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:37:36: error: 'nil' requires a contextual type
35 | /// identical to C's `getgroups(2)`: the supplementary group ids.
36 | public func getgroups() throws -> [gid_t] {
37 | let n = try check(getgroups(0, nil))
| `- error: 'nil' requires a contextual type
38 | guard n > 0 else { return [] }
39 | var groups = [gid_t](repeating: 0, count: Int(n))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:39:19: error: cannot find 'gid_t' in scope
37 | let n = try check(getgroups(0, nil))
38 | guard n > 0 else { return [] }
39 | var groups = [gid_t](repeating: 0, count: Int(n))
| `- error: cannot find 'gid_t' in scope
40 | let m = try check(getgroups(n, &groups))
41 | return Array(groups.prefix(Int(m)))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:39:18: error: cannot call value of non-function type '[Any]'
37 | let n = try check(getgroups(0, nil))
38 | guard n > 0 else { return [] }
39 | var groups = [gid_t](repeating: 0, count: Int(n))
| `- error: cannot call value of non-function type '[Any]'
40 | let m = try check(getgroups(n, &groups))
41 | return Array(groups.prefix(Int(m)))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:46:19: error: cannot find 'C' in scope
44 | /// identical to C's `getlogin(3)`.
45 | public func getlogin() -> String? {
46 | guard let p = C.getlogin() else { return nil }
| `- error: cannot find 'C' in scope
47 | return String(cString: p)
48 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:54:48: error: cannot find 'C' in scope
52 | /// identical to C's `fork(2)`; returns 0 in the child and the child's
53 | /// pid in the parent.
54 | public func fork() throws -> pid_t { try check(C.fork()) }
| `- error: cannot find 'C' in scope
55 |
56 | /// identical to C's `_exit(2)`: exits without running cleanup.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:57:50: error: cannot find 'C' in scope
55 |
56 | /// identical to C's `_exit(2)`: exits without running cleanup.
57 | public func _exit(_ status: CInt = 0) -> Never { C._exit(status) }
| `- error: cannot find 'C' in scope
58 |
59 | /// identical to C's `nice(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:64:13: error: cannot find 'C' in scope
62 | // -1 is a legal return value; disambiguate with errno.
63 | Errno.current = Errno(0)
64 | let r = C.nice(increment)
| `- error: cannot find 'C' in scope
65 | if r == -1 && Errno.current.rawValue != 0 { throw Errno.current }
66 | return r
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:71:50: error: cannot find 'C' in scope
69 | /// identical to C's `alarm(2)`.
70 | @discardableResult
71 | public func alarm(_ seconds: UInt32) -> UInt32 { C.alarm(seconds) }
| `- error: cannot find 'C' in scope
72 |
73 | /// identical to C's `pause(2)`: waits until a signal is delivered.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:74:27: error: cannot find 'C' in scope
72 |
73 | /// identical to C's `pause(2)`: waits until a signal is delivered.
74 | public func pause() { _ = C.pause() }
| `- error: cannot find 'C' in scope
75 |
76 | /// identical to C's `sleep(3)`; returns the unslept seconds.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:78:50: error: cannot find 'C' in scope
76 | /// identical to C's `sleep(3)`; returns the unslept seconds.
77 | @discardableResult
78 | public func sleep(_ seconds: UInt32) -> UInt32 { C.sleep(seconds) }
| `- error: cannot find 'C' in scope
79 |
80 | // MARK: file descriptors
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:83:50: error: cannot find 'C' in scope
81 |
82 | /// identical to C's `close(2)`.
83 | public func close(_ fd: CInt) throws { try check(C.close(fd)) }
| `- error: cannot find 'C' in scope
84 |
85 | /// identical to C's `dup(2)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:86:56: error: cannot find 'C' in scope
84 |
85 | /// identical to C's `dup(2)`.
86 | public func dup(_ fd: CInt) throws -> CInt { try check(C.dup(fd)) }
| `- error: cannot find 'C' in scope
87 |
88 | /// identical to C's `dup2(2)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:90:70: error: cannot find 'C' in scope
88 | /// identical to C's `dup2(2)`.
89 | @discardableResult
90 | public func dup2(_ fd: CInt, _ fd2: CInt) throws -> CInt { try check(C.dup2(fd, fd2)) }
| `- error: cannot find 'C' in scope
91 |
92 | /// identical to C's `pipe(2)`; returns the read and write descriptors.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:95:20: error: argument passed to call that takes no arguments
93 | public func pipe() throws -> (read: CInt, write: CInt) {
94 | var fds: [CInt] = [0, 0]
95 | try check(pipe(&fds))
| `- error: argument passed to call that takes no arguments
96 | return (fds[0], fds[1])
97 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:100:42: error: cannot find 'C' in scope
98 |
99 | /// identical to C's `isatty(3)`.
100 | public func isatty(_ fd: CInt) -> Bool { C.isatty(fd) == 1 }
| `- error: cannot find 'C' in scope
101 |
102 | /// identical to C's `ttyname(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:104:19: error: cannot find 'C' in scope
102 | /// identical to C's `ttyname(3)`.
103 | public func ttyname(_ fd: CInt) -> String? {
104 | guard let p = C.ttyname(fd) else { return nil }
| `- error: cannot find 'C' in scope
105 | return String(cString: p)
106 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:133:45: error: extra argument in call
131 | var buf = [UInt8](repeating: 0, count: count)
132 | n = try buf.withUnsafeMutableBytes { raw in
133 | try check(read(fd, raw.baseAddress, count))
| `- error: extra argument in call
134 | }
135 | return Array(buf.prefix(n))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:133:32: error: cannot convert value of type 'UnsafeMutableRawPointer?' to expected argument type 'Int'
131 | var buf = [UInt8](repeating: 0, count: count)
132 | n = try buf.withUnsafeMutableBytes { raw in
133 | try check(read(fd, raw.baseAddress, count))
| `- error: cannot convert value of type 'UnsafeMutableRawPointer?' to expected argument type 'Int'
134 | }
135 | return Array(buf.prefix(n))
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:142:19: error: no exact matches in call to global function 'write'
138 | /// identical to C's `write(2)`; returns the number of bytes written.
139 | @discardableResult
140 | public func write(_ fd: CInt, _ bytes: [UInt8]) throws -> Int {
| `- note: candidate has partially matching parameter list (CInt, [UInt8])
141 | try bytes.withUnsafeBytes { raw in
142 | try check(write(fd, raw.baseAddress, raw.count))
| `- error: no exact matches in call to global function 'write'
143 | }
144 | }
:
146 | /// identical to C's `write(2)`, taking the UTF-8 bytes of a String.
147 | @discardableResult
148 | public func write(_ fd: CInt, _ string: String) throws -> Int {
| `- note: candidate has partially matching parameter list (CInt, String)
149 | try write(fd, Array(string.utf8))
150 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:172:50: error: binary operator '==' cannot be applied to operands of type 'Bool' and 'Int'
170 | /// identical to C's `access(2)`, but returns a Bool.
171 | public func access(_ path: String, _ mode: AccessMode = .F_OK) -> Bool {
172 | path.withCString { access($0, mode.rawValue) == 0 }
| |- error: binary operator '==' cannot be applied to operands of type 'Bool' and 'Int'
| `- note: overloads for '==' exist with these partially matching parameter lists: (Bool, Bool), (Int, Int)
173 | }
174 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:172:31: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
170 | /// identical to C's `access(2)`, but returns a Bool.
171 | public func access(_ path: String, _ mode: AccessMode = .F_OK) -> Bool {
172 | path.withCString { access($0, mode.rawValue) == 0 }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
173 | }
174 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:177:48: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
175 | /// identical to C's `chdir(2)`.
176 | public func chdir(_ path: String) throws {
177 | _ = try path.withCString { try check(chdir($0)) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
178 | }
179 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:187:25: error: argument passed to call that takes no arguments
185 | /// identical to C's `getcwd(3)`.
186 | public func getcwd() throws -> String {
187 | guard let p = getcwd(nil, 0) else { throw Errno.current }
| `- error: argument passed to call that takes no arguments
188 | defer { free(p) }
189 | return String(cString: p)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:187:26: error: 'nil' requires a contextual type
185 | /// identical to C's `getcwd(3)`.
186 | public func getcwd() throws -> String {
187 | guard let p = getcwd(nil, 0) else { throw Errno.current }
| `- error: 'nil' requires a contextual type
188 | defer { free(p) }
189 | return String(cString: p)
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:196:28: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
194 | _ = try existing.withCString { e in
195 | try new.withCString { n in
196 | try check(link(e, n))
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
197 | }
198 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:196:31: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
194 | _ = try existing.withCString { e in
195 | try new.withCString { n in
196 | try check(link(e, n))
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
197 | }
198 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:203:49: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
201 | /// identical to C's `unlink(2)`.
202 | public func unlink(_ path: String) throws {
203 | _ = try path.withCString { try check(unlink($0)) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
204 | }
205 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:208:48: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
206 | /// identical to C's `rmdir(2)`.
207 | public func rmdir(_ path: String) throws {
208 | _ = try path.withCString { try check(rmdir($0)) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
209 | }
210 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:236:26: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SysconfName'
234 | public func sysconf(_ name: SysconfName) throws -> Int? {
235 | Errno.current = Errno(0)
236 | let r = sysconf(name.rawValue)
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SysconfName'
237 | if r == -1 {
238 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:264:41: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
262 | public func pathconf(_ path: String, _ name: PathconfName) throws -> Int? {
263 | Errno.current = Errno(0)
264 | let r = path.withCString { pathconf($0, name.rawValue) }
| `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
265 | if r == -1 {
266 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:264:50: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
262 | public func pathconf(_ path: String, _ name: PathconfName) throws -> Int? {
263 | Errno.current = Errno(0)
264 | let r = path.withCString { pathconf($0, name.rawValue) }
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
265 | if r == -1 {
266 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:275:32: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
273 | public func fpathconf(_ fd: CInt, _ name: PathconfName) throws -> Int? {
274 | Errno.current = Errno(0)
275 | let r = fpathconf(fd, name.rawValue)
| `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'PathconfName'
276 | if r == -1 {
277 | if Errno.current.rawValue != 0 { throw Errno.current }
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:286:63: error: cannot find 'C' in scope
284 |
285 | /// identical to C's `tcgetpgrp(3)`.
286 | public func tcgetpgrp(_ fd: CInt) throws -> pid_t { try check(C.tcgetpgrp(fd)) }
| `- error: cannot find 'C' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Unistd.swift:289:69: error: cannot find 'C' in scope
287 |
288 | /// identical to C's `tcsetpgrp(3)`.
289 | public func tcsetpgrp(_ fd: CInt, _ pgid: pid_t) throws { try check(C.tcsetpgrp(fd, pgid)) }
| `- error: cannot find 'C' in scope
290 |
BUILD FAILURE 6.3 wasm