Changeset View
Changeset View
Standalone View
Standalone View
bin/setfacl/setfacl.h
Show All 24 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _SETFACL_H | #ifndef _SETFACL_H | ||||
#define _SETFACL_H | #define _SETFACL_H | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <fts.h> | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/acl.h> | #include <sys/acl.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) | |||||
trasz: This is usually spelled nitems(), see sys/sys/param.h.
| |||||
/* files.c */ | /* files.c */ | ||||
acl_t get_acl_from_file(const char *filename); | acl_t get_acl_from_file(const char *filename); | ||||
/* merge.c */ | /* merge.c */ | ||||
int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename); | int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename); | ||||
int add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, | int add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, | ||||
const char *filename); | const char *filename); | ||||
/* remove.c */ | /* remove.c */ | ||||
int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename); | int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename); | ||||
int remove_by_number(uint entry_number, acl_t *prev_acl, | int remove_by_number(uint entry_number, acl_t *prev_acl, | ||||
const char *filename); | const char *filename); | ||||
int remove_default(acl_t *prev_acl, const char *filename); | int remove_default(acl_t *prev_acl, const char *filename); | ||||
void remove_ext(acl_t *prev_acl, const char *filename); | void remove_ext(acl_t *prev_acl, const char *filename); | ||||
/* mask.c */ | /* mask.c */ | ||||
int set_acl_mask(acl_t *prev_acl, const char *filename); | int set_acl_mask(acl_t *prev_acl, const char *filename); | ||||
/* util.c */ | /* util.c */ | ||||
void *zmalloc(size_t size); | void *zmalloc(size_t size); | ||||
void *zrealloc(void *ptr, size_t size); | void *zrealloc(void *ptr, size_t size); | ||||
const char *brand_name(int brand); | const char *brand_name(int brand); | ||||
int branding_mismatch(int brand1, int brand2); | int branding_mismatch(int brand1, int brand2); | ||||
/* auto_inherit.c */ | |||||
bool auto_inherit_check(char **files_list); | |||||
int set_aclflag(acl_t acl, acl_aclflag_t new_flag); | |||||
int auto_inherit_propagate(acl_t *old_acl, FTSENT *file); | |||||
extern bool have_mask; | extern bool have_mask; | ||||
extern bool have_stdin; | extern bool have_stdin; | ||||
extern bool n_flag; | extern bool n_flag; | ||||
extern bool f_flag; | |||||
#endif /* _SETFACL_H */ | #endif /* _SETFACL_H */ |
This is usually spelled nitems(), see sys/sys/param.h.