shithub: mc

ref: 7027a019adb2048ee4c67a4d3f86e433d98b625d
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)
}