int flag = 1;

Which is preferable for establishing 's' (a "packet" socket) as
non-blocking: ioctl( s, FIOSBIO, &flag ) or fcntl( s, O_NONBLOCK, 0 )?

BTW, which #include contained the declaration for FIOSBIO?

---John