Lines Matching refs:flags

41 static void dep_add(struct cfjail *from, struct cfjail *to, unsigned flags);
45 static struct cfjail *running_jail(const char *name, int flags);
76 j->flags |= JF_FAILED; in dep_setup()
96 if (j->flags & JF_FAILED) in dep_setup()
108 j->flags |= JF_FAILED; in dep_setup()
137 j->flags |= JF_FAILED; in dep_setup()
145 d->flags &= ~DF_SEEN; in dep_setup()
166 if ((rev = JF_DO_STOP(j->flags))) { in dep_check()
174 if (d->flags & DF_SEEN) in dep_check()
177 if (dj->flags & JF_FAILED) { in dep_check()
178 if (!(j->flags & (JF_DEPEND | JF_FAILED)) && in dep_check()
181 j->flags |= JF_FAILED; in dep_check()
189 if (bits[dj->flags & JF_OP_MASK] <= 1) { in dep_check()
190 if (!(dj->flags & JF_OP_MASK)) { in dep_check()
192 dj->flags |= JF_DEPEND; in dep_check()
196 switch (j->flags & JF_OP_MASK) { in dep_check()
198 dj->flags |= JF_START; in dep_check()
201 if (!(dj->flags & JF_OP_MASK)) in dep_check()
202 dj->flags |= JF_SET; in dep_check()
203 else if (dj->flags & JF_STOP) in dep_check()
204 dj->flags |= JF_START; in dep_check()
208 if (!(dj->flags & JF_STOP)) in dep_check()
210 dj->flags |= JF_STOP; in dep_check()
211 if (dj->flags & JF_SET) in dep_check()
212 dj->flags ^= (JF_START | JF_SET); in dep_check()
218 if (!((d->flags & DF_LIGHT) && in dep_check()
232 dep_done(struct cfjail *j, unsigned flags) in dep_done() argument
238 if (JF_DO_STOP(j->flags)) { in dep_done()
246 if ((d->flags & DF_SEEN) | (flags & ~d->flags & DF_LIGHT)) in dep_done()
248 d->flags |= DF_SEEN; in dep_done()
250 if (!(flags & DF_NOFAIL) && (j->flags & JF_FAILED) && in dep_done()
251 (j->flags & (JF_OP_MASK | JF_DEPEND)) != in dep_done()
253 if (!(dj->flags & (JF_DEPEND | JF_FAILED)) && in dep_done()
256 dj->flags |= JF_FAILED; in dep_done()
272 depfrom = JF_DO_STOP(j->flags) ? DEP_TO : DEP_FROM; in dep_reset()
287 (j = TAILQ_FIRST(&ready)) && JF_DO_STOP(j->flags) && in next_jail()
288 (j = TAILQ_LAST(&ready, cfjails)) && !JF_DO_STOP(j->flags)) { in next_jail()
290 if (JF_DO_STOP(j->flags)) in next_jail()
317 j->flags = (j->flags & JF_FAILED) | state | in start_state()
350 j->flags = (j->flags & JF_FAILED) | in start_state()
359 j->flags = (j->flags & JF_FAILED) | in start_state()
376 j->flags = (j->flags & JF_FAILED) | state; in start_state()
408 dep_add(struct cfjail *from, struct cfjail *to, unsigned flags) in dep_add() argument
413 d->flags = flags; in dep_add()
456 running_jail(const char *name, int flags) in running_jail() argument
482 if ((ret = jail_get(jiov, 4, flags)) < 0) in running_jail()