1GENDERS_GETATTR_ALL(3) LIBGENDERS GENDERS_GETATTR_ALL(3)
2
3
4
6 genders_getattr_all - get all the attributes stored in a genders file
7
9 #include <genders.h>
10
11 int genders_getattr_all(genders_t handle, char *attrs[], int len);
12
14 genders_getattr_all() gets all the attributes found in the genders file
15 associated with handle. The attributes are stored in the attribute
16 list pointed to by attrs. len should indicate the number of elements
17 that can be stored in the attribute list.
18
19 To avoid passing in a list that is not large enough to store all the
20 attributes, genders_getnumattrs(3) should be used to determine the min‐
21 imum number of elements attrs should be able to store. gen‐
22 ders_attrlist_create(3) could be used to create a list that is guaran‐
23 teed to be large enough to store all attributes.
24
26 On success, the number of attributes stored in attrs is returned. On
27 error, -1 is returned, and an error code is returned in handle. The
28 error code can be retrieved via genders_errnum(3) , and a description
29 of the error code can be retrieved via genders_strerror(3). Error
30 codes are defined in genders.h.
31
33 GENDERS_ERR_NULLHANDLE
34 The handle parameter is NULL. The genders handle must be cre‐
35 ated with genders_handle_create(3).
36
37 GENDERS_ERR_NOTLOADED
38 genders_load_data(3) has not been called to load genders data.
39
40 GENDERS_ERR_OVERFLOW
41 The list pointed to by attrs is not large enough to store all
42 the attributes.
43
44 GENDERS_ERR_PARAMETERS
45 An incorrect parameter has been passed in.
46
47 GENDERS_ERR_NULLPTR
48 A null pointer has been found in the list passed in.
49
50 GENDERS_ERR_MAGIC
51 handle has an incorrect magic number. handle does not point to
52 a genders handle or handle has been destroyed by genders_han‐
53 dle_destroy(3).
54
56 /usr/include/genders.h
57
59 libgenders(3), genders_handle_create(3), genders_load_data(3), gen‐
60 ders_getnumattrs(3), genders_attrlist_create(3), genders_errnum(3),
61 genders_strerror(3)
62
63
64
65LLNL August 2003 GENDERS_GETATTR_ALL(3)