From 9dce711573e27cd3b01eb119347c33a3863c5895 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 19 Jan 1996 00:28:16 +0000 Subject: (idvec_merge, idvec_delete): New declarations. --- libshouldbeinlibc/idvec.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/idvec.h b/libshouldbeinlibc/idvec.h index c9c75cd3..4df0929a 100644 --- a/libshouldbeinlibc/idvec.h +++ b/libshouldbeinlibc/idvec.h @@ -83,10 +83,16 @@ 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); +/* Adds each id from NEW to IDVEC, as if with idvec_add_new(). */ +error_t idvec_merge (struct idvec *idvec, struct idvec *new); + /* 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); +/* Deleted the id at position POS in IDVEC. */ +void idvec_delete (struct idvec *idvec, unsigned pos); + /* 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. */ -- cgit v1.2.3