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()
425 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
466 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
587 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
628 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
749 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
790 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
946 const char *fields[4]; in test_fields() local
959 fields[0] = "gr_name"; in test_fields()
960 fields[1] = "gr_passwd"; in test_fields()
961 fields[2] = "gr_gid"; in test_fields()
962 fields[3] = "gr_mem"; in test_fields()
963 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_fields()
976 fields[0] = "gr_passwd"; in test_fields()
977 fields[1] = "gr_gid"; in test_fields()
978 fields[2] = "gr_mem"; in test_fields()
979 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
980 fields[0] = "gr_name"; in test_fields()
981 fields[1] = "gr_passwd"; in test_fields()
982 fields[2] = "gr_gid"; in test_fields()
983 fields[3] = "gr_mem"; in test_fields()
984 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
998 fields[0] = "gr_name"; in test_fields()
999 fields[1] = "gr_gid"; in test_fields()
1000 fields[2] = "gr_mem"; in test_fields()
1001 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1002 fields[0] = "gr_name"; in test_fields()
1003 fields[1] = "gr_passwd"; in test_fields()
1004 fields[2] = "gr_gid"; in test_fields()
1005 fields[3] = "gr_mem"; in test_fields()
1006 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1008 fields[0] = "gr_passwd"; in test_fields()
1009 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1023 fields[0] = "gr_name"; in test_fields()
1024 fields[1] = "gr_passwd"; in test_fields()
1025 fields[2] = "gr_mem"; in test_fields()
1026 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1027 fields[0] = "gr_name"; in test_fields()
1028 fields[1] = "gr_passwd"; in test_fields()
1029 fields[2] = "gr_gid"; in test_fields()
1030 fields[3] = "gr_mem"; in test_fields()
1031 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1033 fields[0] = "gr_gid"; in test_fields()
1034 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && 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 CHECK(cap_grp_limit_fields(capgrp, fields, 3) == 0); in test_fields()
1052 fields[0] = "gr_name"; in test_fields()
1053 fields[1] = "gr_passwd"; in test_fields()
1054 fields[2] = "gr_gid"; in test_fields()
1055 fields[3] = "gr_mem"; in test_fields()
1056 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1058 fields[0] = "gr_mem"; in test_fields()
1059 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1073 fields[0] = "gr_name"; in test_fields()
1074 fields[1] = "gr_passwd"; in test_fields()
1075 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1076 fields[0] = "gr_name"; in test_fields()
1077 fields[1] = "gr_passwd"; in test_fields()
1078 fields[2] = "gr_gid"; in test_fields()
1079 fields[3] = "gr_mem"; in test_fields()
1080 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1082 fields[0] = "gr_gid"; in test_fields()
1083 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1097 fields[0] = "gr_name"; in test_fields()
1098 fields[1] = "gr_gid"; in test_fields()
1099 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1100 fields[0] = "gr_name"; in test_fields()
1101 fields[1] = "gr_passwd"; in test_fields()
1102 fields[2] = "gr_gid"; in test_fields()
1103 fields[3] = "gr_mem"; in test_fields()
1104 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1106 fields[0] = "gr_mem"; in test_fields()
1107 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1121 fields[0] = "gr_name"; in test_fields()
1122 fields[1] = "gr_mem"; in test_fields()
1123 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1124 fields[0] = "gr_name"; in test_fields()
1125 fields[1] = "gr_passwd"; in test_fields()
1126 fields[2] = "gr_gid"; in test_fields()
1127 fields[3] = "gr_mem"; in test_fields()
1128 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1130 fields[0] = "gr_passwd"; in test_fields()
1131 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1145 fields[0] = "gr_passwd"; in test_fields()
1146 fields[1] = "gr_gid"; in test_fields()
1147 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1148 fields[0] = "gr_name"; in test_fields()
1149 fields[1] = "gr_passwd"; in test_fields()
1150 fields[2] = "gr_gid"; in test_fields()
1151 fields[3] = "gr_mem"; in test_fields()
1152 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1154 fields[0] = "gr_mem"; in test_fields()
1155 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1169 fields[0] = "gr_passwd"; in test_fields()
1170 fields[1] = "gr_mem"; in test_fields()
1171 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1172 fields[0] = "gr_name"; in test_fields()
1173 fields[1] = "gr_passwd"; in test_fields()
1174 fields[2] = "gr_gid"; in test_fields()
1175 fields[3] = "gr_mem"; in test_fields()
1176 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1178 fields[0] = "gr_gid"; in test_fields()
1179 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()
1193 fields[0] = "gr_gid"; in test_fields()
1194 fields[1] = "gr_mem"; in test_fields()
1195 CHECK(cap_grp_limit_fields(capgrp, fields, 2) == 0); in test_fields()
1196 fields[0] = "gr_name"; in test_fields()
1197 fields[1] = "gr_passwd"; in test_fields()
1198 fields[2] = "gr_gid"; in test_fields()
1199 fields[3] = "gr_mem"; in test_fields()
1200 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == -1 && in test_fields()
1202 fields[0] = "gr_passwd"; in test_fields()
1203 CHECK(cap_grp_limit_fields(capgrp, fields, 1) == -1 && in test_fields()