d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * This file and its contents are supplied under the terms of the
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * Common Development and Distribution License ("CDDL"), version 1.0.
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * You may only use this file in accordance with the terms of version
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * 1.0 of the CDDL.
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * A full copy of the text of the CDDL should have accompanied this
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * source. A copy of the CDDL is also available via the Internet at
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe/* Copyright 2015, Richard Lowe. */
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Loweextern int __psecflagsset(procset_t *, psecflagwhich_t, secflagdelta_t *);
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowepsecflags(idtype_t idtype, id_t id, psecflagwhich_t which,
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe setprocset(&procset, POP_AND, idtype, id, P_ALL, 0);
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe return (__psecflagsset(&procset, which, delta));
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowesecflags_parse(const secflagset_t *defaults, const char *flags,
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe /* Guarantee a clean base */
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe return (-1);
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe return (-1);
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * If we're not using the current flags, this is strict assignment.
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe * Negatives "win".
d2a70789f056fc6c9ce3ab047b52126d80b0e3daRichard Lowe secflags_copy(&ret->psd_assign, &ret->psd_add);