2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: log.h /main/5 1996/10/03 10:26:46 drk $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company
26 * (c) Copyright 1993, 1994 International Business Machines Corp.
27 * (c) Copyright 1993, 1994 Novell, Inc.
28 * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
38 #define _DtCMS_VERSION1 1
39 #define _DtCMS_VERSION4 4
40 #define _DtCMS_DEFAULT_LOG "callog"
41 #define _DtCMS_DEFAULT_BAK ".calbak"
42 #define _DtCMS_DEFAULT_TMP ".caltmp"
43 #define _DtCMS_DEFAULT_DEL ".caldel"
44 #if defined(CSRG_BASED)
45 #define _DtCMS_DEFAULT_DIR "/var/spool/calendar"
47 #define _DtCMS_DEFAULT_DIR "/usr/spool/calendar"
49 #define _DtCMS_DEFAULT_MODE (S_IRUSR|S_IRGRP|S_IWGRP)
52 _DtCmsLogAdd, _DtCmsLogRemove
55 extern CSA_return_code _DtCmsAppendAppt4ByFN P((char*, Appt_4*, _DtCmsLogOps));
56 extern CSA_return_code _DtCmsAppendAppt4ByFD P((int, Appt_4*, _DtCmsLogOps));
58 extern CSA_return_code _DtCmsAppendCalAttrsByFN P((char *file,
60 cms_attribute * attrs));
61 extern CSA_return_code _DtCmsAppendCalAttrsByFD P((int f,
63 cms_attribute * attrs));
65 extern CSA_return_code _DtCmsAppendEntryByFN P((char *,
68 extern CSA_return_code _DtCmsAppendEntryByFD P((int,
72 extern CSA_return_code _DtCmsAppendHTableByFN P((char *file,
77 extern CSA_return_code _DtCmsAppendHTableByFD P((int fd,
82 extern CSA_return_code _DtCmsAppendAccessByFN P((char*,
85 extern CSA_return_code _DtCmsAppendAccessByFD P((int, int, Access_Entry_4 *));
87 extern CSA_return_code _DtCmsCreateLogV1 P((char*, char *));
89 extern CSA_return_code _DtCmsCreateLogV2 P((char *owner, char *file));
91 extern CSA_return_code _DtCmsWriteVersionString P((char *file, int version));
93 extern int _DtCmsSetFileMode P((char *file,
100 extern CSA_return_code _DtCmsRemoveLog P((char *calendar, char *user));
102 extern char *_DtCmsGetBakFN P((char*));
103 extern char *_DtCmsGetLogFN P((char*));
104 extern char *_DtCmsGetTmpFN P((char*));
105 extern char *_DtCmsGetDelFN P((char*));
107 extern boolean_t _DtCmsPrintAppt4 P((caddr_t data));
108 extern void _DtCmsPrintExceptions P((int len, int *exceptions));
110 extern CSA_return_code _DtCmsGetFileSize P((char *calendar, int *size));
112 extern void _DtCmsTruncateFile P((char *calendar, int size));