The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-posix, reference main (6feac9), with Swift 6.3 for Android on 19 Aug 2026 09:05:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

 46 | private let _EACCES = EACCES
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:45:23: error: cannot find 'ENOMEM' in scope
 43 | private let _ECHILD = ECHILD
 44 | private let _EAGAIN = EAGAIN
 45 | private let _ENOMEM = ENOMEM
    |                       `- error: cannot find 'ENOMEM' in scope
 46 | private let _EACCES = EACCES
 47 | private let _EFAULT = EFAULT
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:46:23: error: cannot find 'EACCES' in scope
 44 | private let _EAGAIN = EAGAIN
 45 | private let _ENOMEM = ENOMEM
 46 | private let _EACCES = EACCES
    |                       `- error: cannot find 'EACCES' in scope
 47 | private let _EFAULT = EFAULT
 48 | private let _EBUSY = EBUSY
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:47:23: error: cannot find 'EFAULT' in scope
 45 | private let _ENOMEM = ENOMEM
 46 | private let _EACCES = EACCES
 47 | private let _EFAULT = EFAULT
    |                       `- error: cannot find 'EFAULT' in scope
 48 | private let _EBUSY = EBUSY
 49 | private let _EEXIST = EEXIST
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:48:22: error: cannot find 'EBUSY' in scope
 46 | private let _EACCES = EACCES
 47 | private let _EFAULT = EFAULT
 48 | private let _EBUSY = EBUSY
    |                      `- error: cannot find 'EBUSY' in scope
 49 | private let _EEXIST = EEXIST
 50 | private let _EXDEV = EXDEV
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:49:23: error: cannot find 'EEXIST' in scope
 47 | private let _EFAULT = EFAULT
 48 | private let _EBUSY = EBUSY
 49 | private let _EEXIST = EEXIST
    |                       `- error: cannot find 'EEXIST' in scope
 50 | private let _EXDEV = EXDEV
 51 | private let _ENODEV = ENODEV
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:50:22: error: cannot find 'EXDEV' in scope
 48 | private let _EBUSY = EBUSY
 49 | private let _EEXIST = EEXIST
 50 | private let _EXDEV = EXDEV
    |                      `- error: cannot find 'EXDEV' in scope
 51 | private let _ENODEV = ENODEV
 52 | private let _ENOTDIR = ENOTDIR
/host/spi-builder-workspace/Sources/POSIXGlobals/Errno.swift:51:23: error: cannot find 'ENODEV' in scope
 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 |     }
