Skip to content

Commit 4ebf914

Browse files
committed
add FilePermission deprecations
1 parent e8bfe3c commit 4ebf914

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/System/FileStatus/FileMode/FilePermissions.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ public struct FilePermissions: OptionSet, Hashable, Codable {
118118
///
119119
/// For more information, see the `setuid(2)` man page.
120120
@_alwaysEmitIntoClient
121+
@available(*, deprecated, renamed: "FileModeOther.setUserID")
121122
public static var setUserID: FilePermissions { FilePermissions(0o4000) }
122123

123124
/// Indicates that the file is executed as the group.
124125
///
125126
/// For more information, see the `setgid(2)` man page.
126127
@_alwaysEmitIntoClient
128+
@available(*, deprecated, renamed: "FileModeOther.setGroupID")
127129
public static var setGroupID: FilePermissions { FilePermissions(0o2000) }
128130

129131
/// Indicates that executable's text segment
@@ -132,6 +134,7 @@ public struct FilePermissions: OptionSet, Hashable, Codable {
132134
/// For more information, see the `chmod(2)` man page's
133135
/// discussion of `S_ISVTX` (the sticky bit).
134136
@_alwaysEmitIntoClient
137+
@available(*, deprecated, renamed: "FileModeOther.saveText")
135138
public static var saveText: FilePermissions { FilePermissions(0o1000) }
136139
}
137140

0 commit comments

Comments
 (0)