Searched defs:aclcnt (Results 1 - 14 of 14) sorted by relevance

/illumos-gate/usr/src/cmd/getfacl/
H A Dgetfacl.c75 int aclcnt; local
113 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) {
125 if (aclcnt < MIN_ACL_ENTRIES) {
128 aclcnt, filep);
132 if ((aclp = (aclent_t *)malloc(sizeof (aclent_t) * aclcnt))
140 if (acl(filep, GETACL, aclcnt, aclp) < 0) {
147 savecnt = aclcnt;
148 for (tp = aclp; aclcnt--; tp++) {
158 aclcnt = savecnt;
159 for (tp = aclp; aclcnt
[all...]
/illumos-gate/usr/src/cmd/setfacl/
H A Dsetfacl.c71 int aclcnt; /* used by -m -d */ local
161 aclcnt = get_acl_info(filep, &aclp);
162 if (aclcnt == -1)
164 if (mod_entries(aclp, aclcnt, work_mp,
194 int aclcnt; local
196 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) {
210 if (aclcnt < MIN_ACL_ENTRIES) {
213 aclcnt, filep);
217 if ((*aclpp = (aclent_t *)malloc(sizeof (aclent_t) * aclcnt)) == NULL) {
221 if (acl(filep, GETACL, aclcnt, *aclp
277 int aclcnt = 0; local
347 int aclcnt = 0; local
[all...]
/illumos-gate/usr/src/lib/libsec/common/
H A Daclutils.c64 int aclcnt; local
76 aclcnt = acl(filename, cntcmd, 0, NULL);
77 if (aclcnt > 0) {
79 acep = malloc(sizeof (ace_t) * aclcnt);
83 aclcnt, acep) < 0) {
88 val = ace_trivial(acep, aclcnt);
91 } else if (aclcnt > MIN_ACL_ENTRIES)
396 int aclcnt; local
426 aclcnt = 4;
427 error = acl(file, SETACL, aclcnt, min_ac
[all...]
H A Dacltext.c179 int aclcnt; local
187 aclcnt = aclp->acl_cnt;
188 for (tp = aclp->acl_aclp; tp && aclcnt--; tp++) {
192 aclcnt = aclp->acl_cnt;
193 for (tp = aclp->acl_aclp; aclcnt--; tp++) {
730 aclent_acltotext(aclent_t *aclp, int aclcnt, int flags) argument
741 dstr->d_bufsize = aclcnt * ACL_ENTRY_SIZE;
749 for (i = 0; i < aclcnt; i++, aclp++) {
767 if (i < aclcnt - 1)
782 acltotext(aclent_t *aclp, int aclcnt) argument
789 aclfromtext(char *aclstr, int *aclcnt) argument
883 int aclcnt = aceaclp->acl_cnt; local
[all...]
/illumos-gate/usr/src/uts/common/nfs/
H A Dnfs_acl.h62 int aclcnt; member in struct:secattr
/illumos-gate/usr/src/cmd/chmod/
H A Dchmod.c674 int aclcnt, n; local
684 if ((aclcnt = acl(name, GETACLCNT, 0, NULL)) <= MIN_ACL_ENTRIES)
686 if ((aclp = (aclent_t *)malloc((sizeof (aclent_t)) * aclcnt))
692 if (acl(name, GETACL, aclcnt, aclp) < 0) {
698 for (tp = aclp, n = aclcnt; n--; tp++) {
707 if (acl(name, SETACL, aclcnt, aclp)
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_srv.c2881 * If a file has minimal ACL, i.e. aclcnt == MIN_ACL_ENTRIES,
2888 int aclcnt; local
2901 aclcnt = vsa.vsa_aclcnt;
2902 if (aclcnt > MIN_ACL_ENTRIES) {
2909 for (; aclcnt > 0; aclcnt--, aclentp++) {
2943 for (; aclcnt > 0; aclcnt--, aclentp++) {
H A Dnfs4_acl.c1257 ace4_list_to_aent(ace4_list_t *list, aclent_t **aclentp, int *aclcnt, argument
1361 *aclcnt = resultcount;
1379 aclent_t **aclentp, int *aclcnt,
1391 *aclcnt = 0;
1561 error = ace4_list_to_aent(normacl, aclentp, aclcnt,
1377 ln_ace4_to_aent(nfsace4 *ace4, int n, uid_t owner, gid_t group, aclent_t **aclentp, int *aclcnt, aclent_t **dfaclentp, int *dfaclcnt, int isdir, int isserver) argument
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c324 int aclcnt; local
425 if ((aclcnt = acl(file, GETACLCNT, 0, NULL)) >
444 (sizeof (aclent_t)) * aclcnt)) == NULL) {
449 if (acl(file, GETACL, aclcnt, aclp) < 0) {
466 for (tp = aclp; aclcnt--; tp++) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c1865 int aclcnt; local
1887 aclcnt = MIN_ACL_ENTRIES;
1892 aclcnt = (aclp != NULL) ? acl_cnt(aclp) : 0;
1896 aclcnt = acl_cnt(aclp);
1900 aclcnt = MIN_ACL_ENTRIES;
1907 (void) snprintf(buf, sizeof (buf), "%c%d\n", acltype, aclcnt);
1994 int aclcnt; /* acl entry count */ local
2005 if (getaclinfo(&aclcnt, &acltype) != ACL_OK)
2014 if (aclcnt > min_entries) {
/illumos-gate/usr/src/common/acl/
H A Dacl_common.c673 convert_aent_to_ace(aclent_t *aclentp, int aclcnt, boolean_t isdir, argument
687 ksort((caddr_t)aclentp, aclcnt, sizeof (aclent_t), cmp2acls);
689 for (i = 0, aclp = aclentp; i < aclcnt; aclp++, i++) {
694 if (i < aclcnt) {
696 dfaclcnt = aclcnt - i;
1086 ace_list_to_aent(ace_list_t *list, aclent_t **aclentp, int *aclcnt, argument
1207 *aclcnt = resultcount;
1266 aclent_t **aclentp, int *aclcnt, aclent_t **dfaclentp, int *dfaclcnt,
1277 *aclcnt = 0;
1438 error = ace_list_to_aent(normacl, aclentp, aclcnt,
1265 ln_ace_to_aent(ace_t *ace, int n, uid_t owner, gid_t group, aclent_t **aclentp, int *aclcnt, aclent_t **dfaclentp, int *dfaclcnt, boolean_t isdir) argument
1467 int aclcnt, dfaclcnt; local
1507 int aclcnt; local
1690 ace_trivial_common(void *acep, int aclcnt, uint64_t (*walk)(void *, uint64_t, int aclcnt, uint16_t *, uint16_t *, uint32_t *)) argument
1752 ace_walk(void *datap, uint64_t cookie, int aclcnt, uint16_t *flags, uint16_t *type, uint32_t *mask) argument
1768 ace_trivial(ace_t *acep, int aclcnt) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_acl.c635 zfs_ace_walk(void *datap, uint64_t cookie, int aclcnt, argument
661 void *datap, zfs_ace_t *z_acl, uint64_t aclcnt, size_t *size,
671 for (i = 0; i != aclcnt; i++) {
780 zfs_oldace_t *z_acl, int aclcnt, size_t *size)
785 for (i = 0; i != aclcnt; i++, aceptr++) {
1868 int aclcnt = vsecp->vsa_aclcnt; local
1877 aclnode = zfs_acl_node_alloc(aclcnt * sizeof (zfs_object_ace_t));
1881 aclcnt, &aclnode->z_size)) != 0) {
1888 vsecp->vsa_aclentp, aclnode->z_acldata, aclcnt,
1896 aclnode->z_ace_count = aclcnt;
660 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, void *datap, zfs_ace_t *z_acl, uint64_t aclcnt, size_t *size, zfs_fuid_info_t **fuidp, cred_t *cr) argument
779 zfs_copy_ace_2_oldace(vtype_t obj_type, zfs_acl_t *aclp, ace_t *acep, zfs_oldace_t *z_acl, int aclcnt, size_t *size) argument
[all...]
/illumos-gate/usr/src/cmd/ls/
H A Dls.c1777 int aclcnt; local
2060 aclcnt = acl_cnt(rep->aclp);
2063 aclcnt--; tp++) {
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c4473 int aclcnt; local
4916 (ulong_t *)&aclcnt);
4934 if (aclcnt != acl_cnt(aclp)) {

Completed in 116 milliseconds