/usr/include/atheme/flags.h is in atheme-services 7.2.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /*
* Copyright (C) 2005-2010 William Pitcock, et al.
* Rights to this code are as documented in doc/LICENSE.
*
* Data structures for flags to bitmask processing routines.
*/
#ifndef FLAGS_H
#define FLAGS_H
/* flags stuff */
struct flags_table
{
unsigned int value;
unsigned int restrictflags;
bool def;
const char *name;
};
E unsigned int ca_all;
E struct flags_table chanacs_flags[256];
E unsigned int flags_associate(unsigned char flag, unsigned int restrictflags, bool def, const char *name);
E void flags_clear(unsigned char flag);
E unsigned int flags_find_slot(void);
E void flags_make_bitmasks(const char *string, unsigned int *addflags, unsigned int *removeflags);
E unsigned int flags_to_bitmask(const char *, unsigned int flags);
E char *bitmask_to_flags(unsigned int);
E char *bitmask_to_flags2(unsigned int, unsigned int);
E unsigned int allow_flags(mychan_t *mc, unsigned int flags);
E void update_chanacs_flags(void);
typedef struct gflags {
char ch;
unsigned int value;
} gflags_t;
E gflags_t mu_flags[];
E gflags_t mc_flags[];
E gflags_t soper_flags[];
E char *gflags_tostr(gflags_t *gflags, unsigned int flags);
E bool gflags_fromstr(gflags_t *gflags, const char *f, unsigned int *res);
E unsigned int xflag_lookup(const char *name);
E unsigned int xflag_apply(unsigned int in, const char *name);
E const char *xflag_tostr(unsigned int flags);
#endif
/* vim:cinoptions=>s,e0,n0,f0,{0,}0,^0,=s,ps,t0,c3,+s,(2s,us,)20,*30,gs,hs
* vim:ts=8
* vim:sw=8
* vim:noexpandtab
*/
|