1#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 11#define GETINITGR 15 12 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 37#define INITGRVERSION 0 38#define INITGRFOUND 1 39#define INITGRNGRPS 2 40#define INITGR_LEN 3 41 42FILE *__nscd_query(int32_t req, const char *key, int32_t *buf, size_t len, int *swap); 43 44#endif 45