1LFC_GETUSRBYNAM(3) LFC Library Functions
2LFC_GETUSRBYNAM(3)
3
4
5
6[1mNAME[0m
7 lfc_getusrbynam β get virtual uid associated with a given
8user name
9
10[1mSYNOPSIS[0m
11 [1m#include <sys/types.h>[0m
12 [1m#include "lfc_api.h"[0m
13
14 [1mint lfc_getusrbynam (char *[4m[22musername[24m[1m,
15uid_t *[4m[22muid[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18 [1mlfc_getusrbynam [22mgets the virtual uid associated
19with a given user name.
20
21 [4musername[0m
22 specifies the user name. It must be at most
23255 characters
24 long.
25
26 [4muid[24m specifies the address of a buffer to receive
27the Virtual User
28 Id.
29
30[1mRETURN VALUE[0m
31 This routine returns 0 if the operation was successful
32or β1 if the
33 operation failed. In the latter case, [1mserrno [22mis set
34appropriately.
35
36[1mERRORS[0m
37 [1mEFAULT [4m[22musername[24m or [4muid[24m is a
38NULL pointer.
39
40 [1mEINVAL [22mThis user name does not exist in the
41internal mapping taβ
42 ble or the length of [4musername[24m exceeds
43255.
44
45 [1mSENOSHOST [22mHost unknown.
46
47 [1mSENOSSERV [22mService unknown.
48
49 [1mSECOMERR [22mCommunication error.
50
51 [1mENSNACT [22mName server is not running or is being
52shutdown.
53
54
55
56LFC $Date: 2005/10/19 11:30:57 $
57LFC_GETUSRBYNAM(3)
58
59
60
61
62
63
64
65
66