MCPcopy Create free account
hub / github.com/RsyncProject/rsync / hpux_count_obj

Function hpux_count_obj

lib/sysacls.c:1118–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116 */
1117
1118static void hpux_count_obj(int acl_count, struct acl *aclp, struct hpux_acl_types *acl_type_count)
1119{
1120 int i;
1121
1122 memset(acl_type_count, 0, sizeof (struct hpux_acl_types));
1123
1124 for (i = 0; i < acl_count; i++) {
1125 switch (aclp[i].a_type) {
1126 case USER:
1127 acl_type_count->n_user++;
1128 break;
1129 case USER_OBJ:
1130 acl_type_count->n_user_obj++;
1131 break;
1132 case DEF_USER_OBJ:
1133 acl_type_count->n_def_user_obj++;
1134 break;
1135 case GROUP:
1136 acl_type_count->n_group++;
1137 break;
1138 case GROUP_OBJ:
1139 acl_type_count->n_group_obj++;
1140 break;
1141 case DEF_GROUP_OBJ:
1142 acl_type_count->n_def_group_obj++;
1143 break;
1144 case OTHER_OBJ:
1145 acl_type_count->n_other_obj++;
1146 break;
1147 case DEF_OTHER_OBJ:
1148 acl_type_count->n_def_other_obj++;
1149 break;
1150 case CLASS_OBJ:
1151 acl_type_count->n_class_obj++;
1152 break;
1153 case DEF_CLASS_OBJ:
1154 acl_type_count->n_def_class_obj++;
1155 break;
1156 case DEF_USER:
1157 acl_type_count->n_def_user++;
1158 break;
1159 case DEF_GROUP:
1160 acl_type_count->n_def_group++;
1161 break;
1162 default:
1163 acl_type_count->n_illegal_obj++;
1164 break;
1165 }
1166 }
1167}
1168
1169/* swap_acl_entries: Swaps two ACL entries.
1170 *

Callers 1

hpux_acl_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected