Lines Matching refs:fields

232 	const char *cmds[7], *fields[4], *names[5];  in test_cmds()  local
235 fields[0] = "gr_name"; in test_cmds()
236 fields[1] = "gr_passwd"; in test_cmds()
237 fields[2] = "gr_gid"; in test_cmds()
238 fields[3] = "gr_mem"; in test_cmds()
272 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
300 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
421 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
462 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
583 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
624 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
745 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
786 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
942 const char *fields[4]; in test_fields() local
955 fields[0] = "gr_name"; in test_fields()
956 fields[1] = "gr_passwd"; in test_fields()
957 fields[2] = "gr_gid"; in test_fields()
958 fields[3] = "gr_mem"; in test_fields()
959 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_fields()
972 fields[0] = "gr_passwd"; in test_fields()
973 fields[1] = "gr_gid"; in test_fields()
974 fields[2] = "gr_mem"; in test_fields()
975 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
976 fields[0] = "gr_name"; in test_fields()
977 fields[1] = "gr_passwd"; in test_fields()
978 fields[2] = "gr_gid"; in test_fields()
979 fields[3] = "gr_mem"; in test_fields()
980 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
994 fields[0] = "gr_name"; in test_fields()
995 fields[1] = "gr_gid"; in test_fields()
996 fields[2] = "gr_mem"; in test_fields()
997 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
998 fields[0] = "gr_name"; in test_fields()
999 fields[1] = "gr_passwd"; in test_fields()
1000 fields[2] = "gr_gid"; in test_fields()
1001 fields[3] = "gr_mem"; in test_fields()
1002 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1004 fields[0] = "gr_passwd"; in test_fields()
1005 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1019 fields[0] = "gr_name"; in test_fields()
1020 fields[1] = "gr_passwd"; in test_fields()
1021 fields[2] = "gr_mem"; in test_fields()
1022 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1023 fields[0] = "gr_name"; in test_fields()
1024 fields[1] = "gr_passwd"; in test_fields()
1025 fields[2] = "gr_gid"; in test_fields()
1026 fields[3] = "gr_mem"; in test_fields()
1027 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1029 fields[0] = "gr_gid"; in test_fields()
1030 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1044 fields[0] = "gr_name"; in test_fields()
1045 fields[1] = "gr_passwd"; in test_fields()
1046 fields[2] = "gr_gid"; in test_fields()
1047 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1048 fields[0] = "gr_name"; in test_fields()
1049 fields[1] = "gr_passwd"; in test_fields()
1050 fields[2] = "gr_gid"; in test_fields()
1051 fields[3] = "gr_mem"; in test_fields()
1052 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1054 fields[0] = "gr_mem"; in test_fields()
1055 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1069 fields[0] = "gr_name"; in test_fields()
1070 fields[1] = "gr_passwd"; in test_fields()
1071 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1072 fields[0] = "gr_name"; in test_fields()
1073 fields[1] = "gr_passwd"; in test_fields()
1074 fields[2] = "gr_gid"; in test_fields()
1075 fields[3] = "gr_mem"; in test_fields()
1076 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1078 fields[0] = "gr_gid"; in test_fields()
1079 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1093 fields[0] = "gr_name"; in test_fields()
1094 fields[1] = "gr_gid"; in test_fields()
1095 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1096 fields[0] = "gr_name"; in test_fields()
1097 fields[1] = "gr_passwd"; in test_fields()
1098 fields[2] = "gr_gid"; in test_fields()
1099 fields[3] = "gr_mem"; in test_fields()
1100 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1102 fields[0] = "gr_mem"; in test_fields()
1103 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1117 fields[0] = "gr_name"; in test_fields()
1118 fields[1] = "gr_mem"; in test_fields()
1119 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1120 fields[0] = "gr_name"; in test_fields()
1121 fields[1] = "gr_passwd"; in test_fields()
1122 fields[2] = "gr_gid"; in test_fields()
1123 fields[3] = "gr_mem"; in test_fields()
1124 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1126 fields[0] = "gr_passwd"; in test_fields()
1127 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1141 fields[0] = "gr_passwd"; in test_fields()
1142 fields[1] = "gr_gid"; in test_fields()
1143 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1144 fields[0] = "gr_name"; in test_fields()
1145 fields[1] = "gr_passwd"; in test_fields()
1146 fields[2] = "gr_gid"; in test_fields()
1147 fields[3] = "gr_mem"; in test_fields()
1148 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1150 fields[0] = "gr_mem"; in test_fields()
1151 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1165 fields[0] = "gr_passwd"; in test_fields()
1166 fields[1] = "gr_mem"; in test_fields()
1167 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1168 fields[0] = "gr_name"; in test_fields()
1169 fields[1] = "gr_passwd"; in test_fields()
1170 fields[2] = "gr_gid"; in test_fields()
1171 fields[3] = "gr_mem"; in test_fields()
1172 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1174 fields[0] = "gr_gid"; in test_fields()
1175 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1189 fields[0] = "gr_gid"; in test_fields()
1190 fields[1] = "gr_mem"; in test_fields()
1191 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1192 fields[0] = "gr_name"; in test_fields()
1193 fields[1] = "gr_passwd"; in test_fields()
1194 fields[2] = "gr_gid"; in test_fields()
1195 fields[3] = "gr_mem"; in test_fields()
1196 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1198 fields[0] = "gr_passwd"; in test_fields()
1199 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()