1DPNS_GETUSRMAP(3) DPNS Library Functions DPNS_GETUSRMAP(3)
2
3
4
6 dpns_getusrmap - get all existing users from virtual uid table
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_getusrmap (int *nbentries, struct dpns_userinfo **usr_entries)
13
15 dpns_getusrmap gets all the existing users from the virtual uid table.
16
17 nbentries
18 will be set to the number of entries in the array of user infos.
19
20 usr_entries
21 will be set to the address of an array of dpns_userinfo struc‐
22 tures allocated by the API. The client application is responsi‐
23 ble for freeing the array when not needed anymore.
24
25 This function requires ADMIN privilege.
26
28 This routine returns 0 if the operation was successful or -1 if the
29 operation failed. In the latter case, serrno is set appropriately.
30
32 EACCES The caller does not have ADMIN privilege.
33
34 ENOMEM Memory could not be allocated for unmarshalling the reply.
35
36 EFAULT nbentries or usr_entries is a NULL pointer.
37
38 SENOSHOST Host unknown.
39
40 SENOSSERV Service unknown.
41
42 SECOMERR Communication error.
43
44 ENSNACT Name server is not running or is being shutdown.
45
46
47
48DPNS $Date: 2007/12/13 06:15:14 $ DPNS_GETUSRMAP(3)