shithub: mc

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