Print this page
12288 getfacl and setfacl could stand improvement


   3 
   4 
   5 NAME
   6        acltotext, aclfromtext - convert internal representation to or from
   7        external representation
   8 
   9 SYNOPSIS
  10        cc [ flag... ] file... -lsec [ library... ]
  11        #include <sys/acl.h>
  12 
  13        char *acltotext(aclent_t *aclbufp, int aclcnt);
  14 
  15 
  16        aclent_t *aclfromtext(char *acltextp, int *aclcnt);
  17 
  18 
  19 DESCRIPTION
  20        The acltotext() function converts an internal ACL representation
  21        pointed to by aclbufp into an external ACL representation. The space
  22        for the external text string is obtained using malloc(3C). The caller
  23        is responsible for freeing the space upon completion..
  24 
  25 
  26        The aclfromtext() function converts an external ACL representation
  27        pointed to by acltextp into an internal ACL representation.  The space
  28        for the list of ACL entries is obtained using malloc(3C). The caller is
  29        responsible for freeing the space upon completion. The aclcnt argument
  30        indicates the number of ACL entries found.
  31 
  32 
  33        An external ACL representation is defined as follows:
  34 
  35 
  36        <acl_entry>[,<acl_entry>]...
  37 
  38 
  39        Each <acl_entry>   contains one ACL entry. The external representation of
  40        an ACL entry contains two or three colon-separated fields. The first
  41        field contains the ACL entry tag type. The entry type keywords are
  42        defined as:
  43 




   3 
   4 
   5 NAME
   6        acltotext, aclfromtext - convert internal representation to or from
   7        external representation
   8 
   9 SYNOPSIS
  10        cc [ flag... ] file... -lsec [ library... ]
  11        #include <sys/acl.h>
  12 
  13        char *acltotext(aclent_t *aclbufp, int aclcnt);
  14 
  15 
  16        aclent_t *aclfromtext(char *acltextp, int *aclcnt);
  17 
  18 
  19 DESCRIPTION
  20        The acltotext() function converts an internal ACL representation
  21        pointed to by aclbufp into an external ACL representation. The space
  22        for the external text string is obtained using malloc(3C). The caller
  23        is responsible for freeing the space upon completion.
  24 
  25 
  26        The aclfromtext() function converts an external ACL representation
  27        pointed to by acltextp into an internal ACL representation.  The space
  28        for the list of ACL entries is obtained using malloc(3C). The caller is
  29        responsible for freeing the space upon completion. The aclcnt argument
  30        indicates the number of ACL entries found.
  31 
  32 
  33        An external ACL representation is defined as follows:
  34 
  35 
  36        <acl_entry>[,<acl_entry>]...
  37 
  38 
  39        Each <acl_entry>   contains one ACL entry. The external representation of
  40        an ACL entry contains two or three colon-separated fields. The first
  41        field contains the ACL entry tag type. The entry type keywords are
  42        defined as:
  43