summaryrefslogtreecommitdiff
path: root/lib/acl-internal.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-07-14 22:29:16 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-07-14 22:30:01 -0700
commitc40ea1328bb33abaec14f1fc92ac2349b5ee2715 (patch)
tree8686d9899315dd1bea97c92078d20a42eb07b0aa /lib/acl-internal.h
parentff0e184ef3af49b19cdfb5ee5bb24212676c800b (diff)
downloademacs-c40ea1328bb33abaec14f1fc92ac2349b5ee2715.tar.gz
Merge from gnulib
This incorporates: 2015-07-05 acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls 2015-07-05 acl-permissions: Fix on FreeBSD 2015-07-05 file-has-acl, acl-permissions: fix some more HP-UX typos * lib/acl-internal.c, lib/acl-internal.h, lib/get-permissions.c: * lib/set-permissions.c: Copy from gnulib.
Diffstat (limited to 'lib/acl-internal.h')
-rw-r--r--lib/acl-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/acl-internal.h b/lib/acl-internal.h
index 4f042adc96b..38a4ab2eb3a 100644
--- a/lib/acl-internal.h
+++ b/lib/acl-internal.h
@@ -155,6 +155,12 @@ extern int acl_extended_nontrivial (acl_t);
Return 0 if it is trivial, i.e. equivalent to a simple stat() mode.
Return -1 and set errno upon failure to determine it. */
extern int acl_access_nontrivial (acl_t);
+
+/* ACL is an ACL, from a file, stored as type ACL_TYPE_DEFAULT.
+ Return 1 if the given ACL is non-trivial.
+ Return 0 if it is trivial, i.e. equivalent to a simple stat() mode.
+ Return -1 and set errno upon failure to determine it. */
+extern int acl_default_nontrivial (acl_t);
# endif
# elif HAVE_FACL && defined GETACL /* Solaris, Cygwin, not HP-UX */