- if (fd<0) return posixerr(ip,errno,"socket");
- r= bind(fd, sa, al); if (r) return newfdposixerr(ip,fd,"bind");
- r= setnonblock(fd, 1); if (r) return newfdposixerr(ip,fd,"setnonblock");
+ if (fd<0) return cht_posixerr(ip,errno,"socket");
+ r= bind(fd, sa, al); if (r) return cht_newfdposixerr(ip,fd,"bind");
+ r= cht_setnonblock(fd, 1); if (r) return cht_newfdposixerr(ip,fd,"setnonblock");