Merge from emacs-24; up to 2013-01-03T02:37:57Z!rgm@gnu.org
[bpt/emacs.git] / nt / inc / sys / acl.h
CommitLineData
66447e07
EZ
1/* Emulation of Posix ACLs for Windows. */
2
3#ifndef ACL_H
4#define ACL_H
5
6#define NOMINMAX 1 /* don't define min and max */
7#include <windows.h>
8
9typedef PSECURITY_DESCRIPTOR acl_t;
10typedef unsigned acl_type_t;
11
12/* Values of acl_type_t */
13#define ACL_TYPE_ACCESS 0
14#define ACL_TYPE_DEFAULT 1
15
16typedef unsigned acl_perm_t;
17
18extern int acl_valid (acl_t);
19extern acl_t acl_get_file (const char *, acl_type_t);
20extern int acl_set_file (const char *, acl_type_t, acl_t);
21extern char * acl_to_text (acl_t, ssize_t *);
22extern acl_t acl_from_text (const char *);
23extern int acl_free (void *);
24
25#endif /* ACL_H */