Lines Matching full:vector

2  * Prototypes for vector handling.
4 * A vector is a list of strings, with dynamic resizing of the list as new
11 * This is based on the util/vector.c library, but that library uses xmalloc
13 * modified version of the vector library that instead returns false on
16 * Only the portions of the vector library used by PAM modules are
43 struct vector { struct
54 /* Create a new, empty vector. Returns NULL on memory allocation failure. */ argument
55 struct vector *vector_new(void) __attribute__((__malloc__));
58 * Create a new vector that's a copy of an existing vector. Returns NULL on
61 struct vector *vector_copy(const struct vector *)
65 * Add a string to a vector. Resizes the vector if necessary. Returns false
68 bool vector_add(struct vector *, const char *string)
76 bool vector_resize(struct vector *, size_t size) __attribute__((__nonnull__));
80 * regular vector, but not freeing the strings array (to cut down on memory
81 * allocations if the vector will be reused).
83 void vector_clear(struct vector *) __attribute__((__nonnull__));
85 /* Free the vector and all resources allocated for it. */
86 void vector_free(struct vector *);
89 * Split functions build a vector from a string. vector_split_multi splits on
90 * a set of characters. If the vector argument is NULL, a new vector is
92 * allocation failure, after which the provided vector may have been modified
100 struct vector *vector_split_multi(const char *string, const char *seps,
101 struct vector *)
105 * Exec the given program with the vector as its arguments. Return behavior
107 * vector functions (but the same as execv). The vector_exec_env variant
110 int vector_exec(const char *path, struct vector *)
112 int vector_exec_env(const char *path, struct vector *, const char *const env[])