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

NAME

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

SYNOPSIS

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

DESCRIPTION

15       lfc_getusrbynam gets the virtual uid associated with a given user name.
16
17       username
18              specifies  the  user  name.   It  must be at most 255 characters
19              long.
20
21       uid    specifies the address of a buffer to receive  the  Virtual  User
22              Id.
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 or uid is a NULL pointer.
30
31       EINVAL       This user name does not exist in the internal mapping  ta‐
32                    ble or the length of username exceeds 255.
33
34       SENOSHOST    Host unknown.
35
36       SENOSSERV    Service unknown.
37
38       SECOMERR     Communication error.
39
40       ENSNACT      Name server is not running or is being shutdown.
41
42
43
44LFC                      $Date: 2005/10/19 11:30:57 $       LFC_GETUSRBYNAM(3)
Impressum