blob: 9a53c3283338de530eda6af1a8a8e612178fa0d4 [file] [log] [blame]
Josiah Worcester34b423d2015-02-22 20:58:10 -06001#ifndef NSCD_H
2#define NSCD_H
3
4#include <stdint.h>
5
6#define NSCDVERSION 2
7#define GETPWBYNAME 0
8#define GETPWBYUID 1
9#define GETGRBYNAME 2
10#define GETGRBYGID 3
Josiah Worcester2894a442015-03-15 19:20:53 -050011#define GETINITGR 15
Josiah Worcester34b423d2015-02-22 20:58:10 -060012
13#define REQVERSION 0
14#define REQTYPE 1
15#define REQKEYLEN 2
16#define REQ_LEN 3
17
18#define PWVERSION 0
19#define PWFOUND 1
20#define PWNAMELEN 2
21#define PWPASSWDLEN 3
22#define PWUID 4
23#define PWGID 5
24#define PWGECOSLEN 6
25#define PWDIRLEN 7
26#define PWSHELLLEN 8
27#define PW_LEN 9
28
29#define GRVERSION 0
30#define GRFOUND 1
31#define GRNAMELEN 2
32#define GRPASSWDLEN 3
33#define GRGID 4
34#define GRMEMCNT 5
35#define GR_LEN 6
36
Josiah Worcester2894a442015-03-15 19:20:53 -050037#define INITGRVERSION 0
38#define INITGRFOUND 1
39#define INITGRNGRPS 2
40#define INITGR_LEN 3
41
Josiah Worcester34b423d2015-02-22 20:58:10 -060042FILE *__nscd_query(int32_t req, const char *key, int32_t *buf, size_t len, int *swap);
43
44#endif