shithub: mc

ref: 4868e3b769c7b0d4c77c715df641219010be835b
dir: /lib/std/syswrap-ss+openbsd.myr/

View raw version
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)
}