Den 30-04-2016 kl. 17:20 skrev Brandon Allbery:
I'm not sure; it's not documented :/ Also not sure offhand how endianness plays in to select()'s bit vectors if you build them by hand. Which leads to...
One shouldn't probably be surprised to see endianness involved in what is described as a bit buffer. Well, thanks for your responses.
select(3) is an abysmal API. There's a reason most OSes replaced select(2) with a backward compatibility select(3) and moved on to something poll-like (look for poll(2) or epoll(2)).
I know. It's just that select looked simple enough to try out. /kaare