1 #pragma once 2 3 #include "libc.h" 4 #include <stdint.h> 5 6 #define __NEED_FILE 7 #define __NEED_size_t 8 9 #include <bits/alltypes.h> 10 11 #define NSCDVERSION 2 12 #define GETPWBYNAME 0 13 #define GETPWBYUID 1 14 #define GETGRBYNAME 2 15 #define GETGRBYGID 3 16 #define GETINITGR 15 17 18 #define REQVERSION 0 19 #define REQTYPE 1 20 #define REQKEYLEN 2 21 #define REQ_LEN 3 22 23 #define PWVERSION 0 24 #define PWFOUND 1 25 #define PWNAMELEN 2 26 #define PWPASSWDLEN 3 27 #define PWUID 4 28 #define PWGID 5 29 #define PWGECOSLEN 6 30 #define PWDIRLEN 7 31 #define PWSHELLLEN 8 32 #define PW_LEN 9 33 34 #define GRVERSION 0 35 #define GRFOUND 1 36 #define GRNAMELEN 2 37 #define GRPASSWDLEN 3 38 #define GRGID 4 39 #define GRMEMCNT 5 40 #define GR_LEN 6 41 42 #define INITGRVERSION 0 43 #define INITGRFOUND 1 44 #define INITGRNGRPS 2 45 #define INITGR_LEN 3 46 47 FILE* __nscd_query(int32_t req, const char* key, int32_t* buf, size_t len, 48 int* swap) ATTR_LIBC_VISIBILITY; 49