comparison lib/acl-internal.h @ 10177:caed32fb1892

New function acl_extended_nontrivial (MacOS X only).
author Bruno Haible <bruno@clisp.org>
date Sun, 08 Jun 2008 13:58:26 +0200
parents 73042342e7f6
children 90f51b86b088
comparison
equal deleted inserted replaced
10176:43bafd6ea0d8 10177:caed32fb1892
143 # if !HAVE_ACL_ENTRIES 143 # if !HAVE_ACL_ENTRIES
144 # define acl_entries rpl_acl_entries 144 # define acl_entries rpl_acl_entries
145 extern int acl_entries (acl_t); 145 extern int acl_entries (acl_t);
146 # endif 146 # endif
147 147
148 # if HAVE_ACL_TYPE_EXTENDED /* MacOS X */
149 /* ACL is an ACL, from a file, stored as type ACL_TYPE_EXTENDED.
150 Return 1 if the given ACL is non-trivial.
151 Return 0 if it is trivial. */
152 extern int acl_extended_nontrivial (acl_t);
153 # else
148 /* ACL is an ACL, from a file, stored as type ACL_TYPE_ACCESS. 154 /* ACL is an ACL, from a file, stored as type ACL_TYPE_ACCESS.
149 Return 1 if the given ACL is non-trivial. 155 Return 1 if the given ACL is non-trivial.
150 Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. 156 Return 0 if it is trivial, i.e. equivalent to a simple stat() mode.
151 Return -1 and set errno upon failure to determine it. */ 157 Return -1 and set errno upon failure to determine it. */
152 extern int acl_access_nontrivial (acl_t); 158 extern int acl_access_nontrivial (acl_t);
159 # endif
153 160
154 # endif 161 # endif
155 162
156 #endif 163 #endif