Lines Matching refs:buffer
32 struct passwd *getpwnam_r(const char* name, struct passwd* s, char* buffer, int size ) in getpwnam_r() argument
53 strcpy(buffer, res->pw_name); in getpwnam_r()
54 s->pw_name = buffer; in getpwnam_r()
55 buffer += nname; in getpwnam_r()
57 strcpy(buffer, res->pw_passwd); in getpwnam_r()
58 s->pw_passwd = buffer; in getpwnam_r()
59 buffer += npasswd; in getpwnam_r()
61 strcpy(buffer, res->pw_class); in getpwnam_r()
62 s->pw_class = buffer; in getpwnam_r()
63 buffer += nclass; in getpwnam_r()
65 strcpy(buffer, res->pw_gecos); in getpwnam_r()
66 s->pw_gecos = buffer; in getpwnam_r()
67 buffer += ngecos; in getpwnam_r()
69 strcpy(buffer, res->pw_dir); in getpwnam_r()
70 s->pw_dir = buffer; in getpwnam_r()
71 buffer += ndir; in getpwnam_r()
73 strcpy(buffer, res->pw_shell); in getpwnam_r()
74 s->pw_shell = buffer; in getpwnam_r()
87 int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, in getpwuid_r() argument
111 strncpy(buffer, res->pw_name, pw_name); in getpwuid_r()
112 pwd->pw_name = buffer; in getpwuid_r()
113 buffer += pw_name; in getpwuid_r()
115 strncpy(buffer, res->pw_passwd, pw_passwd); in getpwuid_r()
116 pwd->pw_passwd = buffer; in getpwuid_r()
117 buffer += pw_passwd; in getpwuid_r()
119 strncpy(buffer, res->pw_class, pw_class); in getpwuid_r()
120 pwd->pw_class = buffer; in getpwuid_r()
121 buffer += pw_class; in getpwuid_r()
123 strncpy(buffer, res->pw_gecos, pw_gecos); in getpwuid_r()
124 pwd->pw_gecos = buffer; in getpwuid_r()
125 buffer += pw_gecos; in getpwuid_r()
127 strncpy(buffer, res->pw_dir, pw_dir); in getpwuid_r()
128 pwd->pw_dir = buffer; in getpwuid_r()
129 buffer += pw_dir; in getpwuid_r()
131 strncpy(buffer, res->pw_shell, pw_shell); in getpwuid_r()
132 pwd->pw_shell = buffer; in getpwuid_r()
133 buffer += pw_shell; in getpwuid_r()
150 struct tm *localtime_r(const time_t *timep, struct tm *buffer) in localtime_r() argument
158 memcpy(buffer, res, sizeof(struct tm)); in localtime_r()
159 res = buffer; in localtime_r()
167 struct tm *gmtime_r(const time_t *timep, struct tm *buffer) in gmtime_r() argument
175 memcpy(buffer, res, sizeof(struct tm)); in gmtime_r()
176 res = buffer; in gmtime_r()
190 struct spwd *getspnam_r(const char *name, struct spwd* s, char* buffer, int size ) in getspnam_r() argument
205 strcpy(buffer, res->sp_namp); in getspnam_r()
206 s->sp_namp = buffer; in getspnam_r()
207 buffer += nnamp; in getspnam_r()
209 strcpy(buffer, res->sp_pwdp); in getspnam_r()
210 s->sp_pwdp = buffer; in getspnam_r()
223 struct passwd *getpwnam_r(const char* name, struct passwd* s, char* buffer, int size ) in getpwnam_r() argument
246 strcpy(buffer, res->pw_name); in getpwnam_r()
247 s->pw_name = buffer; in getpwnam_r()
248 buffer += nname; in getpwnam_r()
250 strcpy(buffer, res->pw_passwd); in getpwnam_r()
251 s->pw_passwd = buffer; in getpwnam_r()
252 buffer += npasswd; in getpwnam_r()
254 strcpy(buffer, res->pw_age); in getpwnam_r()
255 s->pw_age = buffer; in getpwnam_r()
256 buffer += nage; in getpwnam_r()
258 strcpy(buffer, res->pw_comment); in getpwnam_r()
259 s->pw_comment = buffer; in getpwnam_r()
260 buffer += ncomment; in getpwnam_r()
262 strcpy(buffer, res->pw_gecos); in getpwnam_r()
263 s->pw_gecos = buffer; in getpwnam_r()
264 buffer += ngecos; in getpwnam_r()
266 strcpy(buffer, res->pw_dir); in getpwnam_r()
267 s->pw_dir = buffer; in getpwnam_r()
268 buffer += ndir; in getpwnam_r()
270 strcpy(buffer, res->pw_shell); in getpwnam_r()
271 s->pw_shell = buffer; in getpwnam_r()
290 char *buffer, int buflen, int *h_errnop) in gethostbyname_r() argument
334 strcpy(buffer, res->h_name); in gethostbyname_r()
335 result->h_name = buffer; in gethostbyname_r()
336 buffer += nname; in gethostbyname_r()
338 parray = (char**)buffer; in gethostbyname_r()
340 data = buffer + (naliases+1)*sizeof(char*); in gethostbyname_r()
348 buffer = data; in gethostbyname_r()
349 parray = (char**)buffer; in gethostbyname_r()
351 data = buffer + (naddr_list+1)*sizeof(char*); in gethostbyname_r()