Annotation of src/usr.bin/rdist/types.h, Revision 1.8
1.8 ! guenther 1: /* $OpenBSD: types.h,v 1.7 2015/01/20 06:08:08 guenther Exp $ */
1.4 millert 2:
1.1 dm 3: #ifndef __myTYPES_H__
4: #define __myTYPES_H__
5:
6: /*
1.5 millert 7: * $From: types.h,v 1.5 1999/08/04 15:57:31 christos Exp $
1.1 dm 8: */
9:
10: /*
11: * Dist Options.
12: *
13: * WARNING: This values are used by the server (rdistd)
14: */
1.5 millert 15: #define DO_VERIFY 0x0000001
16: #define DO_WHOLE 0x0000002
17: #define DO_YOUNGER 0x0000004
18: #define DO_COMPARE 0x0000008
19: #define DO_REMOVE 0x0000010
20: #define DO_FOLLOW 0x0000020
21: #define DO_IGNLNKS 0x0000040
22: #define DO_QUIET 0x0000100
23: #define DO_CHKNFS 0x0000200
24: #define DO_CHKREADONLY 0x0000400
25: #define DO_NOEXEC 0x0000800
26: #define DO_SAVETARGETS 0x0001000
27: #define DO_NODESCEND 0x0002000
28: #define DO_NOCHKOWNER 0x0004000
29: #define DO_NOCHKMODE 0x0008000
30: #define DO_NOCHKGROUP 0x0010000
31: #define DO_CHKSYM 0x0020000
32: #define DO_NUMCHKGROUP 0x0040000
33: #define DO_NUMCHKOWNER 0x0080000
34: #define DO_HISTORY 0x0100000
35: #define DO_UPDATEPERM 0x0200000
36: #define DO_DEFGROUP 0x0400000
37: #define DO_DEFOWNER 0x0800000
38: #define DO_SPARSE 0x1000000 /* XXX not implemented */
1.1 dm 39:
1.8 ! guenther 40: typedef int opt_t;
1.1 dm 41:
42: /* Debug Message types */
43: #define DM_CALL 0x01
44: #define DM_PROTO 0x02
45: #define DM_CHILD 0x04
46: #define DM_MISC 0x10
47: #define DM_ALL 0x17
48:
49: /*
50: * Message Type definitions
51: */
52: #define MT_DEBUG 0x0001 /* Debugging messages */
53: #define MT_NERROR 0x0002 /* Normal errors */
54: #define MT_FERROR 0x0004 /* Fatal errors */
55: #define MT_WARNING 0x0010 /* Warning messages */
56: #define MT_CHANGE 0x0020 /* Something changed */
57: #define MT_INFO 0x0040 /* General information */
58: #define MT_NOTICE 0x0100 /* Notice's */
59: #define MT_SYSLOG 0x0200 /* System log, but not user */
60: #define MT_REMOTE 0x0400 /* Ensure msg to remote */
61: #define MT_NOREMOTE 0x1000 /* Don't log to remote host */
62: #define MT_VERBOSE 0x2000 /* Verbose messages */
63: #define MT_ALL (MT_NERROR|MT_FERROR|\
64: MT_WARNING|MT_CHANGE|\
65: MT_INFO|MT_NOTICE|\
66: MT_SYSLOG|MT_VERBOSE)
67:
68: #endif /* __myTYPES_H__ */