We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f669299 commit 61f6b0eCopy full SHA for 61f6b0e
tools/swift-inspect/Sources/SwiftInspectLinux/ProcFS.swift
@@ -13,7 +13,8 @@
13
import Foundation
14
import LinuxSystemHeaders
15
16
-public class ProcFS {
+// utility for reading files under /proc
17
+public enum ProcFS {
18
public static func loadFile(for pid: pid_t, _ fileName: String) -> Data? {
19
let filePath = "/proc/\(pid)/\(fileName)"
20
// Loading contents of files under /proc may not work correctly using
0 commit comments