BSDCore
The core module for interacting with the BSD kernel.
import BSDCore
Module information
- Declarations
- 183
- Symbols
- 347
Licenses
The BSD Kernel
struct BSD
The BSD kernel.
Calling The Kernel
static func syscall(@autoclosure () -> Int32
) throws Executes a system call and throw an error if it fails.
Managing Kernel State
static func sysctl<DataType>(String, asArrayOf: DataType.Type
) throws -> [DataType] Gets kernel state.
static func sysctl<DataType>(consuming [Int32], asArrayOf: DataType.Type
) throws -> [DataType] Gets kernel state.
Configurable Security Restrictions
struct CSRConfigOptions
Configuration options for Configurable Security Restrictions (CSR).
static var activeCSRConfig: CSRConfigOptions
The active configuration for Configurable Security Restrictions (CSR).
static func csrCheck(CSRConfigOptions
) throws Checks if the system is configured with the specified CSR options.
Other API’s
File System
The BSD kernel provides multiple facilities for managing files and file systems.
Read More