Platform-specific package target: haiku_arm64

Collection Info

View Source
Collection
core
Path
sys/haiku
Entries
166

Source Files

Constants

26

APP_ERROR_BASE #

Source
APP_ERROR_BASE :: GENERAL_ERROR_BASE + 0x2000

APP_IMAGE_SYMBOL #

Source
APP_IMAGE_SYMBOL :: rawptr(addr_t(0))

value that can be used instead of a pointer to a symbol in the program image

DEVICE_ERROR_BASE #

Source
DEVICE_ERROR_BASE :: GENERAL_ERROR_BASE + 0xA000

ERRORS_END #

Source
ERRORS_END :: GENERAL_ERROR_BASE + 0xFFFF

Developer-defined errors start at (ERRORS_END+1)

FIRST_REAL_TIME_PRIORITY #

Source
FIRST_REAL_TIME_PRIORITY :: thread_priority.REAL_TIME_PRIORITY

GENERAL_ERROR_BASE #

Source
GENERAL_ERROR_BASE :: min(i32)

Error baselines

INTERFACE_ERROR_BASE #

Source
INTERFACE_ERROR_BASE :: GENERAL_ERROR_BASE + 0x3000

MAIL_ERROR_BASE #

Source
MAIL_ERROR_BASE :: GENERAL_ERROR_BASE + 0x8000

MEDIA_ERROR_BASE #

Source
MEDIA_ERROR_BASE :: GENERAL_ERROR_BASE + 0x4000

MIDI_ERROR_BASE #

Source
MIDI_ERROR_BASE :: GENERAL_ERROR_BASE + 0x5000

POSIX_ERROR_BASE #

Source
POSIX_ERROR_BASE :: GENERAL_ERROR_BASE + 0x7000

POSIX_ERROR_FACTOR #

Source
POSIX_ERROR_FACTOR :: posix._POSIX_ERROR_FACTOR

PRINT_ERROR_BASE #

Source
PRINT_ERROR_BASE :: GENERAL_ERROR_BASE + 0x9000

STORAGE_ERROR_BASE #

Source
STORAGE_ERROR_BASE :: GENERAL_ERROR_BASE + 0x6000

SYSTEM_TIMEBASE #

Source
SYSTEM_TIMEBASE :: 0

time base for snooze_*(), compatible with the clockid_t constants defined in <time.h>

TRANSLATION_ERROR_BASE #

Source
TRANSLATION_ERROR_BASE :: GENERAL_ERROR_BASE + 0x4800

USE_POSITIVE_POSIX_ERRORS #

Source
USE_POSITIVE_POSIX_ERRORS :: posix._HAIKU_USE_POSITIVE_POSIX_ERRORS

Types

70

Procedures

70

current_image_symbol #

Source
current_image_symbol :: proc "contextless" () -> rawptr {…}

pointer to a symbol in the callers image (same as B_CURRENT_IMAGE_SYMBOL)

disable_debugger #

Source
disable_debugger :: proc "c" (state: i32) -> i32 ---

calling this function with a non-zero value will cause your thread to receive signals for any exceptional conditions that occur (i.e. you'll get SIGSEGV for data access exceptions, SIGFPE for floating point errors, SIGILL for illegal instructions, etc). to re-enable the default debugger pass a zero.

get_pthread_thread_id #

Source
get_pthread_thread_id :: proc "c" (thread: rawptr) -> i32 ---

bridge to the pthread API

set_real_time_clock #

Source
set_real_time_clock :: proc "c" (secsSinceJan1st1970: uint) ---

sigtimedwait #

Source
sigtimedwait :: proc "c" (set: ^sigset_t, info: ^siginfo_t, timeout: ^timespec) -> result ---

Wait for queued signals. [[ More; https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigtimedwait.html ]]

system_time #

Source
system_time :: proc "c" () -> i64 ---

time since booting in microseconds

system_time_nsecs #

Source
system_time_nsecs :: proc "c" () -> i64 ---

time since booting in nanoseconds

wait_for_thread_etc #

Source
wait_for_thread_etc :: proc "c" (id: i32, flags: u32, timeout: i64, _returnCode: ^Errno) -> Errno ---

FIXME: Find and define those flags.