Remove more accidentally public functions

This commit is contained in:
Guillaume Lessard committed 2024-10-16 17:03:59 -07:00
1 parent 6c64372b85
commit b9e4d2b2ba
2 files changed
-6

No files matched your search

-3
View File
@@ -515,7 +515,6 @@ extension FilePermissions {
/// Permissions set in this mask will be cleared by functions that create
/// files or directories. Note that this mask is process-wide, and that
/// *getting* it is not thread safe.
@_alwaysEmitIntoClient
internal static var creationMask: FilePermissions {
get {
let oldMask = _umask(0o22)
@@ -535,7 +534,6 @@ extension FilePermissions {
///
/// This is more efficient than reading `creationMask` and restoring it
/// afterwards, because of the way reading the creation mask works.
@_alwaysEmitIntoClient
internal static func withCreationMask<R>(
_ permissions: FilePermissions,
body: () throws -> R
@@ -547,7 +545,6 @@ extension FilePermissions {
return try body()
}
@usableFromInline
internal static func _umask(_ mode: CModeT) -> CModeT {
return system_umask(mode)
}
@@ -260,7 +260,6 @@ internal func rmdir(
return 0;
}
@usableFromInline
internal func _mapWindowsErrorToErrno(_ errorCode: DWORD) -> CInt {
switch Int32(errorCode) {
case ERROR_SUCCESS:
@@ -397,7 +396,6 @@ fileprivate func getTokenInformation<T>(
return nil
}
@usableFromInline
internal enum _FileOrDirectory {
case file
case directory
@@ -406,7 +404,6 @@ internal enum _FileOrDirectory {
/// Build a SECURITY_DESCRIPTOR from UNIX-style "mode" bits. This only
/// takes account of the rwx and sticky bits; there's really nothing that
/// we can do about setuid/setgid.
@usableFromInline
internal func _createSecurityDescriptor(from mode: CInterop.Mode,
for fileOrDirectory: _FileOrDirectory)
-> PSECURITY_DESCRIPTOR? {