shithub: mc

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