Lines Matching defs:rc
245 int rc;
251 rc = smb_init_daemon_priv(PU_RESETGROUPS, smbd.s_uid, smbd.s_gid);
253 if (rc != 0) {
438 int rc, i;
467 if ((rc = smb_ccache_init(SMB_VARRUN_DIR, SMB_CCACHE_FILE)) != 0) {
468 if (rc == -1)
483 rc = smbd_cups_init();
485 smbd_report("print service %savailable", (rc == 0) ? "" : "un");
501 if ((rc = smb_domain_init(smbd.s_secmode)) != 0) {
502 if (rc == SMB_DOMAIN_NOMACHINE_SID) {
725 int rc;
730 rc = smb_kmod_setcfg(&cfg);
731 if (rc < 0)
733 strerror(rc));
734 return (rc);
740 if ((rc = smb_kmod_bind()) == 0) {
741 rc = smbd_kernel_start();
742 if (rc != 0)
747 smbd_report("kernel bind error: %s", strerror(rc));
750 return (rc);
757 int rc;
761 rc = smb_kmod_setcfg(&cfg);
762 if (rc != 0) {
763 smbd_report("kernel config ioctl error: %s", strerror(rc));
764 return (rc);
767 rc = smb_kmod_setgmtoff(smbd_gmtoff());
768 if (rc != 0) {
769 smbd_report("kernel gmtoff ioctl error: %s", strerror(rc));
770 return (rc);
773 rc = smb_kmod_start(smbd.s_door_opipe, smbd.s_door_lmshr,
776 if (rc != 0) {
777 smbd_report("kernel start ioctl error: %s", strerror(rc));
778 return (rc);
802 int rc;
808 rc = pthread_create(&tid, &attr, dyndns_publisher, NULL);
811 if (rc != 0)
825 int rc;
829 rc = pthread_create(&tid, &attr, smbd_share_loader, NULL);
832 if (rc != 0)
852 int rc;
856 rc = pthread_create(&smbd.s_localtime_tid, &attr,
860 if (rc != 0)