1LFC_GETUSRBYUID(3)           LFC Library Functions          LFC_GETUSRBYUID(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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