From fc6d093e308742586e8cfc014a39acbb905b3780 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 2 Jan 1996 04:15:34 +0000 Subject: (idvec_remove, idvec_insert_only): New declarations. --- libshouldbeinlibc/idvec.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libshouldbeinlibc/idvec.h b/libshouldbeinlibc/idvec.h index 4bb86aa8..c9c75cd3 100644 --- a/libshouldbeinlibc/idvec.h +++ b/libshouldbeinlibc/idvec.h @@ -83,6 +83,15 @@ error_t idvec_insert_new (struct idvec *idvec, unsigned pos, uid_t id); idvec_add_new(). */ error_t idvec_merge_ids (struct idvec *idvec, uid_t *ids, unsigned num); +/* Remove any occurances of ID in IDVEC after position POS> Returns true if + anything was done. */ +int idvec_remove (struct idvec *idvec, unsigned pos, uid_t id); + +/* Insert ID at position POS in IDVEC, remoint any instances of ID previously + present at POS or after. ENOMEM is returned if there's not enough memory, + otherwise 0. */ +error_t idvec_insert_only (struct idvec *idvec, unsigned pos, uid_t id); + /* EFF and AVAIL should be idvec's corresponding to a processes effective and available ids. ID replaces the first id in EFF, and what it replaces is preserved by adding it to AVAIL (if not already present). If SECURE is -- cgit v1.2.3