[17/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 |
[18/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 |
[19/23] Compiling POSIXGlobals Signal.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:19:23: error: cannot find 'SIGHUP' in scope
 17 | }
 18 |
 19 | private let _SIGHUP = SIGHUP
    |                       `- error: cannot find 'SIGHUP' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:20:23: error: cannot find 'SIGINT' in scope
 18 |
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
    |                       `- error: cannot find 'SIGINT' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:21:24: error: cannot find 'SIGQUIT' in scope
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
    |                        `- error: cannot find 'SIGQUIT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:22:23: error: cannot find 'SIGILL' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
    |                       `- error: cannot find 'SIGILL' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:23:24: error: cannot find 'SIGTRAP' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
    |                        `- error: cannot find 'SIGTRAP' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:24:24: error: cannot find 'SIGABRT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
    |                        `- error: cannot find 'SIGABRT' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:25:23: error: cannot find 'SIGFPE' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
    |                       `- error: cannot find 'SIGFPE' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:26:24: error: cannot find 'SIGKILL' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
    |                        `- error: cannot find 'SIGKILL' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:27:23: error: cannot find 'SIGBUS' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
    |                       `- error: cannot find 'SIGBUS' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:28:24: error: cannot find 'SIGSEGV' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
    |                        `- error: cannot find 'SIGSEGV' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:29:23: error: cannot find 'SIGSYS' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
    |                       `- error: cannot find 'SIGSYS' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:30:24: error: cannot find 'SIGPIPE' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
    |                        `- error: cannot find 'SIGPIPE' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:31:24: error: cannot find 'SIGALRM' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
    |                        `- error: cannot find 'SIGALRM' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:32:24: error: cannot find 'SIGTERM' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
    |                        `- error: cannot find 'SIGTERM' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:33:23: error: cannot find 'SIGURG' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
    |                       `- error: cannot find 'SIGURG' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:34:24: error: cannot find 'SIGSTOP' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
    |                        `- error: cannot find 'SIGSTOP' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:35:24: error: cannot find 'SIGTSTP' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
    |                        `- error: cannot find 'SIGTSTP' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:36:24: error: cannot find 'SIGCONT' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
    |                        `- error: cannot find 'SIGCONT' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:37:24: error: cannot find 'SIGCHLD' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
    |                        `- error: cannot find 'SIGCHLD' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:38:24: error: cannot find 'SIGTTIN' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
    |                        `- error: cannot find 'SIGTTIN' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:39:24: error: cannot find 'SIGTTOU' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
    |                        `- error: cannot find 'SIGTTOU' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:40:22: error: cannot find 'SIGIO' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
    |                      `- error: cannot find 'SIGIO' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:41:24: error: cannot find 'SIGXCPU' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
    |                        `- error: cannot find 'SIGXCPU' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:42:24: error: cannot find 'SIGXFSZ' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
    |                        `- error: cannot find 'SIGXFSZ' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:43:26: error: cannot find 'SIGVTALRM' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
    |                          `- error: cannot find 'SIGVTALRM' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:44:24: error: cannot find 'SIGPROF' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
    |                        `- error: cannot find 'SIGPROF' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:45:25: error: cannot find 'SIGWINCH' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
    |                         `- error: cannot find 'SIGWINCH' in scope
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:46:24: error: cannot find 'SIGUSR1' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
    |                        `- error: cannot find 'SIGUSR1' in scope
 47 | private let _SIGUSR2 = SIGUSR2
 48 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:47:24: error: cannot find 'SIGUSR2' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
    |                        `- error: cannot find 'SIGUSR2' in scope
 48 |
 49 | extension Signal {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:82:25: error: cannot find type 'pid_t' in scope
 80 |
 81 | /// identical to C's `kill(2)`.
 82 | public func kill(_ pid: pid_t, _ sig: Signal) throws {
    |                         `- error: cannot find type 'pid_t' in scope
 83 |     try check(kill(pid, sig.rawValue))
 84 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:93:24: error: cannot find 'sigset_t' in scope
 91 | /// A swifty `sigset_t` — like Perl's `POSIX::SigSet`.
 92 | public struct SigSet: Sendable {
 93 |     internal var raw = sigset_t()
    |                        `- error: cannot find 'sigset_t' in scope
 94 |
 95 |     /// An empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:102:24: error: cannot find type 'sigset_t' in scope
100 |         for s in signals { insert(s) }
101 |     }
102 |     internal init(raw: sigset_t) { self.raw = raw }
    |                        `- error: cannot find type 'sigset_t' in scope
103 |
104 |     /// The empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:129:26: error: cannot find 'SIG_BLOCK' in scope
127 |     public init(rawValue: CInt) { self.rawValue = rawValue }
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
    |                          `- error: cannot find 'SIG_BLOCK' in scope
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:130:28: error: cannot find 'SIG_UNBLOCK' in scope
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
    |                            `- error: cannot find 'SIG_UNBLOCK' in scope
131 | private let _SIG_SETMASK = SIG_SETMASK
132 | extension SigmaskHow {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:131:28: error: cannot find 'SIG_SETMASK' in scope
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
    |                            `- error: cannot find 'SIG_SETMASK' in scope
132 | extension SigmaskHow {
133 |     public static let SIG_BLOCK = SigmaskHow(rawValue: _SIG_BLOCK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:173:28: error: cannot find type 'CSigHandler' in scope
171 |     case handler(@convention(c) (CInt) -> Void)
172 |
173 |     internal var cHandler: CSigHandler? {
    |                            `- error: cannot find type 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:180:24: error: cannot find type 'CSigHandler' in scope
178 |         }
179 |     }
180 |     internal init(_ c: CSigHandler?) {
    |                        `- error: cannot find type 'CSigHandler' in scope
181 |         switch unsafeBitCast(c, to: Int.self) {
182 |         case 0: self = .defaultAction
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:88:15: error: cannot find 'C' in scope
 86 | /// identical to C's `raise(3)`.
 87 | public func raise(_ sig: Signal) throws {
 88 |     try check(C.raise(sig.rawValue))
    |               `- error: cannot find 'C' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:96:21: error: cannot find 'sigemptyset' in scope
 94 |
 95 |     /// An empty set.
 96 |     public init() { sigemptyset(&raw) }
    |                     `- error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:99:9: error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
 99 |         sigemptyset(&raw)
    |         `- error: cannot find 'sigemptyset' in scope
100 |         for s in signals { insert(s) }
101 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:109:9: error: cannot find 'sigfillset' in scope
107 |     public static var all: SigSet {
108 |         var s = SigSet()
109 |         sigfillset(&s.raw)
    |         `- error: cannot find 'sigfillset' in scope
110 |         return s
111 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:114:50: error: cannot find 'sigaddset' in scope
112 |
113 |     /// `sigaddset`.
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigaddset' in scope
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:116:50: error: cannot find 'sigdelset' in scope
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigdelset' in scope
117 |     /// `sigismember`.
118 |     public func contains(_ sig: Signal) -> Bool {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:120:16: error: cannot find 'sigismember' in scope
118 |     public func contains(_ sig: Signal) -> Bool {
119 |         var copy = raw
120 |         return sigismember(&copy, sig.rawValue) == 1
    |                `- error: cannot find 'sigismember' in scope
121 |     }
122 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:141:15: error: cannot find 'sigset_t' in scope
139 | @discardableResult
140 | public func sigprocmask(_ how: SigmaskHow, _ set: SigSet?) throws -> SigSet {
141 |     var old = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:51: error: extra argument in call
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                                   `- error: extra argument in call
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:45: error: cannot convert value of type '_' to expected argument type 'SigSet'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                             `- error: cannot convert value of type '_' to expected argument type 'SigSet'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:50: error: extra argument in call
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                                  `- error: extra argument in call
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:147:18: error: extraneous argument label 'raw:' in call
145 |         try check(sigprocmask(how.rawValue, nil, &old))
146 |     }
147 |     return SigSet(raw: old)
    |                  `- error: extraneous argument label 'raw:' in call
148 | }
149 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:152:15: error: cannot find 'sigset_t' in scope
150 | /// identical to C's `sigpending(2)`.
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:153:26: error: argument passed to call that takes no arguments
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
    |                          `- error: argument passed to call that takes no arguments
154 |     return SigSet(raw: set)
155 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:154:18: error: extraneous argument label 'raw:' in call
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
    |                  `- error: extraneous argument label 'raw:' in call
155 | }
156 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:161:20: error: cannot convert value of type '_' to expected argument type 'SigSet'
159 | public func sigsuspend(_ mask: SigSet) {
160 |     var m = mask.raw
161 |     _ = sigsuspend(&m)
    |                    `- error: cannot convert value of type '_' to expected argument type 'SigSet'
162 | }
163 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:176:58: error: cannot find 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
176 |         case .ignore: return unsafeBitCast(1 as Int, to: CSigHandler.self) // SIG_IGN
    |                                                          `- error: cannot find 'CSigHandler' in scope
177 |         case .handler(let f): return f
178 |         }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:205:25: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
    |                         `- error: missing argument for parameter #1 in call
206 |     if let action {
207 |         var new = sigaction()
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:207:29: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
206 |     if let action {
207 |         var new = sigaction()
    |                             `- error: missing argument for parameter #1 in call
208 |         #if canImport(Darwin)
209 |         new.__sigaction_u.__sa_handler = action.handler.cHandler
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:49: error: extra argument in call
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                                 `- error: extra argument in call
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:43: error: cannot convert value of type '_' to expected argument type 'SigAction'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                           `- error: cannot convert value of type '_' to expected argument type 'SigAction'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:48: error: extra argument in call
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                                `- error: extra argument in call
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:224:55: error: extraneous argument label 'raw:' in call
222 |     let oldHandler = SigHandler(old.__sigaction_handler.sa_handler)
223 |     #endif
224 |     return SigAction(handler: oldHandler, mask: SigSet(raw: old.sa_mask), flags: old.sa_flags)
    |                                                       `- error: extraneous argument label 'raw:' in call
225 | }
226 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:13:17: error: argument passed to call that takes no arguments
11 | public func ctermid() -> String {
12 |     var buf = [CChar](repeating: 0, count: 1024) // >= L_ctermid
13 |     _ = ctermid(&buf)
   |                 `- error: argument passed to call that takes no arguments
14 |     return stringFromCChars(buf)
15 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:20:14: error: cannot find 'C' in scope
18 | /// user id (implemented via `getpwuid_r(3)`, which is what it means).
19 | public func cuserid() -> String? {
20 |     getpwuid(C.geteuid())?.name
   |              `- error: cannot find 'C' in scope
21 | }
22 |
/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/Stdio.swift:25:49: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
23 | /// identical to C's `remove(3)`.
24 | public func remove(_ path: String) throws {
25 |     _ = try path.withCString { try check(remove($0)) }
   |                                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
26 | }
27 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:33: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:42:32: error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
40 | public func mkstemp(_ template: String) throws -> (fd: CInt, path: String) {
41 |     var buf = Array(template.utf8CString)
42 |     let fd = try check(mkstemp(&buf))
   |                                `- error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
43 |     return (fd, stringFromCChars(buf))
44 | }
[20/23] Compiling POSIXGlobals Stdio.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:19:23: error: cannot find 'SIGHUP' in scope
 17 | }
 18 |
 19 | private let _SIGHUP = SIGHUP
    |                       `- error: cannot find 'SIGHUP' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:20:23: error: cannot find 'SIGINT' in scope
 18 |
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
    |                       `- error: cannot find 'SIGINT' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:21:24: error: cannot find 'SIGQUIT' in scope
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
    |                        `- error: cannot find 'SIGQUIT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:22:23: error: cannot find 'SIGILL' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
    |                       `- error: cannot find 'SIGILL' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:23:24: error: cannot find 'SIGTRAP' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
    |                        `- error: cannot find 'SIGTRAP' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:24:24: error: cannot find 'SIGABRT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
    |                        `- error: cannot find 'SIGABRT' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:25:23: error: cannot find 'SIGFPE' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
    |                       `- error: cannot find 'SIGFPE' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:26:24: error: cannot find 'SIGKILL' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
    |                        `- error: cannot find 'SIGKILL' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:27:23: error: cannot find 'SIGBUS' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
    |                       `- error: cannot find 'SIGBUS' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:28:24: error: cannot find 'SIGSEGV' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
    |                        `- error: cannot find 'SIGSEGV' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:29:23: error: cannot find 'SIGSYS' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
    |                       `- error: cannot find 'SIGSYS' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:30:24: error: cannot find 'SIGPIPE' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
    |                        `- error: cannot find 'SIGPIPE' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:31:24: error: cannot find 'SIGALRM' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
    |                        `- error: cannot find 'SIGALRM' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:32:24: error: cannot find 'SIGTERM' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
    |                        `- error: cannot find 'SIGTERM' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:33:23: error: cannot find 'SIGURG' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
    |                       `- error: cannot find 'SIGURG' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:34:24: error: cannot find 'SIGSTOP' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
    |                        `- error: cannot find 'SIGSTOP' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:35:24: error: cannot find 'SIGTSTP' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
    |                        `- error: cannot find 'SIGTSTP' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:36:24: error: cannot find 'SIGCONT' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
    |                        `- error: cannot find 'SIGCONT' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:37:24: error: cannot find 'SIGCHLD' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
    |                        `- error: cannot find 'SIGCHLD' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:38:24: error: cannot find 'SIGTTIN' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
    |                        `- error: cannot find 'SIGTTIN' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:39:24: error: cannot find 'SIGTTOU' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
    |                        `- error: cannot find 'SIGTTOU' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:40:22: error: cannot find 'SIGIO' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
    |                      `- error: cannot find 'SIGIO' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:41:24: error: cannot find 'SIGXCPU' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
    |                        `- error: cannot find 'SIGXCPU' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:42:24: error: cannot find 'SIGXFSZ' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
    |                        `- error: cannot find 'SIGXFSZ' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:43:26: error: cannot find 'SIGVTALRM' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
    |                          `- error: cannot find 'SIGVTALRM' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:44:24: error: cannot find 'SIGPROF' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
    |                        `- error: cannot find 'SIGPROF' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:45:25: error: cannot find 'SIGWINCH' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
    |                         `- error: cannot find 'SIGWINCH' in scope
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:46:24: error: cannot find 'SIGUSR1' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
    |                        `- error: cannot find 'SIGUSR1' in scope
 47 | private let _SIGUSR2 = SIGUSR2
 48 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:47:24: error: cannot find 'SIGUSR2' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
    |                        `- error: cannot find 'SIGUSR2' in scope
 48 |
 49 | extension Signal {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:82:25: error: cannot find type 'pid_t' in scope
 80 |
 81 | /// identical to C's `kill(2)`.
 82 | public func kill(_ pid: pid_t, _ sig: Signal) throws {
    |                         `- error: cannot find type 'pid_t' in scope
 83 |     try check(kill(pid, sig.rawValue))
 84 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:93:24: error: cannot find 'sigset_t' in scope
 91 | /// A swifty `sigset_t` — like Perl's `POSIX::SigSet`.
 92 | public struct SigSet: Sendable {
 93 |     internal var raw = sigset_t()
    |                        `- error: cannot find 'sigset_t' in scope
 94 |
 95 |     /// An empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:102:24: error: cannot find type 'sigset_t' in scope
100 |         for s in signals { insert(s) }
101 |     }
102 |     internal init(raw: sigset_t) { self.raw = raw }
    |                        `- error: cannot find type 'sigset_t' in scope
103 |
104 |     /// The empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:129:26: error: cannot find 'SIG_BLOCK' in scope
127 |     public init(rawValue: CInt) { self.rawValue = rawValue }
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
    |                          `- error: cannot find 'SIG_BLOCK' in scope
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:130:28: error: cannot find 'SIG_UNBLOCK' in scope
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
    |                            `- error: cannot find 'SIG_UNBLOCK' in scope
131 | private let _SIG_SETMASK = SIG_SETMASK
132 | extension SigmaskHow {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:131:28: error: cannot find 'SIG_SETMASK' in scope
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
    |                            `- error: cannot find 'SIG_SETMASK' in scope
132 | extension SigmaskHow {
133 |     public static let SIG_BLOCK = SigmaskHow(rawValue: _SIG_BLOCK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:173:28: error: cannot find type 'CSigHandler' in scope
171 |     case handler(@convention(c) (CInt) -> Void)
172 |
173 |     internal var cHandler: CSigHandler? {
    |                            `- error: cannot find type 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:180:24: error: cannot find type 'CSigHandler' in scope
178 |         }
179 |     }
180 |     internal init(_ c: CSigHandler?) {
    |                        `- error: cannot find type 'CSigHandler' in scope
181 |         switch unsafeBitCast(c, to: Int.self) {
182 |         case 0: self = .defaultAction
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:88:15: error: cannot find 'C' in scope
 86 | /// identical to C's `raise(3)`.
 87 | public func raise(_ sig: Signal) throws {
 88 |     try check(C.raise(sig.rawValue))
    |               `- error: cannot find 'C' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:96:21: error: cannot find 'sigemptyset' in scope
 94 |
 95 |     /// An empty set.
 96 |     public init() { sigemptyset(&raw) }
    |                     `- error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:99:9: error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
 99 |         sigemptyset(&raw)
    |         `- error: cannot find 'sigemptyset' in scope
100 |         for s in signals { insert(s) }
101 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:109:9: error: cannot find 'sigfillset' in scope
107 |     public static var all: SigSet {
108 |         var s = SigSet()
109 |         sigfillset(&s.raw)
    |         `- error: cannot find 'sigfillset' in scope
110 |         return s
111 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:114:50: error: cannot find 'sigaddset' in scope
112 |
113 |     /// `sigaddset`.
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigaddset' in scope
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:116:50: error: cannot find 'sigdelset' in scope
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigdelset' in scope
117 |     /// `sigismember`.
118 |     public func contains(_ sig: Signal) -> Bool {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:120:16: error: cannot find 'sigismember' in scope
118 |     public func contains(_ sig: Signal) -> Bool {
119 |         var copy = raw
120 |         return sigismember(&copy, sig.rawValue) == 1
    |                `- error: cannot find 'sigismember' in scope
121 |     }
122 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:141:15: error: cannot find 'sigset_t' in scope
139 | @discardableResult
140 | public func sigprocmask(_ how: SigmaskHow, _ set: SigSet?) throws -> SigSet {
141 |     var old = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:51: error: extra argument in call
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                                   `- error: extra argument in call
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:45: error: cannot convert value of type '_' to expected argument type 'SigSet'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                             `- error: cannot convert value of type '_' to expected argument type 'SigSet'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:50: error: extra argument in call
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                                  `- error: extra argument in call
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:147:18: error: extraneous argument label 'raw:' in call
145 |         try check(sigprocmask(how.rawValue, nil, &old))
146 |     }
147 |     return SigSet(raw: old)
    |                  `- error: extraneous argument label 'raw:' in call
148 | }
149 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:152:15: error: cannot find 'sigset_t' in scope
150 | /// identical to C's `sigpending(2)`.
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:153:26: error: argument passed to call that takes no arguments
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
    |                          `- error: argument passed to call that takes no arguments
154 |     return SigSet(raw: set)
155 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:154:18: error: extraneous argument label 'raw:' in call
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
    |                  `- error: extraneous argument label 'raw:' in call
155 | }
156 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:161:20: error: cannot convert value of type '_' to expected argument type 'SigSet'
159 | public func sigsuspend(_ mask: SigSet) {
160 |     var m = mask.raw
161 |     _ = sigsuspend(&m)
    |                    `- error: cannot convert value of type '_' to expected argument type 'SigSet'
162 | }
163 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:176:58: error: cannot find 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
176 |         case .ignore: return unsafeBitCast(1 as Int, to: CSigHandler.self) // SIG_IGN
    |                                                          `- error: cannot find 'CSigHandler' in scope
177 |         case .handler(let f): return f
178 |         }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:205:25: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
    |                         `- error: missing argument for parameter #1 in call
206 |     if let action {
207 |         var new = sigaction()
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:207:29: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
206 |     if let action {
207 |         var new = sigaction()
    |                             `- error: missing argument for parameter #1 in call
208 |         #if canImport(Darwin)
209 |         new.__sigaction_u.__sa_handler = action.handler.cHandler
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:49: error: extra argument in call
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                                 `- error: extra argument in call
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:43: error: cannot convert value of type '_' to expected argument type 'SigAction'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                           `- error: cannot convert value of type '_' to expected argument type 'SigAction'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:48: error: extra argument in call
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                                `- error: extra argument in call
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:224:55: error: extraneous argument label 'raw:' in call
222 |     let oldHandler = SigHandler(old.__sigaction_handler.sa_handler)
223 |     #endif
224 |     return SigAction(handler: oldHandler, mask: SigSet(raw: old.sa_mask), flags: old.sa_flags)
    |                                                       `- error: extraneous argument label 'raw:' in call
225 | }
226 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:13:17: error: argument passed to call that takes no arguments
11 | public func ctermid() -> String {
12 |     var buf = [CChar](repeating: 0, count: 1024) // >= L_ctermid
13 |     _ = ctermid(&buf)
   |                 `- error: argument passed to call that takes no arguments
14 |     return stringFromCChars(buf)
15 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:20:14: error: cannot find 'C' in scope
18 | /// user id (implemented via `getpwuid_r(3)`, which is what it means).
19 | public func cuserid() -> String? {
20 |     getpwuid(C.geteuid())?.name
   |              `- error: cannot find 'C' in scope
21 | }
22 |
/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/Stdio.swift:25:49: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
23 | /// identical to C's `remove(3)`.
24 | public func remove(_ path: String) throws {
25 |     _ = try path.withCString { try check(remove($0)) }
   |                                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
26 | }
27 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:33: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:42:32: error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
40 | public func mkstemp(_ template: String) throws -> (fd: CInt, path: String) {
41 |     var buf = Array(template.utf8CString)
42 |     let fd = try check(mkstemp(&buf))
   |                                `- error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
43 |     return (fd, stringFromCChars(buf))
44 | }
[21/23] Compiling POSIXGlobals Fcntl.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:14:25: error: cannot find 'O_RDONLY' in scope
12 |     public init(rawValue: CInt) { self.rawValue = rawValue }
13 | }
14 | private let _O_RDONLY = O_RDONLY
   |                         `- error: cannot find 'O_RDONLY' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:15:25: error: cannot find 'O_WRONLY' in scope
13 | }
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
   |                         `- error: cannot find 'O_WRONLY' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:16:23: error: cannot find 'O_RDWR' in scope
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
   |                       `- error: cannot find 'O_RDWR' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:17:25: error: cannot find 'O_APPEND' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
   |                         `- error: cannot find 'O_APPEND' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:18:24: error: cannot find 'O_CREAT' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
   |                        `- error: cannot find 'O_CREAT' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:19:23: error: cannot find 'O_EXCL' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
   |                       `- error: cannot find 'O_EXCL' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:20:24: error: cannot find 'O_TRUNC' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
   |                        `- error: cannot find 'O_TRUNC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:21:27: error: cannot find 'O_NONBLOCK' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
   |                           `- error: cannot find 'O_NONBLOCK' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:22:25: error: cannot find 'O_NOCTTY' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
   |                         `- error: cannot find 'O_NOCTTY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:23:26: error: cannot find 'O_CLOEXEC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
   |                          `- error: cannot find 'O_CLOEXEC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:24:27: error: cannot find 'O_NOFOLLOW' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
   |                           `- error: cannot find 'O_NOFOLLOW' in scope
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:25:28: error: cannot find 'O_DIRECTORY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
   |                            `- error: cannot find 'O_DIRECTORY' in scope
26 | private let _O_SYNC = O_SYNC
27 | extension OpenFlags {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:26:23: error: cannot find 'O_SYNC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
   |                       `- error: cannot find 'O_SYNC' in scope
27 | extension OpenFlags {
28 |     public static let O_RDONLY = OpenFlags(rawValue: _O_RDONLY) // == []
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:44:74: error: cannot find type 'mode_t' in scope
42 |
43 | /// identical to C's `open(2)`; returns the file descriptor.
44 | public func open(_ path: String, _ flags: OpenFlags = .O_RDONLY, _ mode: mode_t = 0o666) throws -> CInt {
   |                                                                          `- error: cannot find type 'mode_t' in scope
45 |     try path.withCString { try check(open($0, flags.rawValue, mode)) }
46 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:49:43: error: cannot find type 'mode_t' in scope
47 |
48 | /// identical to C's `creat(2)`; returns the file descriptor.
49 | public func creat(_ path: String, _ mode: mode_t = 0o666) throws -> CInt {
   |                                           `- error: cannot find type 'mode_t' in scope
50 |     try path.withCString { try check(creat($0, mode)) }
51 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:58:24: error: cannot find 'F_DUPFD' in scope
56 |     public init(rawValue: CInt) { self.rawValue = rawValue }
57 | }
58 | private let _F_DUPFD = F_DUPFD
   |                        `- error: cannot find 'F_DUPFD' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:59:24: error: cannot find 'F_GETFD' in scope
57 | }
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
   |                        `- error: cannot find 'F_GETFD' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:60:24: error: cannot find 'F_SETFD' in scope
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
   |                        `- error: cannot find 'F_SETFD' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:61:24: error: cannot find 'F_GETFL' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
   |                        `- error: cannot find 'F_GETFL' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:62:24: error: cannot find 'F_SETFL' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
   |                        `- error: cannot find 'F_SETFL' in scope
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:63:25: error: cannot find 'F_GETOWN' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
   |                         `- error: cannot find 'F_GETOWN' in scope
64 | private let _F_SETOWN = F_SETOWN
65 | extension FcntlCommand {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:64:25: error: cannot find 'F_SETOWN' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
   |                         `- error: cannot find 'F_SETOWN' in scope
65 | extension FcntlCommand {
66 |     public static let F_DUPFD = FcntlCommand(rawValue: _F_DUPFD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:80:29: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
78 | @discardableResult
79 | public func fcntl(_ fd: CInt, _ cmd: FcntlCommand, _ arg: CInt = 0) throws -> CInt {
80 |     try check(fcntl(fd, cmd.rawValue, arg))
   |                             `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
81 | }
82 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:15:23: error: cannot find 'LC_ALL' in scope
 13 |     public init(rawValue: CInt) { self.rawValue = rawValue }
 14 | }
 15 | private let _LC_ALL = LC_ALL
    |                       `- error: cannot find 'LC_ALL' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:16:27: error: cannot find 'LC_COLLATE' in scope
 14 | }
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
    |                           `- error: cannot find 'LC_COLLATE' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:17:25: error: cannot find 'LC_CTYPE' in scope
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
    |                         `- error: cannot find 'LC_CTYPE' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:18:28: error: cannot find 'LC_MONETARY' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
    |                            `- error: cannot find 'LC_MONETARY' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:19:27: error: cannot find 'LC_NUMERIC' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
    |                           `- error: cannot find 'LC_NUMERIC' in scope
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:20:24: error: cannot find 'LC_TIME' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
    |                        `- error: cannot find 'LC_TIME' in scope
 21 | private let _LC_MESSAGES = LC_MESSAGES
 22 | extension LocaleCategory {
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:21:28: error: cannot find 'LC_MESSAGES' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
    |                            `- error: cannot find 'LC_MESSAGES' in scope
 22 | extension LocaleCategory {
 23 |     public static let LC_ALL = LocaleCategory(rawValue: _LC_ALL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:39:68: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 37 |     let result: UnsafeMutablePointer<CChar>?
 38 |     if let locale {
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
    |                                                                    `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:16: error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                |- error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
    |                `- note: arguments to generic parameter 'Wrapped' ('String' and 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')) are expected to be equal
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:37: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                                     `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:88:19: error: cannot find 'C' in scope
 86 | /// identical to C's `localeconv(3)`, but returns a swifty `Lconv`.
 87 | public func localeconv() -> Lconv {
 88 |     guard let p = C.localeconv() else {
    |                   `- error: cannot find 'C' in scope
 89 |         return Lconv(
 90 |             decimalPoint: ".", thousandsSep: "", grouping: [],
[22/23] Compiling POSIXGlobals Limits.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:14:25: error: cannot find 'O_RDONLY' in scope
12 |     public init(rawValue: CInt) { self.rawValue = rawValue }
13 | }
14 | private let _O_RDONLY = O_RDONLY
   |                         `- error: cannot find 'O_RDONLY' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:15:25: error: cannot find 'O_WRONLY' in scope
13 | }
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
   |                         `- error: cannot find 'O_WRONLY' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:16:23: error: cannot find 'O_RDWR' in scope
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
   |                       `- error: cannot find 'O_RDWR' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:17:25: error: cannot find 'O_APPEND' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
   |                         `- error: cannot find 'O_APPEND' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:18:24: error: cannot find 'O_CREAT' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
   |                        `- error: cannot find 'O_CREAT' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:19:23: error: cannot find 'O_EXCL' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
   |                       `- error: cannot find 'O_EXCL' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:20:24: error: cannot find 'O_TRUNC' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
   |                        `- error: cannot find 'O_TRUNC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:21:27: error: cannot find 'O_NONBLOCK' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
   |                           `- error: cannot find 'O_NONBLOCK' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:22:25: error: cannot find 'O_NOCTTY' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
   |                         `- error: cannot find 'O_NOCTTY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:23:26: error: cannot find 'O_CLOEXEC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
   |                          `- error: cannot find 'O_CLOEXEC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:24:27: error: cannot find 'O_NOFOLLOW' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
   |                           `- error: cannot find 'O_NOFOLLOW' in scope
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:25:28: error: cannot find 'O_DIRECTORY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
   |                            `- error: cannot find 'O_DIRECTORY' in scope
26 | private let _O_SYNC = O_SYNC
27 | extension OpenFlags {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:26:23: error: cannot find 'O_SYNC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
   |                       `- error: cannot find 'O_SYNC' in scope
27 | extension OpenFlags {
28 |     public static let O_RDONLY = OpenFlags(rawValue: _O_RDONLY) // == []
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:44:74: error: cannot find type 'mode_t' in scope
42 |
43 | /// identical to C's `open(2)`; returns the file descriptor.
44 | public func open(_ path: String, _ flags: OpenFlags = .O_RDONLY, _ mode: mode_t = 0o666) throws -> CInt {
   |                                                                          `- error: cannot find type 'mode_t' in scope
45 |     try path.withCString { try check(open($0, flags.rawValue, mode)) }
46 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:49:43: error: cannot find type 'mode_t' in scope
47 |
48 | /// identical to C's `creat(2)`; returns the file descriptor.
49 | public func creat(_ path: String, _ mode: mode_t = 0o666) throws -> CInt {
   |                                           `- error: cannot find type 'mode_t' in scope
50 |     try path.withCString { try check(creat($0, mode)) }
51 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:58:24: error: cannot find 'F_DUPFD' in scope
56 |     public init(rawValue: CInt) { self.rawValue = rawValue }
57 | }
58 | private let _F_DUPFD = F_DUPFD
   |                        `- error: cannot find 'F_DUPFD' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:59:24: error: cannot find 'F_GETFD' in scope
57 | }
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
   |                        `- error: cannot find 'F_GETFD' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:60:24: error: cannot find 'F_SETFD' in scope
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
   |                        `- error: cannot find 'F_SETFD' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:61:24: error: cannot find 'F_GETFL' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
   |                        `- error: cannot find 'F_GETFL' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:62:24: error: cannot find 'F_SETFL' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
   |                        `- error: cannot find 'F_SETFL' in scope
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:63:25: error: cannot find 'F_GETOWN' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
   |                         `- error: cannot find 'F_GETOWN' in scope
64 | private let _F_SETOWN = F_SETOWN
65 | extension FcntlCommand {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:64:25: error: cannot find 'F_SETOWN' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
   |                         `- error: cannot find 'F_SETOWN' in scope
65 | extension FcntlCommand {
66 |     public static let F_DUPFD = FcntlCommand(rawValue: _F_DUPFD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:80:29: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
78 | @discardableResult
79 | public func fcntl(_ fd: CInt, _ cmd: FcntlCommand, _ arg: CInt = 0) throws -> CInt {
80 |     try check(fcntl(fd, cmd.rawValue, arg))
   |                             `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
81 | }
82 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:15:23: error: cannot find 'LC_ALL' in scope
 13 |     public init(rawValue: CInt) { self.rawValue = rawValue }
 14 | }
 15 | private let _LC_ALL = LC_ALL
    |                       `- error: cannot find 'LC_ALL' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:16:27: error: cannot find 'LC_COLLATE' in scope
 14 | }
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
    |                           `- error: cannot find 'LC_COLLATE' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:17:25: error: cannot find 'LC_CTYPE' in scope
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
    |                         `- error: cannot find 'LC_CTYPE' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:18:28: error: cannot find 'LC_MONETARY' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
    |                            `- error: cannot find 'LC_MONETARY' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:19:27: error: cannot find 'LC_NUMERIC' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
    |                           `- error: cannot find 'LC_NUMERIC' in scope
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:20:24: error: cannot find 'LC_TIME' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
    |                        `- error: cannot find 'LC_TIME' in scope
 21 | private let _LC_MESSAGES = LC_MESSAGES
 22 | extension LocaleCategory {
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:21:28: error: cannot find 'LC_MESSAGES' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
    |                            `- error: cannot find 'LC_MESSAGES' in scope
 22 | extension LocaleCategory {
 23 |     public static let LC_ALL = LocaleCategory(rawValue: _LC_ALL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:39:68: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 37 |     let result: UnsafeMutablePointer<CChar>?
 38 |     if let locale {
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
    |                                                                    `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:16: error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                |- error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
    |                `- note: arguments to generic parameter 'Wrapped' ('String' and 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')) are expected to be equal
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:37: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                                     `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:88:19: error: cannot find 'C' in scope
 86 | /// identical to C's `localeconv(3)`, but returns a swifty `Lconv`.
 87 | public func localeconv() -> Lconv {
 88 |     guard let p = C.localeconv() else {
    |                   `- error: cannot find 'C' in scope
 89 |         return Lconv(
 90 |             decimalPoint: ".", thousandsSep: "", grouping: [],
[23/23] Compiling POSIXGlobals Locale.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:14:25: error: cannot find 'O_RDONLY' in scope
12 |     public init(rawValue: CInt) { self.rawValue = rawValue }
13 | }
14 | private let _O_RDONLY = O_RDONLY
   |                         `- error: cannot find 'O_RDONLY' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:15:25: error: cannot find 'O_WRONLY' in scope
13 | }
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
   |                         `- error: cannot find 'O_WRONLY' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:16:23: error: cannot find 'O_RDWR' in scope
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
   |                       `- error: cannot find 'O_RDWR' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:17:25: error: cannot find 'O_APPEND' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
   |                         `- error: cannot find 'O_APPEND' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:18:24: error: cannot find 'O_CREAT' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
   |                        `- error: cannot find 'O_CREAT' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:19:23: error: cannot find 'O_EXCL' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
   |                       `- error: cannot find 'O_EXCL' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:20:24: error: cannot find 'O_TRUNC' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
   |                        `- error: cannot find 'O_TRUNC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:21:27: error: cannot find 'O_NONBLOCK' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
   |                           `- error: cannot find 'O_NONBLOCK' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:22:25: error: cannot find 'O_NOCTTY' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
   |                         `- error: cannot find 'O_NOCTTY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:23:26: error: cannot find 'O_CLOEXEC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
   |                          `- error: cannot find 'O_CLOEXEC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:24:27: error: cannot find 'O_NOFOLLOW' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
   |                           `- error: cannot find 'O_NOFOLLOW' in scope
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:25:28: error: cannot find 'O_DIRECTORY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
   |                            `- error: cannot find 'O_DIRECTORY' in scope
26 | private let _O_SYNC = O_SYNC
27 | extension OpenFlags {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:26:23: error: cannot find 'O_SYNC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
   |                       `- error: cannot find 'O_SYNC' in scope
27 | extension OpenFlags {
28 |     public static let O_RDONLY = OpenFlags(rawValue: _O_RDONLY) // == []
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:44:74: error: cannot find type 'mode_t' in scope
42 |
43 | /// identical to C's `open(2)`; returns the file descriptor.
44 | public func open(_ path: String, _ flags: OpenFlags = .O_RDONLY, _ mode: mode_t = 0o666) throws -> CInt {
   |                                                                          `- error: cannot find type 'mode_t' in scope
45 |     try path.withCString { try check(open($0, flags.rawValue, mode)) }
46 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:49:43: error: cannot find type 'mode_t' in scope
47 |
48 | /// identical to C's `creat(2)`; returns the file descriptor.
49 | public func creat(_ path: String, _ mode: mode_t = 0o666) throws -> CInt {
   |                                           `- error: cannot find type 'mode_t' in scope
50 |     try path.withCString { try check(creat($0, mode)) }
51 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:58:24: error: cannot find 'F_DUPFD' in scope
56 |     public init(rawValue: CInt) { self.rawValue = rawValue }
57 | }
58 | private let _F_DUPFD = F_DUPFD
   |                        `- error: cannot find 'F_DUPFD' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:59:24: error: cannot find 'F_GETFD' in scope
57 | }
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
   |                        `- error: cannot find 'F_GETFD' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:60:24: error: cannot find 'F_SETFD' in scope
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
   |                        `- error: cannot find 'F_SETFD' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:61:24: error: cannot find 'F_GETFL' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
   |                        `- error: cannot find 'F_GETFL' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:62:24: error: cannot find 'F_SETFL' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
   |                        `- error: cannot find 'F_SETFL' in scope
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:63:25: error: cannot find 'F_GETOWN' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
   |                         `- error: cannot find 'F_GETOWN' in scope
64 | private let _F_SETOWN = F_SETOWN
65 | extension FcntlCommand {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:64:25: error: cannot find 'F_SETOWN' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
   |                         `- error: cannot find 'F_SETOWN' in scope
65 | extension FcntlCommand {
66 |     public static let F_DUPFD = FcntlCommand(rawValue: _F_DUPFD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:80:29: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
78 | @discardableResult
79 | public func fcntl(_ fd: CInt, _ cmd: FcntlCommand, _ arg: CInt = 0) throws -> CInt {
80 |     try check(fcntl(fd, cmd.rawValue, arg))
   |                             `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
81 | }
82 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:15:23: error: cannot find 'LC_ALL' in scope
 13 |     public init(rawValue: CInt) { self.rawValue = rawValue }
 14 | }
 15 | private let _LC_ALL = LC_ALL
    |                       `- error: cannot find 'LC_ALL' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:16:27: error: cannot find 'LC_COLLATE' in scope
 14 | }
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
    |                           `- error: cannot find 'LC_COLLATE' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:17:25: error: cannot find 'LC_CTYPE' in scope
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
    |                         `- error: cannot find 'LC_CTYPE' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:18:28: error: cannot find 'LC_MONETARY' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
    |                            `- error: cannot find 'LC_MONETARY' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:19:27: error: cannot find 'LC_NUMERIC' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
    |                           `- error: cannot find 'LC_NUMERIC' in scope
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:20:24: error: cannot find 'LC_TIME' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
    |                        `- error: cannot find 'LC_TIME' in scope
 21 | private let _LC_MESSAGES = LC_MESSAGES
 22 | extension LocaleCategory {
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:21:28: error: cannot find 'LC_MESSAGES' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
    |                            `- error: cannot find 'LC_MESSAGES' in scope
 22 | extension LocaleCategory {
 23 |     public static let LC_ALL = LocaleCategory(rawValue: _LC_ALL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:39:68: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 37 |     let result: UnsafeMutablePointer<CChar>?
 38 |     if let locale {
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
    |                                                                    `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:16: error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                |- error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
    |                `- note: arguments to generic parameter 'Wrapped' ('String' and 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')) are expected to be equal
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:37: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                                     `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:88:19: error: cannot find 'C' in scope
 86 | /// identical to C's `localeconv(3)`, but returns a swifty `Lconv`.
 87 | public func localeconv() -> Lconv {
 88 |     guard let p = C.localeconv() else {
    |                   `- error: cannot find 'C' in scope
 89 |         return Lconv(
 90 |             decimalPoint: ".", thousandsSep: "", grouping: [],
BUILD FAILURE 6.3 android