Lines Matching refs:set

112 		if (a->global.set)
114 if (op & DEF) a->global.set &= ~state.set;
115 if (op & (NEW|SET)) state.set |= a->global.set;
116 if (a->global.set & SETBUSY)
118 if (a->global.set & SETDISABLE)
120 if (a->global.set & SETGRACE)
122 if (a->global.set & SETIDENTIFY)
124 if (a->global.set & SETMAXIDLE)
126 if (a->global.set & SETMAXLOAD)
128 if (a->global.set & SETMIGRATE)
130 if (a->global.set & SETPERCPU)
132 if (a->global.set & SETPERHOST)
134 if (a->global.set & SETPERSERVER)
136 if (a->global.set & SETPERUSER)
138 if (a->global.set & SETPOOL)
140 if (a->global.set & SETPROFILE)
142 if (a->global.set & SETREMOTE)
147 if (a->global.set & SETSCHEDULE)
162 if (a->global.set & SETSHELL)
167 if (a->global.set & SETFILE)
169 if (a->global.set & (SETBUSY|SETMAXIDLE|SETPERCPU|SETPERHOST|SETPERSERVER|SETPERUSER))
172 if ((op & (DEF|NEW)) && a->set && !(a->set & SETNAME))
184 a->set |= SETNAME;
190 a->set |= SETNAME;
194 if (!(a->set & SETBIAS)) a->bias = BIAS;
233 message((-6, "search: %s name=%s misc=%s matched=%d", ap->name, (a->set & SETNAME) ? a->name : "*", ((a->set | op) & (SETMISC|DEF|NEW|SET)) == SETMISC ? a->misc : "*", matched));
287 else if (!ap->fd && (!mp || ap->rank < mp->rank) && (IDLE(ap->stat.idle, ap->idle) || ap->home || ap->bypass && miscmatch(ap, ap->bypass) || ((a->set | op) & (SETMISC|DEF|NEW|SET)) == SETMISC)) mp = ap;
331 if (!(a->set & SETNAME) || !(addr = csaddr(a->name))) return(0);
384 a->set &= ~sp->flags;
397 if (!(a->set & SETIDLE))
399 a->set |= SETIDLE;
406 sp->flags |= a->set;
407 if (a->global.set & (SETIDLE|SETLOAD|SETUPDATE|SETUSERS))
409 if (a->global.set & SETIDLE) sp->stat.idle = a->stat.idle;
410 if (a->global.set & SETLOAD) sp->stat.load = a->stat.load;
411 if (a->global.set & SETUPDATE) sp->update = a->stat.up;
412 if (a->global.set & SETUSERS) sp->stat.users = a->stat.users;
416 a->set &= ~sp->flags;
417 sp->flags |= a->set;
420 if (a->set & SETACCESS) sp->access = dupstring(sp->access, a->access);
421 if (a->set & SETBYPASS) sp->bypass = dupstring(sp->bypass, a->bypass);
422 if (a->set & SETBIAS) sp->bias = a->bias;
423 if (a->set & SETIGNORE)
428 if (a->set & SETMISC)
433 if (a->set & SETRATING) sp->rating = a->rating;
434 if (a->set & SETREMOTE) strcpy(sp->remote, a->remote);
435 if (a->set & SETSCALE) sp->scale = a->scale;
436 if (a->set & SETSHELL) strcpy(sp->shell, a->shell);
437 if (a->set & SETTYPE) strcpy(sp->type, a->type);
438 if (a->set & SETCPU)
444 if (a->set & SETIDLE)
458 if (!sp->update && !(op & GET) || (a->set & (SETBIAS|SETCPU|SETIDLE|SETIGNORE|SETRATING|SETSCALE)) && sp->update <= cs.time + UPDATE) update(sp);