Quote:
Originally Posted by Mr-Biscuit
Unfortunately, there doesn't seem to be a byteorder package for what I'm using.
Not BSD, linux. Trying to get the disk written to with ufs2.
|
Sorry, as you guessed, I missed that you were using Linux. It must have some of the same kinds of functions, though.
If you look at the bottom of this OpenBSD man page, you see some of the functions you might use, depending on what's needed, (htonl, htons(), ntohl(), and ntohs()) are defined by POSIX, so Linux should have them too.
http://www.openbsd.org/cgi-bin/man.c...86&format=html
Debian unstable looks like it has a version 0.1h and you're using version 0.1f. Have you tried h with their patches yet?