ref: 37423477a77f0b24b85acc6af52aa460570921a6
dir: /lib/std/syswrap-ss+openbsd.myr/
use sys
use "errno.use"
use "cstrconv.use"
use "slcp.use"
use "die.use"
pkg std =
$noret const exit : (status:int -> void)
pkglocal const bgetcwd : (buf : byte[:] -> errno)
;;
const exit = {status; sys.exit(status)}
const bgetcwd = {buf
-> (sys.__getcwd(buf) - 1) castto(errno)
}