/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _BART_H
#define _BART_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <strings.h>
#include <errno.h>
#include <fcntl.h>
#include <md5.h>
#include <ftw.h>
#include <libintl.h>
#include "msgs.h"
#define EXIT 0
#define NO_EXCLUDE 0
#define CHECK 0
#fname D size mode acl dirmtime uid gid\n\
#fname P size mode acl mtime uid gid\n\
#fname S size mode acl mtime uid gid\n\
#fname F size mode acl mtime uid gid contents\n\
#fname L size mode acl lnmtime uid gid dest\n\
#fname B size mode acl mtime uid gid devnode\n\
#fname C size mode acl mtime uid gid devnode\n"
/*
* size of buffer - used in several places
*/
/*
* size of ACL buffer - used in several places
*/
/*
* size of MISC buffer - used in several places
*/
/*
* size of TYPE buffer - used in several places
*/
struct tree_modifier {
char *mod_str;
boolean_t include;
};
struct attr_keyword {
char *ak_name;
int ak_flags;
};
struct rule {
};
struct dir_component {
};
struct attr_keyword *attr_keylookup(char *);
void usage(void);
int bart_create(int, char **);
int bart_compare(int, char **);
struct rule *check_rules(const char *, char);
int exclude_fname(const char *, char, struct rule *);
struct rule *get_first_subtree(void);
void process_glob_ignores(char *, uint_t *);
void *safe_calloc(size_t);
char *safe_strdup(char *);
#ifdef __cplusplus
}
#endif
#endif /* _BART_H */