Lines Matching refs:buf
106 char buf[512]; in check_getpwuid_r() local
111 result = getpwuid_r(uid, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwuid_r()
121 char buf[512]; in check_getpwnam_r() local
126 result = getpwnam_r(username, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwnam_r()
151 char buf[512]; in expect_no_passwd_id() local
152 EXPECT_EQ(ENOENT, getpwuid_r(uid, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_id()
165 char buf[512]; in expect_no_passwd_name() local
166 EXPECT_EQ(ENOENT, getpwnam_r(username, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_name()
304 alignas(16) char buf[512]; in TEST() local
306 int result = getpwnam_r("root", &pwd_storage, buf + 1, sizeof(buf) - 1, &pwd); in TEST()
317 alignas(16) char buf[512]; in TEST() local
319 int result = getpwuid_r(0, &pwd_storage, buf + 1, sizeof(buf) - 1, &pwd); in TEST()
330 char buf[2][512]; in TEST() local
332 int result = getpwnam_r("root", &pwd_storage[0], buf[0], sizeof(buf[0]), &pwd[0]); in TEST()
338 result = getpwnam_r("radio", &pwd_storage[1], buf[1], sizeof(buf[1]), &pwd[2]); in TEST()
351 char buf[2][512]; in TEST() local
353 int result = getpwuid_r(0, &pwd_storage[0], buf[0], sizeof(buf[0]), &pwd[0]); in TEST()
359 result = getpwuid_r(1001, &pwd_storage[1], buf[1], sizeof(buf[1]), &pwd[2]); in TEST()
373 char buf[size]; in TEST() local
376 ASSERT_EQ(0, getpwnam_r("root", &pwd_storage, buf, size, &pwd)); in TEST()
514 char buf[512]; in check_getgrgid_r() local
518 int result = getgrgid_r(gid, &grp_storage, buf, sizeof(buf), &grp); in check_getgrgid_r()
527 char buf[512]; in check_getgrnam_r() local
531 int result = getgrnam_r(group_name, &grp_storage, buf, sizeof(buf), &grp); in check_getgrnam_r()
555 char buf[512]; in expect_no_group_id() local
556 EXPECT_EQ(ENOENT, getgrgid_r(gid, &group_storage, buf, sizeof(buf), &group)); in expect_no_group_id()
569 char buf[512]; in expect_no_group_name() local
570 EXPECT_EQ(ENOENT, getgrnam_r(groupname, &group_storage, buf, sizeof(buf), &group)); in expect_no_group_name()
727 alignas(16) char buf[512]; in TEST() local
729 int result = getgrnam_r("root", &grp_storage, buf + 1, sizeof(buf) - 1, &grp); in TEST()
740 alignas(16) char buf[512]; in TEST() local
742 int result = getgrgid_r(0, &grp_storage, buf + 1, sizeof(buf) - 1, &grp); in TEST()
753 char buf[2][512]; in TEST() local
755 int result = getgrnam_r("root", &grp_storage[0], buf[0], sizeof(buf[0]), &grp[0]); in TEST()
760 result = getgrnam_r("radio", &grp_storage[1], buf[1], sizeof(buf[1]), &grp[2]); in TEST()
773 char buf[2][512]; in TEST() local
775 int result = getgrgid_r(0, &grp_storage[0], buf[0], sizeof(buf[0]), &grp[0]); in TEST()
780 result = getgrgid_r(1001, &grp_storage[1], buf[1], sizeof(buf[1]), &grp[2]); in TEST()
793 char buf[size]; in TEST() local
796 ASSERT_EQ(0, getgrnam_r("root", &grp_storage, buf, size, &grp)); in TEST()