|
|
1.1 root 1: PasswordLookup : PROGRAM 754 VERSION 1 =
2:
3: BEGIN
4:
5: -- This is a translation of the passwd structure in <pwd.h>
6:
7: Passwd : TYPE = RECORD [
8: pw_name, pw_passwd : STRING,
9: pw_uid, pw_gid, pw_quota : LONG CARDINAL,
10: pw_comment, pw_gecos, pw_dir, pw_shell : STRING
11: ];
12:
13: -- Errors
14:
15: NoSuchUser: ERROR = 0;
16: OtherError: ERROR [errorstring: STRING]
17: = 1;
18:
19: -- Remote entry points.
20:
21: LookupUid : PROCEDURE [uid : CARDINAL] RETURNS [passwd : Passwd]
22: REPORTS [NoSuchUser]
23: = 0;
24:
25: LookupUser : PROCEDURE [user : STRING] RETURNS [passwd : Passwd]
26: REPORTS [NoSuchUser, OtherError]
27: = 1;
28:
29: END.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.