mirror of
https://github.com/apple/swift-system
synced 2026-11-28 05:14:33 +00:00
Remove accidentally public functions.
These can't be new API as they haven't been reviewed.
This commit is contained in:
1 parent
aac7f54e89
commit
8e09ede76d
3 files changed
+4
-4
No files matched your search
@@ -12,7 +12,7 @@
|
||||
import WinSDK
|
||||
|
||||
extension Errno {
|
||||
public init(windowsError: DWORD) {
|
||||
internal init(windowsError: DWORD) {
|
||||
self.init(rawValue: _mapWindowsErrorToErrno(windowsError))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -516,7 +516,7 @@ extension FilePermissions {
|
||||
/// files or directories. Note that this mask is process-wide, and that
|
||||
/// *getting* it is not thread safe.
|
||||
@_alwaysEmitIntoClient
|
||||
public static var creationMask: FilePermissions {
|
||||
internal static var creationMask: FilePermissions {
|
||||
get {
|
||||
let oldMask = _umask(0o22)
|
||||
_ = _umask(oldMask)
|
||||
@@ -536,7 +536,7 @@ extension FilePermissions {
|
||||
/// This is more efficient than reading `creationMask` and restoring it
|
||||
/// afterwards, because of the way reading the creation mask works.
|
||||
@_alwaysEmitIntoClient
|
||||
public static func withCreationMask<R>(
|
||||
internal static func withCreationMask<R>(
|
||||
_ permissions: FilePermissions,
|
||||
body: () throws -> R
|
||||
) rethrows -> R {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
/// Creates a temporary directory with a name based on the given `basename`,
|
||||
/// executes `body`, passing in the path of the created directory, then
|
||||
/// deletes the directory and all of its contents before returning.
|
||||
public func withTemporaryFilePath<R>(
|
||||
internal func withTemporaryFilePath<R>(
|
||||
basename: FilePath.Component,
|
||||
_ body: (FilePath) throws -> R
|
||||
) throws -> R {
|
||||
|
||||
Reference in new issue
Block a user