Lines Matching refs:buf
154 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_passwd() local
156 result->pw_name = alloc_buffer_maybe_copy_string (&buf, local->pw_name); in copy_passwd()
157 result->pw_passwd = alloc_buffer_maybe_copy_string (&buf, local->pw_passwd); in copy_passwd()
160 result->pw_gecos = alloc_buffer_maybe_copy_string (&buf, local->pw_gecos); in copy_passwd()
161 result->pw_dir = alloc_buffer_maybe_copy_string (&buf, local->pw_dir); in copy_passwd()
162 result->pw_shell = alloc_buffer_maybe_copy_string (&buf, local->pw_shell); in copy_passwd()
164 if (alloc_buffer_has_failed (&buf)) in copy_passwd()
249 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_group() local
259 memlist = alloc_buffer_alloc_array (&buf, char *, i + 1); in copy_group()
263 memlist[i] = alloc_buffer_maybe_copy_string (&buf, local->gr_mem[i]); in copy_group()
272 result->gr_name = alloc_buffer_maybe_copy_string (&buf, local->gr_name); in copy_group()
273 result->gr_passwd = alloc_buffer_maybe_copy_string (&buf, local->gr_passwd); in copy_group()
276 if (alloc_buffer_has_failed (&buf)) in copy_group()
364 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_shadow() local
366 result->sp_namp = alloc_buffer_maybe_copy_string (&buf, local->sp_namp); in copy_shadow()
367 result->sp_pwdp = alloc_buffer_maybe_copy_string (&buf, local->sp_pwdp); in copy_shadow()
376 if (alloc_buffer_has_failed (&buf)) in copy_shadow()
447 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_host() local
457 memlist = alloc_buffer_alloc_array (&buf, char *, i + 1); in copy_host()
461 memlist[j] = alloc_buffer_maybe_copy_string (&buf, local->h_addr_list[j]); in copy_host()
475 result->h_name = alloc_buffer_maybe_copy_string (&buf, local->h_name); in copy_host()
477 if (alloc_buffer_has_failed (&buf)) in copy_host()