diff options
author | Miles Bader <miles@gnu.org> | 1995-12-21 16:34:42 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-12-21 16:34:42 +0000 |
commit | dbc234e291fe21beea63fdf5347be3a8933c967e (patch) | |
tree | e85dbeb383140c750bbad9c3d91d7f709ea5f4e0 /libshouldbeinlibc | |
parent | c1b17f5f1a489900ea54a6bf631d82948651e9eb (diff) |
(struct idvec): Renamed from struct ivec. `ints' field renamed to `ids'.
(make_idvec, idvec_insert, idvec_add, idvec_contains):
All renamed from the corresponding `ivec' declaration, and types, variable
names, etc, changed accordingly.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/idvec.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/libshouldbeinlibc/idvec.h b/libshouldbeinlibc/idvec.h index 7ac8c50d..4bd3ea5b 100644 --- a/libshouldbeinlibc/idvec.h +++ b/libshouldbeinlibc/idvec.h @@ -1,4 +1,4 @@ -/* Routines for vectors of integers +/* Routines for vectors of uids/gids Copyright (C) 1995 Free Software Foundation, Inc. @@ -18,29 +18,30 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifndef __IVEC_H__ -#define __IVEC_H__ +#ifndef __IDVEC_H__ +#define __IDVEC_H__ +#include <sys/types.h> #include <errno.h> -struct ivec +struct idvec { - int *ints; + uid_t *ids; unsigned num, alloced; }; -/* Return a new ivec, or NULL if there wasn't enough memory. */ -struct ivec *make_ivec (); +/* Return a new idvec, or NULL if there wasn't enough memory. */ +struct idvec *make_idvec (); -/* Insert I into IVEC at position POS, returning ENOMEM if there wasn't +/* Insert ID into IDVEC at position POS, returning ENOMEM if there wasn't enough memory, or 0. */ -error_t ivec_insert (struct ivec *ivec, unsigned pos, int i); +error_t idvec_insert (struct idvec *idvec, unsigned pos, uid_t id); -/* Add I onto the end of IVEC, returning ENOMEM if there's not enough memory, +/* Add ID onto the end of IDVEC, returning ENOMEM if there's not enough memory, or 0. */ -error_t ivec_add (struct ivec *ivec, int i); +error_t idvec_add (struct idvec *idvec, uid_t id); -/* Returns true if IVEC contains I. */ -int ivec_contains (struct ivec *ivec, int i); +/* Returns true if IDVEC contains ID. */ +int idvec_contains (struct idvec *idvec, uid_t id); -#endif /* __IVEC_H__ */ +#endif /* __IDVEC_H__ */ |