/titanic_50/usr/src/cmd/setfacl/ |
H A D | setfacl.c | 71 int aclcnt; /* used by -m -d */ in main() local 161 aclcnt = get_acl_info(filep, &aclp); in main() 162 if (aclcnt == -1) in main() 164 if (mod_entries(aclp, aclcnt, work_mp, in main() 194 int aclcnt; in get_acl_info() local 196 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { in get_acl_info() 210 if (aclcnt < MIN_ACL_ENTRIES) { in get_acl_info() 213 aclcnt, filep); in get_acl_info() 217 if ((*aclpp = (aclent_t *)malloc(sizeof (aclent_t) * aclcnt)) == NULL) { in get_acl_info() 221 if (acl(filep, GETACL, aclcnt, *aclpp) < 0) { in get_acl_info() [all …]
|
/titanic_50/usr/src/cmd/getfacl/ |
H A D | getfacl.c | 75 int aclcnt; in main() local 113 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { in main() 125 if (aclcnt < MIN_ACL_ENTRIES) { in main() 128 aclcnt, filep); in main() 132 if ((aclp = (aclent_t *)malloc(sizeof (aclent_t) * aclcnt)) in main() 140 if (acl(filep, GETACL, aclcnt, aclp) < 0) { in main() 147 savecnt = aclcnt; in main() 148 for (tp = aclp; aclcnt--; tp++) { in main() 158 aclcnt = savecnt; in main() 159 for (tp = aclp; aclcnt--; tp++) { in main()
|
/titanic_50/usr/src/common/acl/ |
H A D | acl_common.c | 673 convert_aent_to_ace(aclent_t *aclentp, int aclcnt, boolean_t isdir, in convert_aent_to_ace() argument 687 ksort((caddr_t)aclentp, aclcnt, sizeof (aclent_t), cmp2acls); in convert_aent_to_ace() 689 for (i = 0, aclp = aclentp; i < aclcnt; aclp++, i++) { in convert_aent_to_ace() 694 if (i < aclcnt) { in convert_aent_to_ace() 696 dfaclcnt = aclcnt - i; in convert_aent_to_ace() 1086 ace_list_to_aent(ace_list_t *list, aclent_t **aclentp, int *aclcnt, in ace_list_to_aent() argument 1207 *aclcnt = resultcount; in ace_list_to_aent() 1266 aclent_t **aclentp, int *aclcnt, aclent_t **dfaclentp, int *dfaclcnt, in ln_ace_to_aent() argument 1277 *aclcnt = 0; in ln_ace_to_aent() 1438 error = ace_list_to_aent(normacl, aclentp, aclcnt, in ln_ace_to_aent() [all …]
|
H A D | acl_common.h | 49 extern int ace_trivial(ace_t *acep, int aclcnt); 51 uint64_t (*walk)(void *, uint64_t, int aclcnt, uint16_t *, uint16_t *,
|
/titanic_50/usr/src/lib/libsec/common/ |
H A D | aclutils.c | 64 int aclcnt; in acl_trivial() local 76 aclcnt = acl(filename, cntcmd, 0, NULL); in acl_trivial() 77 if (aclcnt > 0) { in acl_trivial() 79 acep = malloc(sizeof (ace_t) * aclcnt); in acl_trivial() 83 aclcnt, acep) < 0) { in acl_trivial() 88 val = ace_trivial(acep, aclcnt); in acl_trivial() 91 } else if (aclcnt > MIN_ACL_ENTRIES) in acl_trivial() 396 int aclcnt; in acl_strip() local 426 aclcnt = 4; in acl_strip() 427 error = acl(file, SETACL, aclcnt, min_acl); in acl_strip() [all …]
|
H A D | acltext.c | 179 int aclcnt; in aclent_printacl() local 187 aclcnt = aclp->acl_cnt; in aclent_printacl() 188 for (tp = aclp->acl_aclp; tp && aclcnt--; tp++) { in aclent_printacl() 192 aclcnt = aclp->acl_cnt; in aclent_printacl() 193 for (tp = aclp->acl_aclp; aclcnt--; tp++) { in aclent_printacl() 730 aclent_acltotext(aclent_t *aclp, int aclcnt, int flags) in aclent_acltotext() argument 741 dstr->d_bufsize = aclcnt * ACL_ENTRY_SIZE; in aclent_acltotext() 749 for (i = 0; i < aclcnt; i++, aclp++) { in aclent_acltotext() 767 if (i < aclcnt - 1) in aclent_acltotext() 782 acltotext(aclent_t *aclp, int aclcnt) in acltotext() argument [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_acl.h | 177 #define ZFS_ACL_SIZE(aclcnt) (sizeof (ace_t) * (aclcnt)) argument
|
/titanic_50/usr/src/ucbcmd/ls/ |
H A D | ls.c | 324 int aclcnt; in gstat() local 425 if ((aclcnt = acl(file, GETACLCNT, 0, NULL)) > in gstat() 444 (sizeof (aclent_t)) * aclcnt)) == NULL) { in gstat() 449 if (acl(file, GETACL, aclcnt, aclp) < 0) { in gstat() 466 for (tp = aclp; aclcnt--; tp++) { in gstat()
|
/titanic_50/usr/src/cmd/chmod/ |
H A D | chmod.c | 674 int aclcnt, n; in handle_acl() local 684 if ((aclcnt = acl(name, GETACLCNT, 0, NULL)) <= MIN_ACL_ENTRIES) in handle_acl() 686 if ((aclp = (aclent_t *)malloc((sizeof (aclent_t)) * aclcnt)) in handle_acl() 692 if (acl(name, GETACL, aclcnt, aclp) < 0) { in handle_acl() 698 for (tp = aclp, n = aclcnt; n--; tp++) { in handle_acl() 707 if (acl(name, SETACL, aclcnt, aclp) in handle_acl()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 1865 int aclcnt; in sendacl() local 1887 aclcnt = MIN_ACL_ENTRIES; in sendacl() 1892 aclcnt = (aclp != NULL) ? acl_cnt(aclp) : 0; in sendacl() 1896 aclcnt = acl_cnt(aclp); in sendacl() 1900 aclcnt = MIN_ACL_ENTRIES; in sendacl() 1907 (void) snprintf(buf, sizeof (buf), "%c%d\n", acltype, aclcnt); in sendacl() 1994 int aclcnt; /* acl entry count */ in recvacl() local 2005 if (getaclinfo(&aclcnt, &acltype) != ACL_OK) in recvacl() 2014 if (aclcnt > min_entries) { in recvacl()
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | zfs_acl.c | 635 zfs_ace_walk(void *datap, uint64_t cookie, int aclcnt, in zfs_ace_walk() argument 661 void *datap, zfs_ace_t *z_acl, uint64_t aclcnt, size_t *size, in zfs_copy_ace_2_fuid() argument 671 for (i = 0; i != aclcnt; i++) { in zfs_copy_ace_2_fuid() 780 zfs_oldace_t *z_acl, int aclcnt, size_t *size) in zfs_copy_ace_2_oldace() argument 785 for (i = 0; i != aclcnt; i++, aceptr++) { in zfs_copy_ace_2_oldace() 1875 int aclcnt = vsecp->vsa_aclcnt; in zfs_vsec_2_aclp() local 1884 aclnode = zfs_acl_node_alloc(aclcnt * sizeof (zfs_object_ace_t)); in zfs_vsec_2_aclp() 1888 aclcnt, &aclnode->z_size)) != 0) { in zfs_vsec_2_aclp() 1895 vsecp->vsa_aclentp, aclnode->z_acldata, aclcnt, in zfs_vsec_2_aclp() 1903 aclnode->z_ace_count = aclcnt; in zfs_vsec_2_aclp() [all …]
|
/titanic_50/usr/src/head/rpcsvc/ |
H A D | nfs_acl.x | 76 int aclcnt; member
|
/titanic_50/usr/src/uts/common/fs/nfs/ |
H A D | nfs_srv.c | 2888 int aclcnt; in acl_perm() local 2901 aclcnt = vsa.vsa_aclcnt; in acl_perm() 2902 if (aclcnt > MIN_ACL_ENTRIES) { in acl_perm() 2909 for (; aclcnt > 0; aclcnt--, aclentp++) { in acl_perm() 2943 for (; aclcnt > 0; aclcnt--, aclentp++) { in acl_perm()
|
H A D | nfs4_acl.c | 1257 ace4_list_to_aent(ace4_list_t *list, aclent_t **aclentp, int *aclcnt, in ace4_list_to_aent() argument 1361 *aclcnt = resultcount; in ace4_list_to_aent() 1379 aclent_t **aclentp, int *aclcnt, in ln_ace4_to_aent() argument 1391 *aclcnt = 0; in ln_ace4_to_aent() 1561 error = ace4_list_to_aent(normacl, aclentp, aclcnt, in ln_ace4_to_aent()
|
/titanic_50/usr/src/uts/common/nfs/ |
H A D | nfs_acl.h | 62 int aclcnt; member
|
/titanic_50/usr/src/cmd/ls/ |
H A D | ls.c | 1770 int aclcnt; in gstat() local 2053 aclcnt = acl_cnt(rep->aclp); in gstat() 2056 aclcnt--; tp++) { in gstat()
|
/titanic_50/usr/src/cmd/cpio/ |
H A D | cpio.c | 4473 int aclcnt; in gethdr() local 4916 (ulong_t *)&aclcnt); in gethdr() 4934 if (aclcnt != acl_cnt(aclp)) { in gethdr()
|