diff options
author | Miles Bader <miles@gnu.org> | 1996-01-02 04:15:34 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-01-02 04:15:34 +0000 |
commit | fc6d093e308742586e8cfc014a39acbb905b3780 (patch) | |
tree | c50d5c648d8bdc69a9c2183e935f4c285f42ce09 /libshouldbeinlibc/idvec.h | |
parent | 9e173c98598a09420bb13bc6b28a55a30ef0302a (diff) |
(idvec_remove, idvec_insert_only): New declarations.
Diffstat (limited to 'libshouldbeinlibc/idvec.h')
-rw-r--r-- | libshouldbeinlibc/idvec.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |