tosh is a tool to interface with Toshiba hardware (laptops). I wrote this program for a friend whose laptop I blessed with a fresh OpenBSD install. She used to run windows with the shareware 'fan' tool from Jonathan Buzzard, the Linux version of which I had run on that very laptop.

Unfortunately, the Linux version would not compile under OpenBSD. This was caused by the use of (what I later learned was) the Linux version of the i386_iopl(3) routine. So I decided to rewrite it from scratch, releasing it under an ISC-style licence.

From the source it may be evident that I'm just a beginning C programmer. In fact, this is my very first program written in C to do something useful. So, although I tried my best to write clean code there's probably tons of bugs, security trouble waiting to happen and other kinds of nastiness, this program will probably destroy your precious Toshiba laptop before you've had the chance to even download it.

Please note that this program uses i386_set_ioperm(3) and therefor requires root privileges. I suggest that you do not install tosh setuid root but use sudo(8) to gain the required privileges. Also note that this is my first 'real' program, so there may be (probably are) bugs. Do not run this program unless you know what you are doing.

What I'm currently looking for are :

If you're using tosh, please let me know how it works for you. Don't forget to mention what type of toshiba laptop you're using and what does and does not work for you. If you ever run into a Toshiba laptop that has an AMD64 CPU, drop me a line and I'll be glad to try and make it ONLY_FOR_ARCHS=i386,amd64.

Now, without further ado, here's the code to see for yourself :

Thanks go to (in no specific order) :


Back to OpenBSD stuff

Powered by OpenBSD