shithub: mc

ref: 2f8d3d7f2e4e3592b0a2fce30a4ec218aafe9bce
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)
}