Module
Module documentation.
moduleos.darwin.control
Classes
Classes and inheritance.
Functions
Free functions and class methods.
functionos.darwin.control::__darwin_control_pf_system
Signature
extern func __darwin_control_pf_system() -> Int;extern func __darwin_control_pf_system() -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_af_sys_control`.@briefBinds the low-level runtime symbol `__darwin_control_pf_system`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_af_sys_control
Signature
extern func __darwin_control_af_sys_control() -> Int;extern func __darwin_control_af_sys_control() -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_sysproto_control`.@briefBinds the low-level runtime symbol `__darwin_control_af_sys_control`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_sysproto_control
Signature
extern func __darwin_control_sysproto_control() -> Int;extern func __darwin_control_sysproto_control() -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_ctl_iocginfo`.@briefBinds the low-level runtime symbol `__darwin_control_sysproto_control`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_ctl_iocginfo
Signature
extern func __darwin_control_ctl_iocginfo() -> Int;extern func __darwin_control_ctl_iocginfo() -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_utun_opt_ifname`.@briefBinds the low-level runtime symbol `__darwin_control_ctl_iocginfo`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_utun_opt_ifname
Signature
extern func __darwin_control_utun_opt_ifname() -> Int;extern func __darwin_control_utun_opt_ifname() -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_ctl_info_size`.@briefBinds the low-level runtime symbol `__darwin_control_utun_opt_ifname`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_ctl_info_size
Signature
extern func __darwin_control_ctl_info_size() -> Int;extern func __darwin_control_ctl_info_size() -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_ctl_info`.@briefBinds the low-level runtime symbol `__darwin_control_ctl_info_size`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_ctl_info
Signature
extern func __darwin_control_ctl_info(name: String) -> String;extern func __darwin_control_ctl_info(name: String) -> String;
/*
@brief Binds the low-level runtime symbol `__darwin_control_ctl_info_id`.@briefBinds the low-level runtime symbol `__darwin_control_ctl_info`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
- nameName.
@returnReturns the operation result as `String`.
functionos.darwin.control::__darwin_control_ctl_info_id
Signature
extern func __darwin_control_ctl_info_id(data: String) -> Int;extern func __darwin_control_ctl_info_id(data: String) -> Int;
/*
@brief Binds the low-level runtime symbol `__darwin_control_sockaddr_ctl`.@briefBinds the low-level runtime symbol `__darwin_control_ctl_info_id`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
- dataInput or output data buffer.
@returnReturns the operation result as `Int`.
functionos.darwin.control::__darwin_control_sockaddr_ctl
Signature
extern func __darwin_control_sockaddr_ctl(ctl_id: Int, unit: Int) -> String;extern func __darwin_control_sockaddr_ctl(ctl_id: Int, unit: Int) -> String;
/*@briefBinds the low-level runtime symbol `__darwin_control_sockaddr_ctl`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
- ctl_idPlatform control identifier used by the operating-system call.
- unitUnit selector that determines how the numeric value is interpreted.
@returnReturns the operation result as `String`.
functionos.darwin.control::pf_system
Signature
func pf_system() -> Intfunc pf_system() -> Int {
return __darwin_control_pf_system();
}@briefProvides the system library operation `pf_system`.
@detailsExecutes the `pf_system` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.darwin.control::af_sys_control
Signature
func af_sys_control() -> Intfunc af_sys_control() -> Int {
return __darwin_control_af_sys_control();
}@briefProvides the system library operation `af_sys_control`.
@detailsExecutes the `af_sys_control` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.darwin.control::sysproto_control
Signature
func sysproto_control() -> Intfunc sysproto_control() -> Int {
return __darwin_control_sysproto_control();
}@briefProvides the system library operation `sysproto_control`.
@detailsExecutes the `sysproto_control` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.darwin.control::ctl_iocginfo
Signature
func ctl_iocginfo() -> Intfunc ctl_iocginfo() -> Int {
return __darwin_control_ctl_iocginfo();
}@briefProvides the system library operation `ctl_iocginfo`.
@detailsExecutes the `ctl_iocginfo` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.darwin.control::utun_opt_ifname
Signature
func utun_opt_ifname() -> Intfunc utun_opt_ifname() -> Int {
return __darwin_control_utun_opt_ifname();
}@briefProvides the system library operation `utun_opt_ifname`.
@detailsExecutes the `utun_opt_ifname` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.darwin.control::ctl_info_size
Signature
func ctl_info_size() -> Intfunc ctl_info_size() -> Int {
return __darwin_control_ctl_info_size();
}@briefProvides the system library operation `ctl_info_size`.
@detailsExecutes the `ctl_info_size` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.darwin.control::ctl_info
Signature
func ctl_info(name: String) -> bytes.Bytes, ErrCodefunc ctl_info(name: String) -> bytes.Bytes, ErrCode {
let out: bytes.Bytes = __darwin_control_ctl_info(name);
if bytes.len(out) == 0 {@briefProvides the system library operation `ctl_info`.
@detailsExecutes the `ctl_info` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- nameName.
@returnReturns `bytes.Bytes, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionos.darwin.control::ctl_info_id
Signature
func ctl_info_id(data: bytes.Bytes) -> Int, ErrCodefunc ctl_info_id(data: bytes.Bytes) -> Int, ErrCode {
if bytes.len(data) < ctl_info_size() {
return 0, std.ERR_INVALID;@briefProvides the system library operation `ctl_info_id`.
@detailsExecutes the `ctl_info_id` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- dataInput or output data buffer.
@returnReturns `Int, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionos.darwin.control::sockaddr_ctl
Signature
func sockaddr_ctl(ctl_id: Int, unit: Int) -> bytes.Bytes, ErrCodefunc sockaddr_ctl(ctl_id: Int, unit: Int) -> bytes.Bytes, ErrCode {
if ctl_id <= 0 || unit < 0 {
return "", std.ERR_INVALID;@briefProvides the system library operation `sockaddr_ctl`.
@detailsExecutes the `sockaddr_ctl` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- ctl_idPlatform control identifier used by the operating-system call.
- unitUnit selector that determines how the numeric value is interpreted.
@returnReturns `bytes.Bytes, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionos.darwin.control::c_string
Signature
func c_string(data: bytes.Bytes) -> Stringfunc c_string(data: bytes.Bytes) -> String {
let out: String = "";
loop (let i: Int = 0; i < bytes.len(data); i += 1) {@briefProvides the system library operation `c_string`.
@detailsExecutes the `c_string` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- dataInput or output data buffer.
@returnReturns the operation result as `String`.
Variables
Class fields (var).