]> arthur.barton.de Git - netatalk.git/blob - include/atalk/acl.h
Enhanced machine type
[netatalk.git] / include / atalk / acl.h
1 /*
2    $Id: acl.h,v 1.1 2009-10-14 15:04:01 franklahm Exp $
3    Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9  
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14 */
15
16 #ifndef ATALK_ACL_H
17 #define ATALK_ACL_H
18
19 #ifdef HAVE_CONFIG_H
20 #include "config.h"
21 #endif /* HAVE_CONFIG_H */
22
23 #ifdef HAVE_NFSv4_ACLS
24 #include <sys/acl.h>
25 #endif  /* HAVE_NFSv4_ACLS */
26
27 /* Solaris NFSv4 ACL stuff */
28 #ifdef HAVE_NFSv4_ACLS
29
30 #define chmod nfsv4_chmod
31
32 extern int get_nfsv4_acl(const char *name, ace_t **retAces);
33 extern int remove_acl(const char *name);
34 extern int strip_trivial_aces(ace_t **saces, int sacecount);
35 extern int strip_nontrivial_aces(ace_t **saces, int sacecount);
36 extern ace_t *concat_aces(ace_t *aces1, int ace1count, ace_t *aces2, int ace2count);
37 extern int nfsv4_chmod(char *name, mode_t mode);
38 #endif /* HAVE_NFSv4_ACLS */
39
40
41 #endif  /* ATALK_ACL_H */