shithub: mc

ref: 64462bb36f34be7ab4aa1fcf7195739eb617a044
dir: /lib/thread/fsbase+openbsd.myr/

View raw version
use sys

use "types"

pkg thread =
	pkglocal const setfsbase : (h : tlshdr# -> void)
	pkglocal const getfsbase : (-> tlshdr#)
;;

const setfsbase = {h
	sys.__set_tcb((h : void#))
}

const getfsbase = {
	-> (sys.__get_tcb() : tlshdr#)
}