Lines Matching full:items
60 size_t items;
70 items = put_entry(buf, sizeof(uint32_t), 3, fp);
71 if (items != 3)
76 items = put_entry(&bit, sizeof(uint32_t), 1, fp);
77 if (items != 1)
80 items = put_entry(&map, sizeof(uint64_t), 1, fp);
81 if (items != 1)
107 size_t items, items2;
121 items = 1; /* item 0 is used for the item count */
123 buf32[items++] = cpu_to_le32(val);
125 buf32[items++] = cpu_to_le32(val);
127 buf32[items++] = cpu_to_le32(val);
163 buf32[items++] = cpu_to_le32(val);
187 buf32[items++] =
194 buf32[items++] = cpu_to_le32(cur->datum.data);
204 buf32[0] = cpu_to_le32(items - 1);
208 items2 = put_entry(buf32, sizeof(uint32_t), items, fp);
209 if (items != items2)
221 items = put_entry(buf16, sizeof(uint16_t), 4, fp);
222 if (items != 4)
241 items = put_entry(&buf8, sizeof(uint8_t),1,fp);
242 if (items != 1)
245 items = put_entry(&buf8, sizeof(uint8_t),1,fp);
246 if (items != 1)
250 items = put_entry(buf32, sizeof(uint32_t),8,fp);
251 if (items != 8)
255 items = put_entry(buf32, sizeof(uint32_t), 1, fp);
256 if (items != 1)
280 size_t items;
301 items = put_entry(&nel, sizeof(uint32_t), 1, fp);
302 if (items != 1)
309 If new format, write out the items. */
319 Write the computed nel value, then write the items. */
321 items = put_entry(&nel, sizeof(uint32_t), 1, fp);
322 if (items != 1) {
352 size_t items;
360 items = put_entry(buf, sizeof(uint32_t), 2, fp);
361 if (items != 2)
367 items = put_entry(buf, sizeof(uint32_t), 2, fp);
368 if (items != 2)
400 size_t items;
403 items = put_entry(&sens, sizeof(uint32_t), 1, fp);
404 if (items != 1)
420 size_t items, items2;
425 items = 1; /* item 0 is used for the item count */
426 buf[items++] = cpu_to_le32(r->level[0].sens);
428 buf[items++] = cpu_to_le32(r->level[1].sens);
429 buf[0] = cpu_to_le32(items - 1);
431 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
432 if (items2 != items)
448 size_t items, items2, len;
455 items = 0;
456 buf[items++] = cpu_to_le32(len);
457 buf[items++] = cpu_to_le32(levdatum->isalias);
458 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
459 if (items != items2)
462 items = put_entry(key, 1, len, fp);
463 if (items != len)
476 size_t items, items2, len;
483 items = 0;
484 buf[items++] = cpu_to_le32(len);
485 buf[items++] = cpu_to_le32(catdatum->s.value);
486 buf[items++] = cpu_to_le32(catdatum->isalias);
487 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
488 if (items != items2)
491 items = put_entry(key, 1, len, fp);
492 if (items != len)
503 size_t nel, items;
514 items = put_entry(buf, sizeof(uint32_t), 1, fp);
515 if (items != 1)
529 items = put_entry(buf, sizeof(uint32_t), 3, fp);
530 if (items != 3)
534 items = put_entry(buf, sizeof(uint32_t), 1, fp);
535 if (items != 1)
547 size_t nel, items;
553 items = put_entry(buf, sizeof(uint32_t), 1, fp);
554 if (items != 1)
559 items = put_entry(buf, sizeof(uint32_t), 2, fp);
560 if (items != 2)
570 size_t nel, items, len;
576 items = put_entry(buf, sizeof(uint32_t), 1, fp);
577 if (items != 1)
582 items = put_entry(buf, sizeof(uint32_t), 1, fp);
583 if (items != 1)
586 items = put_entry(ft->name, sizeof(char), len, fp);
587 if (items != len)
594 items = put_entry(buf, sizeof(uint32_t), 4, fp);
595 if (items != 4)
604 size_t items;
611 items = put_entry(buf, sizeof(uint32_t), 1, fp);
612 if (items != 1)
620 size_t items;
629 items = put_entry(buf, sizeof(uint32_t), 1, fp);
630 if (items != 1)
640 unsigned int items, items2;
648 items = 0;
649 buf[items++] = cpu_to_le32(booldatum->s.value);
650 buf[items++] = cpu_to_le32(booldatum->state);
651 buf[items++] = cpu_to_le32(len);
652 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
653 if (items != items2)
655 items = put_entry(key, 1, len, fp);
656 if (items != len)
662 items = put_entry(buf, sizeof(uint32_t), 1, fp);
663 if (items != 1)
685 uint32_t len, items;
705 items = put_entry(buf, sizeof(uint32_t), 1, fp);
706 if (items != 1)
735 uint32_t items, items2, len;
738 items = put_entry(buf, sizeof(uint32_t), 1, fp);
739 if (items != 1)
748 items = put_entry(buf, sizeof(uint32_t), 1, fp);
749 if (items != 1)
753 items = 0;
754 buf[items++] = cpu_to_le32(cur_expr->expr_type);
755 buf[items++] = cpu_to_le32(cur_expr->bool);
756 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
757 if (items2 != items)
776 items = put_entry(buf, sizeof(uint32_t), 1, fp);
777 if (items != 1)
788 uint32_t len, items;
795 items = put_entry(buf, sizeof(uint32_t), 1, fp);
796 if (items != 1)
814 size_t items, items2;
816 items = 0;
817 buf[items++] = cpu_to_le32(c->user);
818 buf[items++] = cpu_to_le32(c->role);
819 buf[items++] = cpu_to_le32(c->type);
820 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
821 if (items2 != items)
843 size_t items, items2, len;
850 items = 0;
851 buf[items++] = cpu_to_le32(len);
852 buf[items++] = cpu_to_le32(perdatum->s.value);
853 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
854 if (items != items2)
857 items = put_entry(key, 1, len, fp);
858 if (items != len)
868 size_t items, items2, len;
875 items = 0;
876 buf[items++] = cpu_to_le32(len);
877 buf[items++] = cpu_to_le32(comdatum->s.value);
878 buf[items++] = cpu_to_le32(comdatum->permissions.nprim);
879 buf[items++] = cpu_to_le32(comdatum->permissions.table->nel);
880 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
881 if (items != items2)
884 items = put_entry(key, 1, len, fp);
885 if (items != len)
901 int items;
910 items = put_entry(buf, sizeof(uint32_t), 2, fp);
911 if (items != 2)
914 items = 0;
918 items = put_entry(buf, sizeof(uint32_t), 3, fp);
919 if (items != 3)
951 size_t items, items2, len, len2;
969 items = 0;
970 buf[items++] = cpu_to_le32(len);
971 buf[items++] = cpu_to_le32(len2);
972 buf[items++] = cpu_to_le32(cladatum->s.value);
973 buf[items++] = cpu_to_le32(cladatum->permissions.nprim);
975 buf[items++] = cpu_to_le32(cladatum->permissions.table->nel);
977 buf[items++] = 0;
978 buf[items++] = cpu_to_le32(ncons);
979 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
980 if (items != items2)
983 items = put_entry(key, 1, len, fp);
984 if (items != len)
988 items = put_entry(cladatum->comkey, 1, len2, fp);
989 if (items != len2)
1008 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1009 if (items != 1)
1022 items = put_entry(buf, sizeof(uint32_t), 3, fp);
1023 if (items != 3)
1032 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1033 if (items != 1)
1044 size_t items, items2, len;
1065 items = 0;
1066 buf[items++] = cpu_to_le32(len);
1067 buf[items++] = cpu_to_le32(role->s.value);
1069 buf[items++] = cpu_to_le32(role->bounds);
1070 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1071 if (items != items2)
1074 items = put_entry(key, 1, len, fp);
1075 if (items != len)
1091 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1092 if (items != 1)
1106 size_t items, items2, len;
1123 items = 0;
1124 buf[items++] = cpu_to_le32(len);
1125 buf[items++] = cpu_to_le32(typdatum->s.value);
1131 buf[items++] = cpu_to_le32(typdatum->primary);
1147 buf[items++] = cpu_to_le32(properties);
1148 buf[items++] = cpu_to_le32(typdatum->bounds);
1150 buf[items++] = cpu_to_le32(typdatum->primary);
1153 buf[items++] = cpu_to_le32(typdatum->flavor);
1156 buf[items++] = cpu_to_le32(typdatum->flags);
1164 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1165 if (items != items2)
1173 items = put_entry(key, 1, len, fp);
1174 if (items != len)
1184 size_t items, items2, len;
1192 items = 0;
1193 buf[items++] = cpu_to_le32(len);
1194 buf[items++] = cpu_to_le32(usrdatum->s.value);
1196 buf[items++] = cpu_to_le32(usrdatum->bounds);
1197 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1198 if (items != items2)
1201 items = put_entry(key, 1, len, fp);
1202 if (items != len)
1247 size_t nel, items, len;
1255 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1256 if (items != 1)
1262 items
1263 if (items != 1)
1270 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1271 if (items != 1)
1281 items = put_entry(buf, sizeof(uint32_t), 2, fp);
1282 if (items != 2)
1294 items = put_entry(b64, sizeof(uint64_t), 2, fp);
1295 if (items != 2)
1309 items = put_entry(buf, sizeof(uint32_t), 2, fp);
1310 if (items != 2)
1318 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1319 if (items != 1)
1327 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1328 if (items != 1)
1330 items = put_entry(c->u.name, 1, len, fp);
1331 if (items != len)
1346 size_t nel, items, len;
1354 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1355 if (items != 1)
1361 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1362 if (items != 1)
1371 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1372 if (items != 1)
1374 items = put_entry(c->u.name, 1, len, fp);
1375 if (items != len)
1389 items = put_entry(buf, sizeof(uint32_t), 3, fp);
1390 if (items != 3)
1398 items = put_entry(buf, sizeof(uint32_t), 2, fp);
1399 if (items != 2)
1408 items = put_entry(buf, sizeof(uint32_t), 2, fp);
1409 if (items != 2)
1411 items = put_entry(c->u.name, 1, len, fp);
1412 if (items != len)
1422 items = put_entry(buf, sizeof(uint32_t), 8, fp);
1423 if (items != 8)
1453 size_t nel = 0, items, len;
1459 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1460 if (items != 1)
1465 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1466 if (items != 1)
1468 items = put_entry(genfs->fstype, 1, len, fp);
1469 if (items != len)
1475 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1476 if (items != 1)
1481 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1482 if (items != 1)
1484 items = put_entry(c->u.name, 1, len, fp);
1485 if (items != len)
1488 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1489 if (items != 1)
1500 size_t nel, items;
1516 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1517 if (items != 1)
1530 items = put_entry(buf, sizeof(uint32_t), 2, fp);
1531 if (items != 2)
1535 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1536 if (items != 1)
1549 size_t items, items2;
1559 items = 0;
1560 buf[items++] = cpu_to_le32(avrule->specified);
1561 buf[items++] = cpu_to_le32(avrule->flags);
1562 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1563 if (items2 != items)
1578 items = 0;
1579 buf[items++] = cpu_to_le32(len);
1580 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1581 if (items2 != items)
1585 items = 0;
1586 buf[items++] = cpu_to_le32(cur->tclass);
1587 buf[items++] = cpu_to_le32(cur->data);
1588 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1589 if (items2 != items)
1641 size_t items;
1652 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1653 if (items != 1)
1672 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1673 if (items != 1)
1682 size_t items;
1689 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1690 if (items != 1)
1704 size_t items;
1712 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1713 if (items != 1)
1719 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1720 if (items != 1)
1723 items = put_entry(ftr->name, sizeof(char), len, fp);
1724 if (items != len)
1735 items = put_entry(buf, sizeof(uint32_t), 2, fp);
1736 if (items != 2)
1746 size_t items;
1753 items = put_entry(buf, sizeof(uint32_t), 1, fp);
1754 if (items != 1)
1880 unsigned int items = 2 + scope->decl_ids_len, i;
1884 if (items >= (sizeof(static_buf) / 4)) {
1889 dyn_buf = malloc(items * sizeof(*dyn_buf));
1907 if (put_entry(buf, sizeof(*buf), items, fp) != items)
1950 size_t items, items2, len;
1979 items = 0;
1981 buf[items++] = cpu_to_le32(POLICYDB_MAGIC);
1985 buf[items++] = cpu_to_le32(POLICYDB_MOD_MAGIC);
1989 buf[items++] = cpu_to_le32(len);
1990 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
1991 if (items != items2)
1993 items = put_entry(policydb_str, 1, len, fp);
1994 if (items != len)
1998 items = 0;
2008 buf[items++] = cpu_to_le32(p->policy_type);
2010 buf[items++] = cpu_to_le32(p->policyvers);
2011 buf[items++] = cpu_to_le32(config);
2012 buf[items++] = cpu_to_le32(info->sym_num);
2013 buf[items++] = cpu_to_le32(info->ocon_num);
2015 items2 = put_entry(buf, sizeof(uint32_t), items, fp);
2016 if (items != items2)
2023 items = put_entry(buf, sizeof(uint32_t), 1, fp);
2024 if (items != 1)
2026 items = put_entry(p->name, 1, len, fp);
2027 if (items != len)
2031 items = put_entry(buf, sizeof(uint32_t), 1, fp);
2032 if (items != 1)
2034 items = put_entry(p->version, 1, len, fp);
2035 if (items != len)
2099 items = put_entry(buf, sizeof(uint32_t), 2, fp);
2100 if (items != 2)