shithub: mc

ref: b31626248ea64c23d2020846e2cac1c751348b61
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#)
}