Blame include/libacl.h

rpm-build 0a0c83
/*
rpm-build 0a0c83
  File: libacl.h
rpm-build 0a0c83
rpm-build 0a0c83
  (C) 1999, 2000 Andreas Gruenbacher, <a.gruenbacher@computer.org>
rpm-build 0a0c83
rpm-build 0a0c83
  This program is free software: you can redistribute it and/or modify it
rpm-build 0a0c83
  under the terms of the GNU Lesser General Public License as published by
rpm-build 0a0c83
  the Free Software Foundation, either version 2.1 of the License, or
rpm-build 0a0c83
  (at your option) any later version.
rpm-build 0a0c83
rpm-build 0a0c83
  This program is distributed in the hope that it will be useful,
rpm-build 0a0c83
  but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 0a0c83
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rpm-build 0a0c83
  GNU General Public License for more details.
rpm-build 0a0c83
rpm-build 0a0c83
  You should have received a copy of the GNU General Public License
rpm-build 0a0c83
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
rpm-build 0a0c83
*/
rpm-build 0a0c83
rpm-build 0a0c83
#ifndef __ACL_LIBACL_H
rpm-build 0a0c83
#define __ACL_LIBACL_H
rpm-build 0a0c83
rpm-build 0a0c83
#include <sys/acl.h>
rpm-build 0a0c83
rpm-build 0a0c83
#ifdef __cplusplus
rpm-build 0a0c83
extern "C" {
rpm-build 0a0c83
#endif
rpm-build 0a0c83
rpm-build 0a0c83
/* Flags for acl_to_any_text() */
rpm-build 0a0c83
rpm-build 0a0c83
/* Print NO, SOME or ALL effective permissions comments. SOME prints
rpm-build 0a0c83
   effective rights comments for entries which have different permissions
rpm-build 0a0c83
   than effective permissions.  */
rpm-build 0a0c83
#define TEXT_SOME_EFFECTIVE		0x01
rpm-build 0a0c83
#define TEXT_ALL_EFFECTIVE		0x02
rpm-build 0a0c83
rpm-build 0a0c83
/* Align effective permission comments to column 32 using tabs or
rpm-build 0a0c83
   use a single tab. */
rpm-build 0a0c83
#define TEXT_SMART_INDENT		0x04
rpm-build 0a0c83
rpm-build 0a0c83
/* User and group IDs instead of names. */
rpm-build 0a0c83
#define TEXT_NUMERIC_IDS		0x08
rpm-build 0a0c83
rpm-build 0a0c83
/* Only output the first letter of entry types
rpm-build 0a0c83
   ("u::rwx" instead of "user::rwx"). */
rpm-build 0a0c83
#define TEXT_ABBREVIATE			0x10
rpm-build 0a0c83
rpm-build 0a0c83
/* acl_check error codes */
rpm-build 0a0c83
rpm-build 0a0c83
#define ACL_MULTI_ERROR		(0x1000)     /* multiple unique objects */
rpm-build 0a0c83
#define ACL_DUPLICATE_ERROR	(0x2000)     /* duplicate Id's in entries */
rpm-build 0a0c83
#define ACL_MISS_ERROR		(0x3000)     /* missing required entry */
rpm-build 0a0c83
#define ACL_ENTRY_ERROR		(0x4000)     /* wrong entry type */
rpm-build 0a0c83
rpm-build 0a0c83
EXPORT char *acl_to_any_text(acl_t acl, const char *prefix,
rpm-build 0a0c83
			     char separator, int options);
rpm-build 0a0c83
EXPORT int acl_cmp(acl_t acl1, acl_t acl2);
rpm-build 0a0c83
EXPORT int acl_check(acl_t acl, int *last);
rpm-build 0a0c83
EXPORT acl_t acl_from_mode(mode_t mode);
rpm-build 0a0c83
EXPORT int acl_equiv_mode(acl_t acl, mode_t *mode_p);
rpm-build 0a0c83
EXPORT int acl_extended_file(const char *path_p);
rpm-build 0a0c83
EXPORT int acl_extended_file_nofollow(const char *path_p);
rpm-build 0a0c83
EXPORT int acl_extended_fd(int fd);
rpm-build 0a0c83
EXPORT int acl_entries(acl_t acl);
rpm-build 0a0c83
EXPORT const char *acl_error(int code);
rpm-build 0a0c83
EXPORT int acl_get_perm(acl_permset_t permset_d, acl_perm_t perm);
rpm-build 0a0c83
rpm-build 0a0c83
/* Copying permissions between files */
rpm-build 0a0c83
struct error_context;
rpm-build 0a0c83
EXPORT int perm_copy_file (const char *, const char *,
rpm-build 0a0c83
			    struct error_context *);
rpm-build 0a0c83
EXPORT int perm_copy_fd (const char *, int, const char *, int,
rpm-build 0a0c83
			  struct error_context *);
rpm-build 0a0c83
rpm-build 0a0c83
#ifdef __cplusplus
rpm-build 0a0c83
}
rpm-build 0a0c83
#endif
rpm-build 0a0c83
rpm-build 0a0c83
#endif  /* __ACL_LIBACL_H */
rpm-build 0a0c83