1 /* $XConsortium: log.h /main/5 1996/10/03 10:26:46 drk $ */
3 * (c) Copyright 1993, 1994 Hewlett-Packard Company
4 * (c) Copyright 1993, 1994 International Business Machines Corp.
5 * (c) Copyright 1993, 1994 Novell, Inc.
6 * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
16 #define _DtCMS_VERSION1 1
17 #define _DtCMS_VERSION4 4
18 #define _DtCMS_DEFAULT_LOG "callog"
19 #define _DtCMS_DEFAULT_BAK ".calbak"
20 #define _DtCMS_DEFAULT_TMP ".caltmp"
21 #define _DtCMS_DEFAULT_DEL ".caldel"
22 #define _DtCMS_DEFAULT_DIR "/usr/spool/calendar"
23 #define _DtCMS_DEFAULT_MODE (S_IRUSR|S_IRGRP|S_IWGRP)
26 _DtCmsLogAdd, _DtCmsLogRemove
29 extern CSA_return_code _DtCmsAppendAppt4ByFN P((char*, Appt_4*, _DtCmsLogOps));
30 extern CSA_return_code _DtCmsAppendAppt4ByFD P((int, Appt_4*, _DtCmsLogOps));
32 extern CSA_return_code _DtCmsAppendCalAttrsByFN P((char *file,
34 cms_attribute * attrs));
35 extern CSA_return_code _DtCmsAppendCalAttrsByFD P((int f,
37 cms_attribute * attrs));
39 extern CSA_return_code _DtCmsAppendEntryByFN P((char *,
42 extern CSA_return_code _DtCmsAppendEntryByFD P((int,
46 extern CSA_return_code _DtCmsAppendHTableByFN P((char *file,
51 extern CSA_return_code _DtCmsAppendHTableByFD P((int fd,
56 extern CSA_return_code _DtCmsAppendAccessByFN P((char*,
59 extern CSA_return_code _DtCmsAppendAccessByFD P((int, int, Access_Entry_4 *));
61 extern CSA_return_code _DtCmsCreateLogV1 P((char*, char *));
63 extern CSA_return_code _DtCmsCreateLogV2 P((char *owner, char *file));
65 extern CSA_return_code _DtCmsWriteVersionString P((char *file, int version));
67 extern int _DtCmsSetFileMode P((char *file,
74 extern CSA_return_code _DtCmsRemoveLog P((char *calendar, char *user));
76 extern char *_DtCmsGetBakFN P((char*));
77 extern char *_DtCmsGetLogFN P((char*));
78 extern char *_DtCmsGetTmpFN P((char*));
79 extern char *_DtCmsGetDelFN P((char*));
81 extern boolean_t _DtCmsPrintAppt4 P((caddr_t data));
82 extern void _DtCmsPrintExceptions P((int len, int *exceptions));
84 extern CSA_return_code _DtCmsGetFileSize P((char *calendar, int *size));
86 extern void _DtCmsTruncateFile P((char *calendar, int size));