Lines Matching refs:buf
108 char buf[512]; in check_getpwuid_r() local
113 result = getpwuid_r(uid, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwuid_r()
123 char buf[512]; in check_getpwnam_r() local
128 result = getpwnam_r(username, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwnam_r()
153 char buf[512]; in expect_no_passwd_id() local
154 EXPECT_EQ(ENOENT, getpwuid_r(uid, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_id()
167 char buf[512]; in expect_no_passwd_name() local
168 EXPECT_EQ(ENOENT, getpwnam_r(username, &passwd_storage, buf, sizeof(buf), &passwd)); in expect_no_passwd_name()
306 alignas(16) char buf[512]; in TEST() local
308 int result = getpwnam_r("root", &pwd_storage, buf + 1, sizeof(buf) - 1, &pwd); in TEST()
319 alignas(16) char buf[512]; in TEST() local
321 int result = getpwuid_r(0, &pwd_storage, buf + 1, sizeof(buf) - 1, &pwd); in TEST()
332 char buf[2][512]; in TEST() local
334 int result = getpwnam_r("root", &pwd_storage[0], buf[0], sizeof(buf[0]), &pwd[0]); in TEST()
340 result = getpwnam_r("radio", &pwd_storage[1], buf[1], sizeof(buf[1]), &pwd[2]); in TEST()
353 char buf[2][512]; in TEST() local
355 int result = getpwuid_r(0, &pwd_storage[0], buf[0], sizeof(buf[0]), &pwd[0]); in TEST()
361 result = getpwuid_r(1001, &pwd_storage[1], buf[1], sizeof(buf[1]), &pwd[2]); in TEST()
375 char buf[size]; in TEST() local
378 ASSERT_EQ(0, getpwnam_r("root", &pwd_storage, buf, size, &pwd)); in TEST()
544 char buf[512]; in check_getgrgid_r() local
548 int result = getgrgid_r(gid, &grp_storage, buf, sizeof(buf), &grp); in check_getgrgid_r()
557 char buf[512]; in check_getgrnam_r() local
561 int result = getgrnam_r(group_name, &grp_storage, buf, sizeof(buf), &grp); in check_getgrnam_r()
585 char buf[512]; in expect_no_group_id() local
586 EXPECT_EQ(ENOENT, getgrgid_r(gid, &group_storage, buf, sizeof(buf), &group)); in expect_no_group_id()
599 char buf[512]; in expect_no_group_name() local
600 EXPECT_EQ(ENOENT, getgrnam_r(groupname, &group_storage, buf, sizeof(buf), &group)); in expect_no_group_name()
757 alignas(16) char buf[512]; in TEST() local
759 int result = getgrnam_r("root", &grp_storage, buf + 1, sizeof(buf) - 1, &grp); in TEST()
770 alignas(16) char buf[512]; in TEST() local
772 int result = getgrgid_r(0, &grp_storage, buf + 1, sizeof(buf) - 1, &grp); in TEST()
783 char buf[2][512]; in TEST() local
785 int result = getgrnam_r("root", &grp_storage[0], buf[0], sizeof(buf[0]), &grp[0]); in TEST()
790 result = getgrnam_r("radio", &grp_storage[1], buf[1], sizeof(buf[1]), &grp[2]); in TEST()
803 char buf[2][512]; in TEST() local
805 int result = getgrgid_r(0, &grp_storage[0], buf[0], sizeof(buf[0]), &grp[0]); in TEST()
810 result = getgrgid_r(1001, &grp_storage[1], buf[1], sizeof(buf[1]), &grp[2]); in TEST()
823 char buf[size]; in TEST() local
826 ASSERT_EQ(0, getgrnam_r("root", &grp_storage, buf, size, &grp)); in TEST()