summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/idvec.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-19 00:28:16 +0000
committerMiles Bader <miles@gnu.org>1996-01-19 00:28:16 +0000
commit9dce711573e27cd3b01eb119347c33a3863c5895 (patch)
tree9476e6bd3ee066aa83aa68e0034329f27958ef19 /libshouldbeinlibc/idvec.h
parent086c86044c472b7a0044fe66056145ab919b5893 (diff)
(idvec_merge, idvec_delete): New declarations.
Diffstat (limited to 'libshouldbeinlibc/idvec.h')
-rw-r--r--libshouldbeinlibc/idvec.h6
1 files changed, 6 insertions, 0 deletions
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. */