Archive for the ‘Solaris’ Category

17
Jun

I’ve been looking at the OpenSolaris source code.

I found this little gem. It will print a number n in base b to stdout. That’s fine but this one works recursively. Also note the use of register long.

The thing with the code is they only use it to print an octal, decimal or hexadecimal number. These are easily replaced with printf using %o %u and %x respectively.

16
May

I managed to install Solaris 10 yesterday to have a look at how DTrace works.

Once I figure out it’s internals and interface I should be able to get something ported to FreeBSD.