Lines Matching +full:0 +full:x0000001

52 #define	ACL_SYNCHRONIZE_SET_DENY		0x0000001
53 #define ACL_SYNCHRONIZE_SET_ALLOW 0x0000002
54 #define ACL_SYNCHRONIZE_ERR_DENY 0x0000004
55 #define ACL_SYNCHRONIZE_ERR_ALLOW 0x0000008
57 #define ACL_WRITE_OWNER_SET_DENY 0x0000010
58 #define ACL_WRITE_OWNER_SET_ALLOW 0x0000020
59 #define ACL_WRITE_OWNER_ERR_DENY 0x0000040
60 #define ACL_WRITE_OWNER_ERR_ALLOW 0x0000080
62 #define ACL_DELETE_SET_DENY 0x0000100
63 #define ACL_DELETE_SET_ALLOW 0x0000200
64 #define ACL_DELETE_ERR_DENY 0x0000400
65 #define ACL_DELETE_ERR_ALLOW 0x0000800
67 #define ACL_WRITE_ATTRS_OWNER_SET_DENY 0x0001000
68 #define ACL_WRITE_ATTRS_OWNER_SET_ALLOW 0x0002000
69 #define ACL_WRITE_ATTRS_OWNER_ERR_DENY 0x0004000
70 #define ACL_WRITE_ATTRS_OWNER_ERR_ALLOW 0x0008000
72 #define ACL_WRITE_ATTRS_WRITER_SET_DENY 0x0010000
73 #define ACL_WRITE_ATTRS_WRITER_SET_ALLOW 0x0020000
74 #define ACL_WRITE_ATTRS_WRITER_ERR_DENY 0x0040000
75 #define ACL_WRITE_ATTRS_WRITER_ERR_ALLOW 0x0080000
77 #define ACL_WRITE_NAMED_WRITER_SET_DENY 0x0100000
78 #define ACL_WRITE_NAMED_WRITER_SET_ALLOW 0x0200000
79 #define ACL_WRITE_NAMED_WRITER_ERR_DENY 0x0400000
80 #define ACL_WRITE_NAMED_WRITER_ERR_ALLOW 0x0800000
82 #define ACL_READ_NAMED_READER_SET_DENY 0x1000000
83 #define ACL_READ_NAMED_READER_SET_ALLOW 0x2000000
84 #define ACL_READ_NAMED_READER_ERR_DENY 0x4000000
85 #define ACL_READ_NAMED_READER_ERR_ALLOW 0x8000000
107 #define ACE_MASK_UNDEFINED 0x80000000
157 * returns (-1 = less than, 0 = equal, 1 = greater than
171 ASSERT3U(((uintptr_t)v & 0x3), ==, 0); in ksort()
172 ASSERT3S((s & 0x3), ==, 0); in ksort()
173 ASSERT3S(s, >, 0); in ksort()
174 for (g = n / 2; g > 0; g /= 2) { in ksort()
176 for (j = i - g; j >= 0 && in ksort()
181 for (ii = 0; ii < s / 4; ii++) { in ksort()
194 * 0 (equal)
219 return (0); in cmp2acls()
226 return (0); in cacl_malloc()
236 if (cacl_malloc((void **)&aclp, sizeof (acl_t)) != 0) in acl_alloc()
240 aclp->acl_cnt = 0; in acl_alloc()
280 uint32_t access_mask = 0; in access_mask_set()
282 int synchronize_set = 0, write_owner_set = 0; in access_mask_set()
283 int delete_set = 0, write_attrs_set = 0; in access_mask_set()
284 int read_named_set = 0, write_named_set = 0; in access_mask_set()
347 uint32_t access = 0; in mode_to_ace_access()
348 int haswriteperm = 0; in mode_to_ace_access()
349 int hasreadperm = 0; in mode_to_ace_access()
428 int error = 0; in ln_aent_preprocess()
430 int curtype = 0; in ln_aent_preprocess()
432 *hasmask = 0; in ln_aent_preprocess()
434 *needsort = 0; in ln_aent_preprocess()
435 *numuser = 0; in ln_aent_preprocess()
436 *numgroup = 0; in ln_aent_preprocess()
438 for (i = 0; i < n; i++) { in ln_aent_preprocess()
475 int error = 0; in ln_aent_to_ace()
478 int resultsize = 0; in ln_aent_to_ace()
479 int i, groupi = 0, skip; in ln_aent_to_ace()
485 if (error != 0) in ln_aent_to_ace()
505 if (cacl_malloc((void **)&result, resultsize * sizeof (ace_t)) != 0) in ln_aent_to_ace()
510 for (i = 0; i < n; i++) { in ln_aent_to_ace()
522 acep->a_flags = 0; in ln_aent_to_ace()
545 isdir, 0, 0); in ln_aent_to_ace()
629 if (error != 0) { in ln_aent_to_ace()
630 if ((result != NULL) && (resultsize > 0)) { in ln_aent_to_ace()
644 int acecnt = 0; in convert_aent_to_ace()
645 int dfacecnt = 0; in convert_aent_to_ace()
646 int dfaclstart = 0; in convert_aent_to_ace()
647 int dfaclcnt = 0; in convert_aent_to_ace()
655 for (i = 0, aclp = aclentp; i < aclcnt; aclp++, i++) { in convert_aent_to_ace()
684 if (dfacecnt != 0) { in convert_aent_to_ace()
699 return (0); in convert_aent_to_ace()
705 int error = 0; in ace_mask_to_mode()
706 o_mode_t mode = 0; in ace_mask_to_mode()
718 if (bits != 0) { in ace_mask_to_mode()
740 memset(vals, 0, sizeof (*vals)); in acevals_init()
750 acevals_init(&al->user_obj, 0); in ace_list_init()
751 acevals_init(&al->group_obj, 0); in ace_list_init()
752 acevals_init(&al->other_obj, 0); in ace_list_init()
753 al->numusers = 0; in ace_list_init()
754 al->numgroups = 0; in ace_list_init()
755 al->acl_mask = 0; in ace_list_init()
756 al->hasmask = 0; in ace_list_init()
758 al->seen = 0; in ace_list_init()
780 if (cacl_malloc((void **)&rc, sizeof (acevals_t)) != 0) in acevals_find()
799 haswriteperm = (acep->a_access_mask & ACE_WRITE_DATA) ? 0 : 1; in access_mask_check()
800 hasreadperm = (acep->a_access_mask & ACE_READ_DATA) ? 0 : 1; in access_mask_check()
802 haswriteperm = (acep->a_access_mask & ACE_WRITE_DATA) ? 1 : 0; in access_mask_check()
803 hasreadperm = (acep->a_access_mask & ACE_READ_DATA) ? 1 : 0; in access_mask_check()
848 return (0); in access_mask_check()
852 return (0); in access_mask_check()
860 return (0); in access_mask_check()
892 return (0); in access_mask_check()
898 int error = 0; in ace_to_aent_legal()
931 isowner = 0; in ace_to_aent_legal()
1030 if (error != 0) in acevals_to_aent()
1040 dest->a_id = 0; in acevals_to_aent()
1055 int error = 0; in ace_list_to_aent()
1065 if ((! list->hasmask) && (list->numusers + list->numgroups > 0)) { in ace_list_to_aent()
1079 resultcount * sizeof (aclent_t)) != 0) { in ace_list_to_aent()
1094 if (error != 0) in ace_list_to_aent()
1107 if (error != 0) in ace_list_to_aent()
1118 if (error != 0) in ace_list_to_aent()
1131 if (error != 0) in ace_list_to_aent()
1148 if (error != 0) in ace_list_to_aent()
1154 if (error != 0) in ace_list_to_aent()
1157 aent->a_id = 0; in ace_list_to_aent()
1168 if (error != 0) in ace_list_to_aent()
1176 if (error != 0) { in ace_list_to_aent()
1217 return (0); in acevals_compare()
1235 int error = 0; in ln_ace_to_aent()
1243 *aclcnt = 0; in ln_ace_to_aent()
1245 *dfaclcnt = 0; in ln_ace_to_aent()
1258 if (error != 0) in ln_ace_to_aent()
1266 ace_list_init(normacl, 0); in ln_ace_to_aent()
1269 if (error != 0) in ln_ace_to_aent()
1279 for (i = 0; i < n; i++) { in ln_ace_to_aent()
1284 if (error != 0) in ln_ace_to_aent()
1300 if (bits != 0) { in ln_ace_to_aent()
1406 if (error != 0) { in ln_ace_to_aent()
1413 if (error != 0) { in ln_ace_to_aent()
1431 int error = 0; in convert_ace_to_aent()
1443 if (dfaclcnt != 0) { in convert_ace_to_aent()
1483 return (0); in acl_translate()
1521 return (0); in acl_translate()
1535 acl[0][index].a_who = (uint32_t)who; \
1536 acl[0][index].a_type = type; \
1537 acl[0][index].a_flags = flags; \
1538 acl[0][index++].a_access_mask = mask; \
1550 masks->deny1 = 0; in acl_trivial_access_masks()
1558 masks->deny2 = 0; in acl_trivial_access_masks()
1566 masks->allow0 = 0; in acl_trivial_access_masks()
1606 int index = 0; in acl_trivial_create()
1620 if ((error = cacl_malloc((void **)acl, *count * sizeof (ace_t))) != 0) in acl_trivial_create()
1643 return (0); in acl_trivial_create()
1663 uintptr_t cookie = 0; in ace_trivial_common()
1707 return (0); in ace_trivial_common()