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

NAME

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

SYNOPSIS

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

DESCRIPTION

15       dpns_getusrbynam  gets  the  virtual  uid  associated with a given user
16       name.
17
18       username
19              specifies the user name.  It must  be  at  most  255  characters
20              long.
21
22       uid    specifies  the  address  of a buffer to receive the Virtual User
23              Id.
24

RETURN VALUE

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

ERRORS

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