1 #ifndef __myTYPES_H__ 2 #define __myTYPES_H__ 3 4 /* 5 * $Id: types.h,v 1.2 1996/01/30 01:52:24 mcooper Exp $ 6 */ 7 8 /* 9 * Dist Options. 10 * 11 * WARNING: This values are used by the server (rdistd) 12 */ 13 #define DO_VERIFY 0x000001 14 #define DO_WHOLE 0x000002 15 #define DO_YOUNGER 0x000004 16 #define DO_COMPARE 0x000008 17 #define DO_REMOVE 0x000010 18 #define DO_FOLLOW 0x000020 19 #define DO_IGNLNKS 0x000040 20 #define DO_QUIET 0x000100 21 #define DO_CHKNFS 0x000200 22 #define DO_CHKREADONLY 0x000400 23 #define DO_NOEXEC 0x000800 24 #define DO_SAVETARGETS 0x001000 25 #define DO_NODESCEND 0x002000 26 #define DO_NOCHKOWNER 0x004000 27 #define DO_NOCHKMODE 0x008000 28 #define DO_NOCHKGROUP 0x010000 29 #define DO_CHKSYM 0x020000 30 #define DO_NUMCHKGROUP 0x040000 31 #define DO_NUMCHKOWNER 0x080000 32 #define DO_SPARSE 0x100000 33 34 /* 35 * Dist option information 36 */ 37 typedef long opt_t; 38 struct _distoptinfo { 39 opt_t do_value; 40 char *do_name; 41 }; 42 typedef struct _distoptinfo DISTOPTINFO; 43 44 /* Debug Message types */ 45 #define DM_CALL 0x01 46 #define DM_PROTO 0x02 47 #define DM_CHILD 0x04 48 #define DM_MISC 0x10 49 #define DM_ALL 0x17 50 51 /* 52 * Description of a message type 53 */ 54 struct _msgtype { 55 int mt_type; /* Type (bit) */ 56 char *mt_name; /* Name of message type */ 57 }; 58 typedef struct _msgtype MSGTYPE; 59 60 /* 61 * Message Type definitions 62 */ 63 #define MT_DEBUG 0x0001 /* Debugging messages */ 64 #define MT_NERROR 0x0002 /* Normal errors */ 65 #define MT_FERROR 0x0004 /* Fatal errors */ 66 #define MT_WARNING 0x0010 /* Warning messages */ 67 #define MT_CHANGE 0x0020 /* Something changed */ 68 #define MT_INFO 0x0040 /* General information */ 69 #define MT_NOTICE 0x0100 /* Notice's */ 70 #define MT_SYSLOG 0x0200 /* System log, but not user */ 71 #define MT_REMOTE 0x0400 /* Ensure msg to remote */ 72 #define MT_NOREMOTE 0x1000 /* Don't log to remote host */ 73 #define MT_VERBOSE 0x2000 /* Verbose messages */ 74 #define MT_ALL (MT_NERROR|MT_FERROR|\ 75 MT_WARNING|MT_CHANGE|\ 76 MT_INFO|MT_NOTICE|\ 77 MT_SYSLOG|MT_VERBOSE) 78 79 /* 80 * Description of message facilities 81 */ 82 struct _msgfacility { 83 /* compile time initialized data */ 84 int mf_msgfac; /* One of MF_* from below */ 85 char *mf_name; /* Name of this facility */ 86 void (*mf_sendfunc)(); /* Function to send msg */ 87 /* run time initialized data */ 88 int mf_msgtypes; /* Bitmask of MT_* from above*/ 89 char *mf_filename; /* Name of file */ 90 FILE *mf_fptr; /* File pointer to output to */ 91 }; 92 typedef struct _msgfacility MSGFACILITY; 93 94 /* 95 * Message Facilities 96 */ 97 #define MF_STDOUT 1 /* Standard Output */ 98 #define MF_NOTIFY 2 /* Notify mail service */ 99 #define MF_FILE 3 /* A normal file */ 100 #define MF_SYSLOG 4 /* syslog() */ 101 102 #endif /* __myTYPES_H__ */ 103