Lines Matching refs:fields
229 const char *cmds[7], *fields[4], *names[5]; in test_cmds() local
232 fields[0] = "gr_name"; in test_cmds()
233 fields[1] = "gr_passwd"; in test_cmds()
234 fields[2] = "gr_gid"; in test_cmds()
235 fields[3] = "gr_mem"; in test_cmds()
269 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
297 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
422 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
463 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
584 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
625 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
746 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
787 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
943 const char *fields[4]; in test_fields() local
956 fields[0] = "gr_name"; in test_fields()
957 fields[1] = "gr_passwd"; in test_fields()
958 fields[2] = "gr_gid"; in test_fields()
959 fields[3] = "gr_mem"; in test_fields()
960 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_fields()
973 fields[0] = "gr_passwd"; in test_fields()
974 fields[1] = "gr_gid"; in test_fields()
975 fields[2] = "gr_mem"; in test_fields()
976 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
977 fields[0] = "gr_name"; in test_fields()
978 fields[1] = "gr_passwd"; in test_fields()
979 fields[2] = "gr_gid"; in test_fields()
980 fields[3] = "gr_mem"; in test_fields()
981 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
995 fields[0] = "gr_name"; in test_fields()
996 fields[1] = "gr_gid"; in test_fields()
997 fields[2] = "gr_mem"; in test_fields()
998 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
999 fields[0] = "gr_name"; in test_fields()
1000 fields[1] = "gr_passwd"; in test_fields()
1001 fields[2] = "gr_gid"; in test_fields()
1002 fields[3] = "gr_mem"; in test_fields()
1003 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1005 fields[0] = "gr_passwd"; in test_fields()
1006 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1020 fields[0] = "gr_name"; in test_fields()
1021 fields[1] = "gr_passwd"; in test_fields()
1022 fields[2] = "gr_mem"; in test_fields()
1023 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1024 fields[0] = "gr_name"; in test_fields()
1025 fields[1] = "gr_passwd"; in test_fields()
1026 fields[2] = "gr_gid"; in test_fields()
1027 fields[3] = "gr_mem"; in test_fields()
1028 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1030 fields[0] = "gr_gid"; in test_fields()
1031 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1045 fields[0] = "gr_name"; in test_fields()
1046 fields[1] = "gr_passwd"; in test_fields()
1047 fields[2] = "gr_gid"; in test_fields()
1048 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1049 fields[0] = "gr_name"; in test_fields()
1050 fields[1] = "gr_passwd"; in test_fields()
1051 fields[2] = "gr_gid"; in test_fields()
1052 fields[3] = "gr_mem"; in test_fields()
1053 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1055 fields[0] = "gr_mem"; in test_fields()
1056 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1070 fields[0] = "gr_name"; in test_fields()
1071 fields[1] = "gr_passwd"; in test_fields()
1072 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1073 fields[0] = "gr_name"; in test_fields()
1074 fields[1] = "gr_passwd"; in test_fields()
1075 fields[2] = "gr_gid"; in test_fields()
1076 fields[3] = "gr_mem"; in test_fields()
1077 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1079 fields[0] = "gr_gid"; in test_fields()
1080 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1094 fields[0] = "gr_name"; in test_fields()
1095 fields[1] = "gr_gid"; in test_fields()
1096 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1097 fields[0] = "gr_name"; in test_fields()
1098 fields[1] = "gr_passwd"; in test_fields()
1099 fields[2] = "gr_gid"; in test_fields()
1100 fields[3] = "gr_mem"; in test_fields()
1101 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1103 fields[0] = "gr_mem"; in test_fields()
1104 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1118 fields[0] = "gr_name"; in test_fields()
1119 fields[1] = "gr_mem"; in test_fields()
1120 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1121 fields[0] = "gr_name"; in test_fields()
1122 fields[1] = "gr_passwd"; in test_fields()
1123 fields[2] = "gr_gid"; in test_fields()
1124 fields[3] = "gr_mem"; in test_fields()
1125 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1127 fields[0] = "gr_passwd"; in test_fields()
1128 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1142 fields[0] = "gr_passwd"; in test_fields()
1143 fields[1] = "gr_gid"; in test_fields()
1144 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1145 fields[0] = "gr_name"; in test_fields()
1146 fields[1] = "gr_passwd"; in test_fields()
1147 fields[2] = "gr_gid"; in test_fields()
1148 fields[3] = "gr_mem"; in test_fields()
1149 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1151 fields[0] = "gr_mem"; in test_fields()
1152 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1166 fields[0] = "gr_passwd"; in test_fields()
1167 fields[1] = "gr_mem"; in test_fields()
1168 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1169 fields[0] = "gr_name"; in test_fields()
1170 fields[1] = "gr_passwd"; in test_fields()
1171 fields[2] = "gr_gid"; in test_fields()
1172 fields[3] = "gr_mem"; in test_fields()
1173 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1175 fields[0] = "gr_gid"; in test_fields()
1176 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1190 fields[0] = "gr_gid"; in test_fields()
1191 fields[1] = "gr_mem"; in test_fields()
1192 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1193 fields[0] = "gr_name"; in test_fields()
1194 fields[1] = "gr_passwd"; in test_fields()
1195 fields[2] = "gr_gid"; in test_fields()
1196 fields[3] = "gr_mem"; in test_fields()
1197 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1199 fields[0] = "gr_passwd"; in test_fields()
1200 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()