#ifndef FNM_PATHNAME
#define FNM_PATHNAME    0x01    /* Slash must be matched by slash. */
#endif
#ifndef FNM_NOESCAPE
#define FNM_NOESCAPE    0x02    /* Disable backslash escaping. */
#endif
#ifndef FNM_PERIOD
#define FNM_PERIOD      0x04    /* Period must be matched by period. */
#endif

#define LOG_IN  0
#define C_WD    1
#define BANNER  2

#ifndef ALIGN
#define ALIGN(x)        ((x) + (sizeof(long) - (x) % sizeof(long)))
#endif

#define O_COMPRESS              (1 << 0)    /* file was compressed */
#define O_UNCOMPRESS            (1 << 1)    /* file was uncompressed */
#define O_TAR                   (1 << 2)    /* file was tar'ed */

#define MAXARGS         50
#define MAXKWLEN        20

struct aclmember {
    struct aclmember *next;
    char keyword[MAXKWLEN];
    char *arg[MAXARGS];
};

#define MAXUSERS        1024

#define ARG0    entry->arg[0]
#define ARG1    entry->arg[1]
#define ARG2    entry->arg[2]
#define ARG3    entry->arg[3]
#define ARG4    entry->arg[4]
#define ARG5    entry->arg[5]
#define ARG6    entry->arg[6]
#define ARG7    entry->arg[7]
#define ARG8    entry->arg[8]
#define ARG9    entry->arg[9]
#define ARG     entry->arg

#ifdef QUOTA
#include <sys/time.h>

#ifdef IRIX
#define QUOTA_BLOCKS
#define QUOTA_DEVICE
#include <mntent.h>
#include <sys/quota.h>
#endif

#ifdef SUNOS
#define QUOTA_BLOCKS
#define QUOTA_DEVICE
#include <mntent.h>
#include <ufs/quota.h>
#endif

#ifdef AIX
#include <jfs/quota.h>
#endif

#ifdef DIGITIAL
#include <ufs/quota.h>
#endif

#ifdef BSDI
#include <ufs/ufs/quota.h>
#endif

#ifdef LINUX
#define QUOTA_DEVICE
#include <mntent.h>
#include <linux/quota.h>
#endif

#endif /* QUOTA */
