diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2016-02-11 17:26:25 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2016-03-02 12:41:28 +0100 |
commit | 6154283874a29bc7bcd4b089f12a038f41625dbc (patch) | |
tree | dee3c86fdda090a9edb91c9534aad4e957060fe9 /include/libacl.h | |
parent | d58d3b78633a5bbdac781f5421e89a641c599818 (diff) | |
download | acl-6154283874a29bc7bcd4b089f12a038f41625dbc.tar.gz |
Cleanup visibility of API functions
Add visibility attribute to public headers and -fvisibility=hidden
compiler option when visibility is supported by compiler.
Diffstat (limited to 'include/libacl.h')
-rw-r--r-- | include/libacl.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/libacl.h b/include/libacl.h index d6a6650..63ddcf6 100644 --- a/include/libacl.h +++ b/include/libacl.h @@ -52,24 +52,24 @@ extern "C" { #define ACL_MISS_ERROR (0x3000) /* missing required entry */ #define ACL_ENTRY_ERROR (0x4000) /* wrong entry type */ -extern char *acl_to_any_text(acl_t acl, const char *prefix, +EXPORT char *acl_to_any_text(acl_t acl, const char *prefix, char separator, int options); -extern int acl_cmp(acl_t acl1, acl_t acl2); -extern int acl_check(acl_t acl, int *last); -extern acl_t acl_from_mode(mode_t mode); -extern int acl_equiv_mode(acl_t acl, mode_t *mode_p); -int acl_extended_file(const char *path_p); -int acl_extended_file_nofollow(const char *path_p); -int acl_extended_fd(int fd); -extern int acl_entries(acl_t acl); -extern const char *acl_error(int code); -extern int acl_get_perm(acl_permset_t permset_d, acl_perm_t perm); +EXPORT int acl_cmp(acl_t acl1, acl_t acl2); +EXPORT int acl_check(acl_t acl, int *last); +EXPORT acl_t acl_from_mode(mode_t mode); +EXPORT int acl_equiv_mode(acl_t acl, mode_t *mode_p); +EXPORT int acl_extended_file(const char *path_p); +EXPORT int acl_extended_file_nofollow(const char *path_p); +EXPORT int acl_extended_fd(int fd); +EXPORT int acl_entries(acl_t acl); +EXPORT const char *acl_error(int code); +EXPORT int acl_get_perm(acl_permset_t permset_d, acl_perm_t perm); /* Copying permissions between files */ struct error_context; -extern int perm_copy_file (const char *, const char *, +EXPORT int perm_copy_file (const char *, const char *, struct error_context *); -extern int perm_copy_fd (const char *, int, const char *, int, +EXPORT int perm_copy_fd (const char *, int, const char *, int, struct error_context *); #ifdef __cplusplus |