Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Sources/NIOPosix/System.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ let S_IFBLK = UInt32(SwiftGlibc.S_IFBLK)
private let sysClose = close
private let sysShutdown = shutdown
private let sysBind = bind
private let sysFcntl: (CInt, CInt, CInt) -> CInt = fcntl
private let sysFcntl: @Sendable (CInt, CInt, CInt) -> CInt = fcntl
private let sysSocket = socket
private let sysSetsockopt = setsockopt
private let sysGetsockopt = getsockopt
private let sysListen = listen
private let sysAccept = accept
private let sysConnect = connect
private let sysOpen: (UnsafePointer<CChar>, CInt) -> CInt = open
private let sysOpenWithMode: (UnsafePointer<CChar>, CInt, mode_t) -> CInt = open
private let sysOpen: @Sendable (UnsafePointer<CChar>, CInt) -> CInt = open
private let sysOpenWithMode: @Sendable (UnsafePointer<CChar>, CInt, mode_t) -> CInt = open
private let sysFtruncate = ftruncate
private let sysWrite = write
private let sysPwrite = pwrite
Expand Down Expand Up @@ -444,7 +444,7 @@ internal func syscallForbiddingEINVAL<T: FixedWidthInteger>(
}

@usableFromInline
internal enum Posix {
internal enum Posix: Sendable {
#if canImport(Darwin)
@usableFromInline
static let UIO_MAXIOV: Int = 1024
Expand Down Expand Up @@ -1059,7 +1059,7 @@ extension Posix {

#if canImport(Darwin)
@usableFromInline
internal enum KQueue {
internal enum KQueue: Sendable {

// TODO: Figure out how to specify a typealias to the kevent struct without run into trouble with the swift compiler

Expand Down
Loading