1DPNS_GETUSRBYUID(3)         DPNS Library Functions         DPNS_GETUSRBYUID(3)
2
3
4

NAME

6       dpns_getusrbyuid - get user name associated with a given virtual uid
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "dpns_api.h"
11
12       int dpns_getusrbyuid (uid_t uid, char *username)
13

DESCRIPTION

15       dpns_getusrbyuid  gets  the  user  name associated with a given virtual
16       uid.
17
18       uid    specifies the Virtual User Id.
19
20       username
21              points at a buffer to receive the  associated  user  name.   The
22              buffer must be at least 256 characters long.
23

RETURN VALUE

25       This  routine  returns  0  if the operation was successful or -1 if the
26       operation failed. In the latter case, serrno is set appropriately.
27

ERRORS

29       EFAULT       username is a NULL pointer.
30
31       EINVAL       This uid does not exist in the internal mapping table.
32
33       SENOSHOST    Host unknown.
34
35       SENOSSERV    Service unknown.
36
37       SECOMERR     Communication error.
38
39       ENSNACT      Name server is not running or is being shutdown.
40
41
42
43DPNS                     $Date: 2005/10/19 11:30:57 $      DPNS_GETUSRBYUID(3)
Impressum