Skip to content

Commit

Permalink
Merge pull request swiftlang#75001 from glessard/rdar99047401-err-nos…
Browse files Browse the repository at this point in the history
…endable-6.0

[concurrency] declare `POSIXErrorCode` as `Sendable`
  • Loading branch information
glessard authored Jul 6, 2024
2 parents 39d86a3 + 74766e8 commit f8774c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stdlib/public/Platform/POSIXError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/// Enumeration describing POSIX error codes.
@objc
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Operation not permitted.
case EPERM = 1
/// No such file or directory.
Expand Down Expand Up @@ -266,7 +266,7 @@ public enum POSIXErrorCode : Int32 {
#elseif os(Linux) || os(Android)

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Operation not permitted.
case EPERM = 1
/// No such file or directory.
Expand Down Expand Up @@ -561,7 +561,7 @@ public enum POSIXErrorCode : Int32 {
// Matches WASI-libc declarations at https://github.com/WebAssembly/wasi-libc/blob/ad513341/libc-bottom-half/headers/public/wasi/api.h#L106

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Argument list too long.
case E2BIG = 1
/// Permission denied.
Expand Down Expand Up @@ -727,7 +727,7 @@ public enum POSIXErrorCode : Int32 {
#elseif os(Windows)

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {

/// Operation not permitted
case EPERM = 1
Expand Down Expand Up @@ -853,7 +853,7 @@ public enum POSIXErrorCode : Int32 {
#elseif os(OpenBSD) || os(FreeBSD)

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Operation not permitted
case EPERM = 1
/// No such file or directory
Expand Down

0 comments on commit f8774c3

Please sign in to comment.