Subject: Re: ntoh{l,s}, hton{l,s} not in libc for ns32k, powerpc.
To: None <tech-userlevel@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 09/29/2001 21:19:04
>>> Anyone have problems with me adding the network byte order
>>> functions to libc for these architectures?
>> At least for powerpc, I thought our includes defined these functions
>> away (since all of our powerpc ports are big-endian)?  I'm not
>> against you adding them, just confused as to how we'd get programs
>> which needed them.

switch (something) {
	case ...:
		swapfn = &htonl;
		break;
	case ...:
		swapfn = &noswap;
		break;
	...
}

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B