Merge branch 'master' into autotools-conversion
Lost the ksh93 submodule so will re-add in a later commit.
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#ifndef _ACCESS_H
|
||||
#define _ACCESS_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "rtable4.h"
|
||||
#include "cmscalendar.h"
|
||||
@@ -70,46 +69,46 @@
|
||||
#define _DTCMS_HAS_V4_WRITE_ACCESS(a) \
|
||||
((a) & (access_write_4 | CSA_OWNER_RIGHTS))
|
||||
|
||||
extern CSA_return_code _DtCmsV4LoadAndCheckAccess P((
|
||||
extern CSA_return_code _DtCmsV4LoadAndCheckAccess(
|
||||
struct svc_req *svcrq,
|
||||
char *target,
|
||||
char **sender,
|
||||
uint *access,
|
||||
_DtCmsCalendar **cal));
|
||||
_DtCmsCalendar **cal);
|
||||
|
||||
extern CSA_return_code _DtCmsV5LoadAndCheckAccess P((
|
||||
extern CSA_return_code _DtCmsV5LoadAndCheckAccess(
|
||||
struct svc_req *svcrq,
|
||||
char *target,
|
||||
char **sender,
|
||||
uint *access,
|
||||
_DtCmsCalendar **cal));
|
||||
_DtCmsCalendar **cal);
|
||||
|
||||
extern CSA_return_code _DtCmsGetClientInfo P((
|
||||
extern CSA_return_code _DtCmsGetClientInfo(
|
||||
struct svc_req *svcrq,
|
||||
char **source));
|
||||
char **source);
|
||||
|
||||
extern boolean_t _DtCmsIsFileOwner P((char *owner, char *user, char *target));
|
||||
extern boolean_t _DtCmsIsFileOwner(char *owner, char *user, char *target);
|
||||
|
||||
extern void _DtCmsShowAccessList P((Access_Entry_4 *l));
|
||||
extern void _DtCmsShowAccessList(Access_Entry_4 *l);
|
||||
|
||||
extern Access_Entry_4 *_DtCmsCalendarAccessList P((_DtCmsCalendar *cal));
|
||||
extern Access_Entry_4 *_DtCmsCalendarAccessList(_DtCmsCalendar *cal);
|
||||
|
||||
extern Privacy_Level_4 _DtCmCheckPrivacyLevel P((char **p_src, Appt_4 *p_appt));
|
||||
extern Privacy_Level_4 _DtCmCheckPrivacyLevel(char **p_src, Appt_4 *p_appt);
|
||||
|
||||
extern CSA_return_code _DtCmsCheckViewAccess P((
|
||||
extern CSA_return_code _DtCmsCheckViewAccess(
|
||||
char *user,
|
||||
uint access,
|
||||
cms_entry *eptr));
|
||||
cms_entry *eptr);
|
||||
|
||||
extern CSA_return_code _DtCmsCheckChangeAccess P((
|
||||
extern CSA_return_code _DtCmsCheckChangeAccess(
|
||||
char *user,
|
||||
uint access,
|
||||
cms_entry *eptr));
|
||||
cms_entry *eptr);
|
||||
|
||||
extern uint _DtCmsClassToInsertAccess P((cms_entry *entry));
|
||||
extern uint _DtCmsClassToInsertAccess(cms_entry *entry);
|
||||
|
||||
extern uint _DtCmsClassToViewAccess P((cms_entry *entry));
|
||||
extern uint _DtCmsClassToViewAccess(cms_entry *entry);
|
||||
|
||||
extern uint _DtCmsClassToChangeAccess P((cms_entry *entry));
|
||||
extern uint _DtCmsClassToChangeAccess(cms_entry *entry);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _CALLBACK_H
|
||||
#define _CALLBACK_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "rtable4.h"
|
||||
|
||||
typedef struct __DtCmsRegistrationInfo {
|
||||
@@ -44,81 +43,81 @@ typedef struct __DtCmsRegistrationInfo {
|
||||
struct __DtCmsRegistrationInfo *next;
|
||||
} _DtCmsRegistrationInfo;
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsMakeRegistrationInfo P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsMakeRegistrationInfo(
|
||||
char *client,
|
||||
int types,
|
||||
u_long prognum,
|
||||
u_long versnum,
|
||||
u_long procnum,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern void _DtCmsFreeRegistrationInfo P((_DtCmsRegistrationInfo *w));
|
||||
extern void _DtCmsFreeRegistrationInfo(_DtCmsRegistrationInfo *w);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsGetRegistration P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsGetRegistration(
|
||||
_DtCmsRegistrationInfo **rlist,
|
||||
char *client,
|
||||
u_long prognum,
|
||||
u_long versnum,
|
||||
u_long procnum,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsRemoveRegistration P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsRemoveRegistration(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
_DtCmsRegistrationInfo *rinfo));
|
||||
_DtCmsRegistrationInfo *rinfo);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsCheckRegistrationList P((
|
||||
_DtCmsRegistrationInfo *rlist));
|
||||
extern _DtCmsRegistrationInfo *_DtCmsCheckRegistrationList(
|
||||
_DtCmsRegistrationInfo *rlist);
|
||||
|
||||
extern _DtCmsRegistrationInfo * _DtCmsDoV1CbForV4Data P((
|
||||
extern _DtCmsRegistrationInfo * _DtCmsDoV1CbForV4Data(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *source,
|
||||
int pid,
|
||||
cms_key *key1,
|
||||
cms_key *key2));
|
||||
cms_key *key2);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoV1Callback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoV1Callback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *source,
|
||||
int pid,
|
||||
Appt_4 *a));
|
||||
Appt_4 *a);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoOpenCalCallback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoOpenCalCallback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *cal,
|
||||
char *user,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoRemoveCalCallback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoRemoveCalCallback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *cal,
|
||||
char *user,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoUpdateCalAttrsCallback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoUpdateCalAttrsCallback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *cal,
|
||||
char *user,
|
||||
uint num_attrs,
|
||||
cms_attribute *attrs,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoInsertEntryCallback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoInsertEntryCallback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *cal,
|
||||
char *source,
|
||||
long id,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoDeleteEntryCallback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoDeleteEntryCallback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *cal,
|
||||
char *source,
|
||||
long id,
|
||||
int scope,
|
||||
time_t time,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoUpdateEntryCallback P((
|
||||
extern _DtCmsRegistrationInfo *_DtCmsDoUpdateEntryCallback(
|
||||
_DtCmsRegistrationInfo *rlist,
|
||||
char *cal,
|
||||
char *source,
|
||||
@@ -126,10 +125,10 @@ extern _DtCmsRegistrationInfo *_DtCmsDoUpdateEntryCallback P((
|
||||
long oldid,
|
||||
int scope,
|
||||
long time,
|
||||
int pid));
|
||||
int pid);
|
||||
|
||||
extern void _DtCmsListRegistration P((_DtCmsRegistrationInfo *rlist,
|
||||
char *cal));
|
||||
extern void _DtCmsListRegistration(_DtCmsRegistrationInfo *rlist,
|
||||
char *cal);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -44,36 +44,35 @@
|
||||
#ifndef _CMSATTR_H
|
||||
#define _CMSATTR_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "cmscalendar.h"
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateSint32AttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateSint32AttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateUint32AttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateUint32AttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateStringAttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateStringAttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateAccessListAttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateAccessListAttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateReminderAttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateReminderAttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateDateTimeListAttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateDateTimeListAttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateOpaqueDataAttrVal P((
|
||||
extern CSA_return_code _DtCmsUpdateOpaqueDataAttrVal(
|
||||
cms_attribute_value *newval,
|
||||
cms_attribute_value **attrval));
|
||||
cms_attribute_value **attrval);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _CMSCALENDAR_H
|
||||
#define _CMSCALENDAR_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "csa.h"
|
||||
#include "cm.h"
|
||||
#include "nametbl.h"
|
||||
@@ -89,84 +88,84 @@ typedef struct __DtCmsCalendar {
|
||||
} _DtCmsCalendar;
|
||||
|
||||
|
||||
extern _DtCmsCalendar * _DtCmsMakeCalendar P((
|
||||
extern _DtCmsCalendar * _DtCmsMakeCalendar(
|
||||
char *owner,
|
||||
char *name));
|
||||
char *name);
|
||||
|
||||
extern void _DtCmsPutInCalList P((_DtCmsCalendar *cal));
|
||||
extern void _DtCmsPutInCalList(_DtCmsCalendar *cal);
|
||||
|
||||
extern void _DtCmsFreeCalendar P((_DtCmsCalendar *cal));
|
||||
extern void _DtCmsFreeCalendar(_DtCmsCalendar *cal);
|
||||
|
||||
extern CSA_return_code _DtCmsSetFileVersion P((
|
||||
extern CSA_return_code _DtCmsSetFileVersion(
|
||||
_DtCmsCalendar *cal,
|
||||
int version));
|
||||
int version);
|
||||
|
||||
extern CSA_return_code _DtCmsLoadCalendar P((
|
||||
extern CSA_return_code _DtCmsLoadCalendar(
|
||||
char *target,
|
||||
_DtCmsCalendar **cal));
|
||||
_DtCmsCalendar **cal);
|
||||
|
||||
extern char * _DtCmsGetCalendarOwner P((char *target));
|
||||
extern char * _DtCmsGetCalendarOwner(char *target);
|
||||
|
||||
extern CSA_return_code _DtCmsGetCalendarByName P((
|
||||
extern CSA_return_code _DtCmsGetCalendarByName(
|
||||
char *target,
|
||||
boolean_t load,
|
||||
_DtCmsCalendar **cal));
|
||||
_DtCmsCalendar **cal);
|
||||
|
||||
extern CSA_return_code _DtCmsInsertEntry4Parser P((
|
||||
extern CSA_return_code _DtCmsInsertEntry4Parser(
|
||||
_DtCmsCalendar *cal,
|
||||
cms_entry *entry));
|
||||
cms_entry *entry);
|
||||
|
||||
extern void _DtCmsSetAccess4Parser P((
|
||||
extern void _DtCmsSetAccess4Parser(
|
||||
_DtCmsCalendar *cal,
|
||||
Access_Entry_4 *list,
|
||||
int type));
|
||||
int type);
|
||||
|
||||
extern void _DtCmsSetCalendarAttrs4Parser P((
|
||||
extern void _DtCmsSetCalendarAttrs4Parser(
|
||||
_DtCmsCalendar *cal,
|
||||
int len,
|
||||
cms_attribute *attrs));
|
||||
cms_attribute *attrs);
|
||||
|
||||
extern void _DtCmsGenerateKey P((_DtCmsCalendar *cal, long *key));
|
||||
extern void _DtCmsGenerateKey(_DtCmsCalendar *cal, long *key);
|
||||
|
||||
extern CSA_return_code _DtCmsEnumerateUp P((
|
||||
extern CSA_return_code _DtCmsEnumerateUp(
|
||||
_DtCmsCalendar *cal,
|
||||
_DtCmsEnumerateProc doit));
|
||||
_DtCmsEnumerateProc doit);
|
||||
|
||||
extern void _DtCmsEnumerateDown P((
|
||||
extern void _DtCmsEnumerateDown(
|
||||
_DtCmsCalendar *cal,
|
||||
_DtCmsEnumerateProc doit));
|
||||
_DtCmsEnumerateProc doit);
|
||||
|
||||
extern CSA_return_code _DtCmsRbToCsaStat P((Rb_Status rb_stat));
|
||||
extern CSA_return_code _DtCmsRbToCsaStat(Rb_Status rb_stat);
|
||||
|
||||
extern CSA_return_code _DtCmsGetCalAttrsByName P((
|
||||
extern CSA_return_code _DtCmsGetCalAttrsByName(
|
||||
_DtCmsCalendar *cal,
|
||||
uint num_names,
|
||||
cms_attr_name *names,
|
||||
uint *num_attrs_r,
|
||||
cms_attribute **attrs_r));
|
||||
cms_attribute **attrs_r);
|
||||
|
||||
extern CSA_return_code _DtCmsGetAllCalAttrs P((
|
||||
extern CSA_return_code _DtCmsGetAllCalAttrs(
|
||||
_DtCmsCalendar *cal,
|
||||
u_int *num_attrs_r,
|
||||
cms_attribute **attrs_r,
|
||||
boolean_t returnall));
|
||||
boolean_t returnall);
|
||||
|
||||
extern CSA_return_code _DtCmsGetCalAttrNames P((
|
||||
extern CSA_return_code _DtCmsGetCalAttrNames(
|
||||
_DtCmsCalendar *cal,
|
||||
uint *num_names_r,
|
||||
cms_attr_name **names_r));
|
||||
cms_attr_name **names_r);
|
||||
|
||||
extern void _DtCmsFreeCmsAttrNames P((uint num, cms_attr_name *names));
|
||||
extern void _DtCmsFreeCmsAttrNames(uint num, cms_attr_name *names);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateCalAttributesAndLog P((
|
||||
extern CSA_return_code _DtCmsUpdateCalAttributesAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
uint numsrc,
|
||||
cms_attribute *srcattrs,
|
||||
uint access));
|
||||
uint access);
|
||||
|
||||
extern CSA_return_code _DtCmsV5TransactLog P((
|
||||
extern CSA_return_code _DtCmsV5TransactLog(
|
||||
_DtCmsCalendar *cal,
|
||||
cms_entry *e,
|
||||
_DtCmsLogOps op));
|
||||
_DtCmsLogOps op);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,59 +32,58 @@
|
||||
#define _CMSCONVERT_H
|
||||
|
||||
#include <EUSCompat.h>
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "rtable4.h"
|
||||
#include "v4ops.h"
|
||||
|
||||
extern CSA_return_code _DtCmsCmsentriesToAppt4ForClient P((
|
||||
extern CSA_return_code _DtCmsCmsentriesToAppt4ForClient(
|
||||
cms_entry *entries,
|
||||
Appt_4 **appt));
|
||||
Appt_4 **appt);
|
||||
|
||||
extern CSA_return_code _DtCmsCmsentriesToAbbrAppt4ForClient P((
|
||||
extern CSA_return_code _DtCmsCmsentriesToAbbrAppt4ForClient(
|
||||
cms_entry *entries,
|
||||
Abb_Appt_4 **abbr));
|
||||
Abb_Appt_4 **abbr);
|
||||
|
||||
extern CSA_return_code _DtCmsCmsentryToAbbrAppt4 P((
|
||||
extern CSA_return_code _DtCmsCmsentryToAbbrAppt4(
|
||||
cms_entry *entry,
|
||||
Abb_Appt_4 **abbr));
|
||||
Abb_Appt_4 **abbr);
|
||||
|
||||
extern Access_Entry_4 *_DtCmsConvertV5AccessList P((
|
||||
extern Access_Entry_4 *_DtCmsConvertV5AccessList(
|
||||
cms_access_entry *cmslist,
|
||||
boolean_t strictmode));
|
||||
boolean_t strictmode);
|
||||
|
||||
extern cms_access_entry *_DtCmsConvertV4AccessList P((
|
||||
Access_Entry_4 *alist));
|
||||
extern cms_access_entry *_DtCmsConvertV4AccessList(
|
||||
Access_Entry_4 *alist);
|
||||
|
||||
extern CSA_return_code _DtCmsReminderRefToReminder P((
|
||||
extern CSA_return_code _DtCmsReminderRefToReminder(
|
||||
cms_reminder_ref *rems,
|
||||
Reminder_4 **r4));
|
||||
Reminder_4 **r4);
|
||||
|
||||
extern CSA_return_code _DtCmsV4ReminderToReminderRef P((
|
||||
extern CSA_return_code _DtCmsV4ReminderToReminderRef(
|
||||
char *calname,
|
||||
Reminder_4 *r4,
|
||||
_DtCmsEntryId *ids,
|
||||
cms_reminder_ref **rems));
|
||||
cms_reminder_ref **rems);
|
||||
|
||||
extern CSA_return_code _DtCmsCmsAccessToV4Access P((
|
||||
extern CSA_return_code _DtCmsCmsAccessToV4Access(
|
||||
cms_access_entry *alist,
|
||||
Access_Entry_4 **a4));
|
||||
Access_Entry_4 **a4);
|
||||
|
||||
extern CSA_return_code _DtCmsAppt4ToCmsentriesForClient P((
|
||||
extern CSA_return_code _DtCmsAppt4ToCmsentriesForClient(
|
||||
char *calname,
|
||||
Appt_4 *appt,
|
||||
cms_entry **e_r));
|
||||
cms_entry **e_r);
|
||||
|
||||
extern CSA_return_code _DtCmsAppt4ToCmsentry P((
|
||||
extern CSA_return_code _DtCmsAppt4ToCmsentry(
|
||||
char *calname,
|
||||
Appt_4 *a4,
|
||||
cms_entry **entry_r,
|
||||
boolean_t rerule));
|
||||
boolean_t rerule);
|
||||
|
||||
extern CSA_return_code _DtCmsAttrsToAppt4 P((
|
||||
extern CSA_return_code _DtCmsAttrsToAppt4(
|
||||
uint size,
|
||||
cms_attribute *attrs,
|
||||
Appt_4 *appt,
|
||||
boolean_t check));
|
||||
boolean_t check);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,23 +32,22 @@
|
||||
#define _CMSENTRY_H
|
||||
|
||||
#include <EUSCompat.h>
|
||||
#include "ansi_c.h"
|
||||
#include "nametbl.h"
|
||||
#include "cm.h"
|
||||
#include "csa.h"
|
||||
#include "cmscalendar.h"
|
||||
|
||||
extern CSA_return_code _DtCmsMakeHashedEntry P((
|
||||
extern CSA_return_code _DtCmsMakeHashedEntry(
|
||||
_DtCmsCalendar *cal,
|
||||
uint num,
|
||||
cms_attribute *attrs,
|
||||
cms_entry **entry));
|
||||
cms_entry **entry);
|
||||
|
||||
extern void _DtCmsFreeEntryAttrResItem P((cms_get_entry_attr_res_item *elist));
|
||||
extern void _DtCmsFreeEntryAttrResItem(cms_get_entry_attr_res_item *elist);
|
||||
|
||||
extern CSA_return_code _DtCmsGetCmsEntryForClient P((
|
||||
extern CSA_return_code _DtCmsGetCmsEntryForClient(
|
||||
cms_entry *e,
|
||||
cms_entry **e_r,
|
||||
boolean_t time_only));
|
||||
boolean_t time_only);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,14 +32,13 @@
|
||||
#define _CMSMATCH_H
|
||||
|
||||
#include <EUSCompat.h>
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "nametbl.h"
|
||||
|
||||
extern boolean_t _DtCmsMatchAttributes P((
|
||||
extern boolean_t _DtCmsMatchAttributes(
|
||||
cms_entry *entry,
|
||||
uint num_attrs,
|
||||
cms_attribute *attrs,
|
||||
CSA_enum *ops));
|
||||
CSA_enum *ops);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
* Common definition for internal data storage
|
||||
*/
|
||||
|
||||
#include "ansi_c.h"
|
||||
|
||||
typedef enum {
|
||||
rb_ok = 0,
|
||||
rb_duplicate = 1,
|
||||
|
||||
@@ -31,31 +31,30 @@
|
||||
#ifndef _DELETE_H
|
||||
#define _DELETE_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "cmscalendar.h"
|
||||
|
||||
extern CSA_return_code _DtCmsDeleteEntry P((
|
||||
extern CSA_return_code _DtCmsDeleteEntry(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
cms_key *key,
|
||||
cms_entry **entry_r));
|
||||
cms_entry **entry_r);
|
||||
|
||||
extern CSA_return_code _DtCmsDeleteEntryAndLog P((
|
||||
extern CSA_return_code _DtCmsDeleteEntryAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
cms_key *key,
|
||||
cms_entry **entry_r));
|
||||
cms_entry **entry_r);
|
||||
|
||||
extern CSA_return_code _DtCmsDeleteInstancesAndLog P((
|
||||
extern CSA_return_code _DtCmsDeleteInstancesAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
cms_key *key,
|
||||
int scope,
|
||||
cms_entry **newe,
|
||||
cms_entry **olde));
|
||||
cms_entry **olde);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,8 +31,6 @@
|
||||
#ifndef _GARBAGE_H
|
||||
#define _GARBAGE_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
|
||||
/*
|
||||
** Housekeeping mechanism to clean up the calendar log file. It copies the
|
||||
** log file to a backup file, dumps the red/black tree to a temp file, copies
|
||||
@@ -41,8 +39,8 @@
|
||||
** The garbage collector runs at midnight every.
|
||||
*/
|
||||
|
||||
extern void _DtCmsCollectOne P((_DtCmsCalendar *cal));
|
||||
extern CSA_return_code _DtCmsDumpDataV1 P((char *file, _DtCmsCalendar *cal));
|
||||
extern CSA_return_code _DtCmsDumpDataV2 P((char *file, _DtCmsCalendar *cal));
|
||||
extern void _DtCmsCollectOne(_DtCmsCalendar *cal);
|
||||
extern CSA_return_code _DtCmsDumpDataV1(char *file, _DtCmsCalendar *cal);
|
||||
extern CSA_return_code _DtCmsDumpDataV2(char *file, _DtCmsCalendar *cal);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,16 +31,15 @@
|
||||
#ifndef _INSERT_H
|
||||
#define _INSERT_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "cmscalendar.h"
|
||||
|
||||
extern CSA_return_code _DtCmsInsertEntry P((
|
||||
extern CSA_return_code _DtCmsInsertEntry(
|
||||
_DtCmsCalendar *cal,
|
||||
cms_entry *entry));
|
||||
cms_entry *entry);
|
||||
|
||||
extern CSA_return_code _DtCmsInsertEntryAndLog P((
|
||||
extern CSA_return_code _DtCmsInsertEntryAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
cms_entry *entry));
|
||||
cms_entry *entry);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _LEXER_H
|
||||
#define _LEXER_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "rtable4.h"
|
||||
|
||||
extern int yyylineno;
|
||||
@@ -42,7 +41,7 @@ extern Tag_4 externTag;
|
||||
extern Appt_Status_4 externApptStatus;
|
||||
extern Privacy_Level_4 externPrivacy;
|
||||
|
||||
extern void setinput P((FILE*));
|
||||
extern int yyylex P(());
|
||||
extern void setinput(FILE*);
|
||||
extern int yyylex(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
|
||||
#include "rtable4.h"
|
||||
#include "parser.h"
|
||||
#include "ansi_c.h"
|
||||
|
||||
extern char *pgname;
|
||||
int yyylineno;
|
||||
@@ -58,8 +57,8 @@ Appt_Status_4 externApptStatus;
|
||||
Tag_4 externTag;
|
||||
Privacy_Level_4 externPrivacy;
|
||||
|
||||
static int hash_string P((char *));
|
||||
static char *strescapes P((char *));
|
||||
static int hash_string(char *);
|
||||
static char *strescapes(char *);
|
||||
|
||||
static int len;
|
||||
static caddr_t start_of_mmapped_area;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _LIST_H
|
||||
#define _LIST_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "data.h"
|
||||
#include "rerule.h"
|
||||
|
||||
@@ -49,28 +48,28 @@ typedef struct {
|
||||
caddr_t private; /* for internal tool state */
|
||||
} Hc_list;
|
||||
|
||||
typedef int(*Destroy_proc)P((caddr_t));
|
||||
typedef int(*Destroy_proc)(caddr_t);
|
||||
|
||||
#define hc_lookup_next(p_node) (p_node)->rlink
|
||||
#define hc_lookup_previous(p_node) (p_node)->llink
|
||||
|
||||
extern Rb_Status hc_check_list P((Hc_list*));
|
||||
extern Hc_list* hc_create P((_DtCmsGetKeyProc, _DtCmsCompareProc));
|
||||
extern List_node *hc_delete P((Hc_list*, caddr_t key));
|
||||
extern List_node *hc_delete_node P((Hc_list*, List_node*));
|
||||
extern void hc_destroy P((Hc_list*, Destroy_proc));
|
||||
extern void hc_enumerate_down P((Hc_list*, _DtCmsEnumerateProc));
|
||||
extern Rb_Status hc_enumerate_up P((Hc_list*, _DtCmsEnumerateProc));
|
||||
extern Rb_Status hc_insert P((Hc_list*, caddr_t data, caddr_t key,
|
||||
RepeatEvent *re, List_node **node_r));
|
||||
extern caddr_t hc_lookup P((Hc_list*, caddr_t key));
|
||||
extern caddr_t hc_lookup_largest P((Hc_list*));
|
||||
extern caddr_t hc_lookup_next_larger P((Hc_list*, caddr_t key));
|
||||
extern caddr_t hc_lookup_next_smaller P((Hc_list*, caddr_t key));
|
||||
extern caddr_t hc_lookup_smallest P((Hc_list*));
|
||||
extern int hc_size P((Hc_list*));
|
||||
extern List_node *hc_lookup_node P((Hc_list*, caddr_t key));
|
||||
extern Hc_list* hc_create P((_DtCmsGetKeyProc, _DtCmsCompareProc));
|
||||
extern Rb_Status hc_insert_node P((Hc_list *, List_node *, caddr_t key));
|
||||
extern Rb_Status hc_check_list(Hc_list*);
|
||||
extern Hc_list* hc_create(_DtCmsGetKeyProc, _DtCmsCompareProc);
|
||||
extern List_node *hc_delete(Hc_list*, caddr_t key);
|
||||
extern List_node *hc_delete_node(Hc_list*, List_node*);
|
||||
extern void hc_destroy(Hc_list*, Destroy_proc);
|
||||
extern void hc_enumerate_down(Hc_list*, _DtCmsEnumerateProc);
|
||||
extern Rb_Status hc_enumerate_up(Hc_list*, _DtCmsEnumerateProc);
|
||||
extern Rb_Status hc_insert(Hc_list*, caddr_t data, caddr_t key,
|
||||
RepeatEvent *re, List_node **node_r);
|
||||
extern caddr_t hc_lookup(Hc_list*, caddr_t key);
|
||||
extern caddr_t hc_lookup_largest(Hc_list*);
|
||||
extern caddr_t hc_lookup_next_larger(Hc_list*, caddr_t key);
|
||||
extern caddr_t hc_lookup_next_smaller(Hc_list*, caddr_t key);
|
||||
extern caddr_t hc_lookup_smallest(Hc_list*);
|
||||
extern int hc_size(Hc_list*);
|
||||
extern List_node *hc_lookup_node(Hc_list*, caddr_t key);
|
||||
extern Hc_list* hc_create(_DtCmsGetKeyProc, _DtCmsCompareProc);
|
||||
extern Rb_Status hc_insert_node(Hc_list *, List_node *, caddr_t key);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _LOG_H
|
||||
#define _LOG_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "rtable4.h"
|
||||
|
||||
@@ -48,63 +47,63 @@ typedef enum {
|
||||
_DtCmsLogAdd, _DtCmsLogRemove
|
||||
} _DtCmsLogOps;
|
||||
|
||||
extern CSA_return_code _DtCmsAppendAppt4ByFN P((char*, Appt_4*, _DtCmsLogOps));
|
||||
extern CSA_return_code _DtCmsAppendAppt4ByFD P((int, Appt_4*, _DtCmsLogOps));
|
||||
extern CSA_return_code _DtCmsAppendAppt4ByFN(char*, Appt_4*, _DtCmsLogOps);
|
||||
extern CSA_return_code _DtCmsAppendAppt4ByFD(int, Appt_4*, _DtCmsLogOps);
|
||||
|
||||
extern CSA_return_code _DtCmsAppendCalAttrsByFN P((char *file,
|
||||
extern CSA_return_code _DtCmsAppendCalAttrsByFN(char *file,
|
||||
int size,
|
||||
cms_attribute * attrs));
|
||||
extern CSA_return_code _DtCmsAppendCalAttrsByFD P((int f,
|
||||
cms_attribute * attrs);
|
||||
extern CSA_return_code _DtCmsAppendCalAttrsByFD(int f,
|
||||
int size,
|
||||
cms_attribute * attrs));
|
||||
cms_attribute * attrs);
|
||||
|
||||
extern CSA_return_code _DtCmsAppendEntryByFN P((char *,
|
||||
extern CSA_return_code _DtCmsAppendEntryByFN(char *,
|
||||
cms_entry *,
|
||||
_DtCmsLogOps));
|
||||
extern CSA_return_code _DtCmsAppendEntryByFD P((int,
|
||||
_DtCmsLogOps);
|
||||
extern CSA_return_code _DtCmsAppendEntryByFD(int,
|
||||
cms_entry *,
|
||||
_DtCmsLogOps));
|
||||
_DtCmsLogOps);
|
||||
|
||||
extern CSA_return_code _DtCmsAppendHTableByFN P((char *file,
|
||||
extern CSA_return_code _DtCmsAppendHTableByFN(char *file,
|
||||
uint size,
|
||||
char **names,
|
||||
int *types));
|
||||
int *types);
|
||||
|
||||
extern CSA_return_code _DtCmsAppendHTableByFD P((int fd,
|
||||
extern CSA_return_code _DtCmsAppendHTableByFD(int fd,
|
||||
uint size,
|
||||
char **names,
|
||||
int *types));
|
||||
int *types);
|
||||
|
||||
extern CSA_return_code _DtCmsAppendAccessByFN P((char*,
|
||||
extern CSA_return_code _DtCmsAppendAccessByFN(char*,
|
||||
int,
|
||||
Access_Entry_4 *));
|
||||
extern CSA_return_code _DtCmsAppendAccessByFD P((int, int, Access_Entry_4 *));
|
||||
Access_Entry_4 *);
|
||||
extern CSA_return_code _DtCmsAppendAccessByFD(int, int, Access_Entry_4 *);
|
||||
|
||||
extern CSA_return_code _DtCmsCreateLogV1 P((char*, char *));
|
||||
extern CSA_return_code _DtCmsCreateLogV1(char*, char *);
|
||||
|
||||
extern CSA_return_code _DtCmsCreateLogV2 P((char *owner, char *file));
|
||||
extern CSA_return_code _DtCmsCreateLogV2(char *owner, char *file);
|
||||
|
||||
extern CSA_return_code _DtCmsWriteVersionString P((char *file, int version));
|
||||
extern CSA_return_code _DtCmsWriteVersionString(char *file, int version);
|
||||
|
||||
extern int _DtCmsSetFileMode P((char *file,
|
||||
extern int _DtCmsSetFileMode(char *file,
|
||||
uid_t uid,
|
||||
gid_t gid,
|
||||
mode_t mode,
|
||||
boolean_t changeeuid,
|
||||
boolean_t printerr));
|
||||
boolean_t printerr);
|
||||
|
||||
extern CSA_return_code _DtCmsRemoveLog P((char *calendar, char *user));
|
||||
extern CSA_return_code _DtCmsRemoveLog(char *calendar, char *user);
|
||||
|
||||
extern char *_DtCmsGetBakFN P((char*));
|
||||
extern char *_DtCmsGetLogFN P((char*));
|
||||
extern char *_DtCmsGetTmpFN P((char*));
|
||||
extern char *_DtCmsGetDelFN P((char*));
|
||||
extern char *_DtCmsGetBakFN(char*);
|
||||
extern char *_DtCmsGetLogFN(char*);
|
||||
extern char *_DtCmsGetTmpFN(char*);
|
||||
extern char *_DtCmsGetDelFN(char*);
|
||||
|
||||
extern boolean_t _DtCmsPrintAppt4 P((caddr_t data));
|
||||
extern void _DtCmsPrintExceptions P((int len, int *exceptions));
|
||||
extern boolean_t _DtCmsPrintAppt4(caddr_t data);
|
||||
extern void _DtCmsPrintExceptions(int len, int *exceptions);
|
||||
|
||||
extern CSA_return_code _DtCmsGetFileSize P((char *calendar, int *size));
|
||||
extern CSA_return_code _DtCmsGetFileSize(char *calendar, int *size);
|
||||
|
||||
extern void _DtCmsTruncateFile P((char *calendar, int size));
|
||||
extern void _DtCmsTruncateFile(char *calendar, int size);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,21 +31,20 @@
|
||||
#ifndef _LOOKUP_H
|
||||
#define _LOOKUP_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "cmscalendar.h"
|
||||
|
||||
extern _DtCmsComparisonResult _DtCmsCompareEntry P((
|
||||
extern _DtCmsComparisonResult _DtCmsCompareEntry(
|
||||
cms_key *key,
|
||||
caddr_t data));
|
||||
caddr_t data);
|
||||
|
||||
extern _DtCmsComparisonResult _DtCmsCompareRptEntry P((
|
||||
extern _DtCmsComparisonResult _DtCmsCompareRptEntry(
|
||||
cms_key *key,
|
||||
caddr_t data));
|
||||
caddr_t data);
|
||||
|
||||
extern caddr_t _DtCmsGetEntryKey P((caddr_t data));
|
||||
extern caddr_t _DtCmsGetEntryKey(caddr_t data);
|
||||
|
||||
extern CSA_return_code _DtCmsLookupEntries P((
|
||||
extern CSA_return_code _DtCmsLookupEntries(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -57,9 +56,9 @@ extern CSA_return_code _DtCmsLookupEntries P((
|
||||
CSA_uint32 num_attrs,
|
||||
cms_attribute *attrs,
|
||||
CSA_enum *ops,
|
||||
cms_entry **entries));
|
||||
cms_entry **entries);
|
||||
|
||||
extern CSA_return_code _DtCmsLookupEntriesById P((
|
||||
extern CSA_return_code _DtCmsLookupEntriesById(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -73,9 +72,9 @@ extern CSA_return_code _DtCmsLookupEntriesById P((
|
||||
CSA_uint32 num_attrs,
|
||||
cms_attribute *attrs,
|
||||
CSA_enum *ops,
|
||||
cms_entry **entries));
|
||||
cms_entry **entries);
|
||||
|
||||
extern CSA_return_code _DtCmsEnumerateSequenceById P((
|
||||
extern CSA_return_code _DtCmsEnumerateSequenceById(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -89,9 +88,9 @@ extern CSA_return_code _DtCmsEnumerateSequenceById P((
|
||||
CSA_uint32 num_attrs,
|
||||
cms_attribute *attrs,
|
||||
CSA_enum *ops,
|
||||
cms_entry **entries));
|
||||
cms_entry **entries);
|
||||
|
||||
extern CSA_return_code _DtCmsLookupEntriesByKey P((
|
||||
extern CSA_return_code _DtCmsLookupEntriesByKey(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -99,10 +98,10 @@ extern CSA_return_code _DtCmsLookupEntriesByKey P((
|
||||
cms_key *keys,
|
||||
uint num_names,
|
||||
cms_attr_name *names,
|
||||
cms_get_entry_attr_res_item **res));
|
||||
cms_get_entry_attr_res_item **res);
|
||||
|
||||
|
||||
extern CSA_return_code _DtCmsGetEntryAttrByKey P((
|
||||
extern CSA_return_code _DtCmsGetEntryAttrByKey(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -110,6 +109,6 @@ extern CSA_return_code _DtCmsGetEntryAttrByKey P((
|
||||
uint num_names,
|
||||
cms_attr_name *names,
|
||||
cms_entry **entry_r,
|
||||
cms_get_entry_attr_res_item **res_r));
|
||||
cms_get_entry_attr_res_item **res_r);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _REMINDER_H
|
||||
#define _REMINDER_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "EUSCompat.h"
|
||||
#include "cm.h"
|
||||
#include "rtable4.h"
|
||||
@@ -71,50 +70,50 @@ typedef struct reminder_q {
|
||||
struct reminder_q *next;
|
||||
} Rm_que;
|
||||
|
||||
extern void _DtCmsAddReminderV4 P((Rm_que **qhead, Rm_que *p_reminder));
|
||||
extern void _DtCmsAddReminderV4(Rm_que **qhead, Rm_que *p_reminder);
|
||||
|
||||
extern Rm_que *_DtCmsRemoveReminderV4 P((
|
||||
extern Rm_que *_DtCmsRemoveReminderV4(
|
||||
Rm_que **qhead,
|
||||
Rm_que *p_prev,
|
||||
Rm_que *p_curr));
|
||||
Rm_que *p_curr);
|
||||
|
||||
extern Rm_que *build_reminder P((
|
||||
extern Rm_que *build_reminder(
|
||||
time_t current_time,
|
||||
Appt_4 *p_appt,
|
||||
Attr_4 p_attr,
|
||||
time_t start_tick,
|
||||
u_int start_ord));
|
||||
u_int start_ord);
|
||||
|
||||
extern Reminder_4 *_DtCmsGetReminderInfoV4 P((Rm_que *original));
|
||||
extern Reminder_4 *_DtCmsGetReminderInfoV4(Rm_que *original);
|
||||
|
||||
extern void _DtCmsPrintReminderListV4 P((Rm_que *qhead));
|
||||
extern void _DtCmsPrintReminderListV4(Rm_que *qhead);
|
||||
|
||||
extern void _DtCmsObsoleteReminderV4 P((
|
||||
extern void _DtCmsObsoleteReminderV4(
|
||||
Rm_que **qhead,
|
||||
Appt_4 *p_appt,
|
||||
int ord,
|
||||
boolean_t delforward));
|
||||
boolean_t delforward);
|
||||
|
||||
extern void _DtCmsAddReminders4Entry P((
|
||||
extern void _DtCmsAddReminders4Entry(
|
||||
_DtCmsRemQueue **qhead,
|
||||
cms_entry *entry,
|
||||
List_node *lnode));
|
||||
List_node *lnode);
|
||||
|
||||
extern void _DtCmsObsoleteReminder4Entry P((
|
||||
extern void _DtCmsObsoleteReminder4Entry(
|
||||
_DtCmsRemQueue *qhead,
|
||||
cms_entry *entry,
|
||||
List_node *lnode,
|
||||
time_t starttime,
|
||||
boolean_t delfwd));
|
||||
boolean_t delfwd);
|
||||
|
||||
extern CSA_return_code _DtCmsLookupReminder P((
|
||||
extern CSA_return_code _DtCmsLookupReminder(
|
||||
_DtCmsRemQueue *remq,
|
||||
time_t tick,
|
||||
uint num_names,
|
||||
cms_attr_name *names,
|
||||
cms_reminder_ref **rems));
|
||||
cms_reminder_ref **rems);
|
||||
|
||||
extern void _DtCmsFreeReminderRef P((cms_reminder_ref *rems));
|
||||
extern void _DtCmsFreeReminderRef(cms_reminder_ref *rems);
|
||||
|
||||
extern void _DtCmsUpdateReminders(_DtCmsRemQueue *remq);
|
||||
|
||||
|
||||
@@ -814,7 +814,7 @@ next_ndays(time_t t, int n)
|
||||
tm.tm_min = 0;
|
||||
tm.tm_hour = 0;
|
||||
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
next = mktime(&tm);
|
||||
#else
|
||||
next = timelocal(&tm);
|
||||
@@ -1004,7 +1004,7 @@ prev_nmonth(time_t t, int n)
|
||||
tm.tm_mon += 12;
|
||||
tm.tm_year--;
|
||||
}
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
tm.tm_isdst = -1;
|
||||
return(mktime(&tm));
|
||||
#else
|
||||
@@ -1088,7 +1088,7 @@ nextnyear(time_t t, int n)
|
||||
|
||||
tm = *_XLocaltime(&t, localtime_buf);
|
||||
tm.tm_year += n;
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
return(mktime(&tm));
|
||||
#else
|
||||
return(timelocal(&tm));
|
||||
@@ -1110,7 +1110,7 @@ prevnyear(time_t t, int n)
|
||||
|
||||
tm = *_XLocaltime(&t, localtime_buf);
|
||||
tm.tm_year -= n;
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
return(mktime(&tm));
|
||||
#else
|
||||
return(timelocal(&tm));
|
||||
@@ -1139,7 +1139,7 @@ prevmonth_exactday(time_t t)
|
||||
prev = previousmonth(previousmonth(t)); /* hop over the month */
|
||||
tm = *_XLocaltime(&prev, localtime_buf);
|
||||
tm.tm_mday = day;
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
tm.tm_isdst = -1;
|
||||
prev =(mktime(&tm)) + sdelta;
|
||||
#else
|
||||
@@ -1172,7 +1172,7 @@ nextmonth_exactday(time_t t)
|
||||
next = next_nmonth(t, 2); /* hop over the month */
|
||||
tm = *_XLocaltime(&next, localtime_buf);
|
||||
tm.tm_mday = day;
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
tm.tm_isdst = -1;
|
||||
next = mktime(&tm) + sdelta;
|
||||
#else
|
||||
@@ -1201,7 +1201,7 @@ previousmonth(time_t t)
|
||||
tm.tm_mday=1;
|
||||
tm.tm_mon--;
|
||||
}
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
tm.tm_isdst = -1;
|
||||
return(mktime(&tm));
|
||||
#else
|
||||
@@ -1513,7 +1513,7 @@ nextnmth_exactday(time_t t, int n)
|
||||
t = next;
|
||||
}
|
||||
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
tm2.tm_isdst = -1;
|
||||
next = mktime(&tm2);
|
||||
#else
|
||||
@@ -1549,7 +1549,7 @@ prevnmth_exactday(time_t t, int n)
|
||||
t = prev;
|
||||
}
|
||||
|
||||
#ifdef SVR4
|
||||
#if defined(SVR4) || defined(__linux__)
|
||||
tm2.tm_isdst = -1;
|
||||
prev = mktime(&tm2);
|
||||
#else
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#define _REPEAT_H
|
||||
|
||||
#include <EUSCompat.h>
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "rtable4.h"
|
||||
#include "rerule.h"
|
||||
@@ -41,45 +40,45 @@ typedef time_t Tick;
|
||||
|
||||
extern int monthdays[];
|
||||
|
||||
extern void init_time P(());
|
||||
extern void init_time(void);
|
||||
|
||||
extern time_t _DtCms_closest_tick_v4 P((time_t target,
|
||||
extern time_t _DtCms_closest_tick_v4(time_t target,
|
||||
time_t ftick,
|
||||
Period_4 period,
|
||||
int *ordinal));
|
||||
int *ordinal);
|
||||
|
||||
extern time_t _DtCms_last_tick_v4 P((time_t ftick,
|
||||
extern time_t _DtCms_last_tick_v4(time_t ftick,
|
||||
Period_4 period,
|
||||
int ntimes));
|
||||
int ntimes);
|
||||
|
||||
extern time_t _DtCms_next_tick_v4 P((time_t tick, Period_4 period));
|
||||
extern time_t _DtCms_next_tick_v4(time_t tick, Period_4 period);
|
||||
|
||||
extern time_t _DtCms_prev_tick_v4 P((time_t tick, Period_4 period));
|
||||
extern time_t _DtCms_prev_tick_v4(time_t tick, Period_4 period);
|
||||
|
||||
extern time_t _DtCms_first_tick_v4 P((time_t t, Period_4 period, int ordinal));
|
||||
extern time_t _DtCms_first_tick_v4(time_t t, Period_4 period, int ordinal);
|
||||
|
||||
extern void _DtCms_adjust_appt_startdate P((Appt_4 *appt));
|
||||
extern void _DtCms_adjust_appt_startdate(Appt_4 *appt);
|
||||
|
||||
extern time_t next_nmins P((time_t t, int m));
|
||||
extern time_t next_nmins(time_t t, int m);
|
||||
|
||||
extern time_t next_ndays P((time_t t, int n));
|
||||
extern time_t next_ndays(time_t t, int n);
|
||||
|
||||
extern int _DtCms_marked_4_cancellation P((Appt_4 *a, int i));
|
||||
extern int _DtCms_marked_4_cancellation(Appt_4 *a, int i);
|
||||
|
||||
extern int _DtCms_get_new_ntimes_v4 P((Period_4 period,
|
||||
extern int _DtCms_get_new_ntimes_v4(Period_4 period,
|
||||
time_t tick,
|
||||
int ninstance));
|
||||
int ninstance);
|
||||
|
||||
extern int _DtCms_get_ninstance_v4 P((Appt_4 *appt));
|
||||
extern int _DtCms_get_ninstance_v4(Appt_4 *appt);
|
||||
|
||||
extern int _DtCms_in_repeater P((Id_4 *key,
|
||||
extern int _DtCms_in_repeater(Id_4 *key,
|
||||
Appt_4 *p_appt,
|
||||
boolean_t dont_care_cancel));
|
||||
boolean_t dont_care_cancel);
|
||||
|
||||
extern int monthlength P((Tick));
|
||||
extern int leapyr P((int));
|
||||
extern int fdom P((Tick));
|
||||
extern int ldom P((Tick));
|
||||
extern int monthlength(Tick);
|
||||
extern int leapyr(int);
|
||||
extern int fdom(Tick);
|
||||
extern int ldom(Tick);
|
||||
|
||||
/*
|
||||
* returns the tick of the beginning of the day
|
||||
@@ -94,6 +93,6 @@ extern time_t _DtCmsTimeOfDay(time_t t);
|
||||
/*
|
||||
* routines to deal with recurrence rule and exception dates
|
||||
*/
|
||||
extern boolean_t _DtCmsInExceptionList P((cms_entry *eptr, time_t tick));
|
||||
extern boolean_t _DtCmsInExceptionList(cms_entry *eptr, time_t tick);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,8 +31,6 @@
|
||||
#ifndef _RPCEXTRAS_H
|
||||
#define _RPCEXTRAS_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
|
||||
#define RPCGEN_ACTION(routine) routine
|
||||
|
||||
struct rpcgen_table {
|
||||
@@ -58,7 +56,7 @@ typedef struct prog_object {
|
||||
|
||||
typedef program_object *program_handle;
|
||||
|
||||
extern program_handle newph P(());
|
||||
extern program_handle getph P(());
|
||||
extern program_handle newph(void);
|
||||
extern program_handle getph(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _TREE_H
|
||||
#define _TREE_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "data.h"
|
||||
|
||||
/*
|
||||
@@ -52,32 +51,32 @@ typedef struct {
|
||||
caddr_t private; /* for internal tool state */
|
||||
} Rb_tree;
|
||||
|
||||
extern Rb_tree* rb_create P((_DtCmsGetKeyProc, _DtCmsCompareProc));
|
||||
extern Rb_tree* rb_create(_DtCmsGetKeyProc, _DtCmsCompareProc);
|
||||
|
||||
extern void rb_destroy P((Rb_tree*, _DtCmsEnumerateProc));
|
||||
extern void rb_destroy(Rb_tree*, _DtCmsEnumerateProc);
|
||||
|
||||
extern int rb_size P((Rb_tree*t));
|
||||
extern int rb_size(Rb_tree*t);
|
||||
|
||||
extern Rb_Status rb_insert P((Rb_tree*, caddr_t data, caddr_t key));
|
||||
extern Rb_Status rb_insert(Rb_tree*, caddr_t data, caddr_t key);
|
||||
|
||||
extern Rb_Status rb_insert_node P((Rb_tree*, Tree_node*, caddr_t key));
|
||||
extern Rb_Status rb_insert_node(Rb_tree*, Tree_node*, caddr_t key);
|
||||
|
||||
extern Tree_node * rb_delete P((Rb_tree*, caddr_t key));
|
||||
extern Tree_node * rb_delete(Rb_tree*, caddr_t key);
|
||||
|
||||
extern caddr_t rb_lookup P((Rb_tree*, caddr_t key));
|
||||
extern caddr_t rb_lookup(Rb_tree*, caddr_t key);
|
||||
|
||||
extern caddr_t rb_lookup_next_larger P((Rb_tree*, caddr_t key));
|
||||
extern caddr_t rb_lookup_next_larger(Rb_tree*, caddr_t key);
|
||||
|
||||
extern caddr_t rb_lookup_next_smaller P((Rb_tree*, caddr_t key));
|
||||
extern caddr_t rb_lookup_next_smaller(Rb_tree*, caddr_t key);
|
||||
|
||||
extern caddr_t rb_lookup_smallest P((Rb_tree*));
|
||||
extern caddr_t rb_lookup_smallest(Rb_tree*);
|
||||
|
||||
extern caddr_t rb_lookup_largest P((Rb_tree*));
|
||||
extern caddr_t rb_lookup_largest(Rb_tree*);
|
||||
|
||||
extern Rb_Status rb_enumerate_up P((Rb_tree*, _DtCmsEnumerateProc));
|
||||
extern Rb_Status rb_enumerate_up(Rb_tree*, _DtCmsEnumerateProc);
|
||||
|
||||
extern void rb_enumerate_down P((Rb_tree*, _DtCmsEnumerateProc));
|
||||
extern void rb_enumerate_down(Rb_tree*, _DtCmsEnumerateProc);
|
||||
|
||||
extern Rb_Status rb_check_tree P((Rb_tree *));
|
||||
extern Rb_Status rb_check_tree(Rb_tree *);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,16 +31,15 @@
|
||||
#ifndef _UPDATE_H
|
||||
#define _UPDATE_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "cmscalendar.h"
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateCalAttrs P((
|
||||
extern CSA_return_code _DtCmsUpdateCalAttrs(
|
||||
_DtCmsCalendar *cal,
|
||||
uint num_attrs,
|
||||
cms_attribute *attrs));
|
||||
cms_attribute *attrs);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateEntry P((
|
||||
extern CSA_return_code _DtCmsUpdateEntry(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -48,9 +47,9 @@ extern CSA_return_code _DtCmsUpdateEntry P((
|
||||
uint num_attrs,
|
||||
cms_attribute *attrs,
|
||||
cms_entry **oldentry,
|
||||
cms_entry **newentry));
|
||||
cms_entry **newentry);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateInstances P((
|
||||
extern CSA_return_code _DtCmsUpdateInstances(
|
||||
_DtCmsCalendar *cal,
|
||||
char *sender,
|
||||
uint access,
|
||||
@@ -59,6 +58,6 @@ extern CSA_return_code _DtCmsUpdateInstances P((
|
||||
uint num_attrs,
|
||||
cms_attribute *attrs,
|
||||
cms_entry **oldentry,
|
||||
cms_entry **newentry));
|
||||
cms_entry **newentry);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,14 +31,12 @@
|
||||
#ifndef _UTILITY_H
|
||||
#define _UTILITY_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
extern char *_DtCmsTarget2Name(char *target);
|
||||
|
||||
extern char *_DtCmsTarget2Name P((char *target));
|
||||
extern char *_DtCmsTarget2Location(char *target);
|
||||
|
||||
extern char *_DtCmsTarget2Location P((char *target));
|
||||
extern char *_DtCmsTarget2Host(char *target);
|
||||
|
||||
extern char *_DtCmsTarget2Host P((char *target));
|
||||
|
||||
extern char *_DtCmsTarget2Domain P((char *target));
|
||||
extern char *_DtCmsTarget2Domain(char *target);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef _V4OPS_H
|
||||
#define _V4OPS_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "rtable4.h"
|
||||
#include "cm.h"
|
||||
#include "log.h"
|
||||
@@ -45,64 +44,64 @@ typedef struct __DtCmsEntryId {
|
||||
struct __DtCmsEntryId *next;
|
||||
} _DtCmsEntryId;
|
||||
|
||||
extern CSA_return_code _DtCmsInsertAppt P((_DtCmsCalendar *cal, Appt_4 *appt4));
|
||||
extern CSA_return_code _DtCmsInsertAppt(_DtCmsCalendar *cal, Appt_4 *appt4);
|
||||
|
||||
extern CSA_return_code _DtCmsDeleteAppt P((
|
||||
extern CSA_return_code _DtCmsDeleteAppt(
|
||||
_DtCmsCalendar *cal,
|
||||
char *user,
|
||||
uint access,
|
||||
Id_4 *p_key,
|
||||
Appt_4 **appt_r));
|
||||
Appt_4 **appt_r);
|
||||
|
||||
extern CSA_return_code _DtCmsDeleteApptAndLog P((
|
||||
extern CSA_return_code _DtCmsDeleteApptAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
char *user,
|
||||
uint access,
|
||||
Id_4 *key,
|
||||
Appt_4 **oldappt));
|
||||
Appt_4 **oldappt);
|
||||
|
||||
extern CSA_return_code _DtCmsDeleteApptInstancesAndLog P((
|
||||
extern CSA_return_code _DtCmsDeleteApptInstancesAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
char *source,
|
||||
uint access,
|
||||
Id_4 *key,
|
||||
Options_4 option,
|
||||
int *remain,
|
||||
Appt_4 **oldappt));
|
||||
Appt_4 **oldappt);
|
||||
|
||||
extern CSA_return_code _DtCmsChangeAll P((
|
||||
extern CSA_return_code _DtCmsChangeAll(
|
||||
_DtCmsCalendar *cal,
|
||||
char *source,
|
||||
uint access,
|
||||
Id_4 *p_key,
|
||||
Appt_4 *newa,
|
||||
Appt_4 **oldappt));
|
||||
Appt_4 **oldappt);
|
||||
|
||||
extern CSA_return_code _DtCmsChangeSome P((
|
||||
extern CSA_return_code _DtCmsChangeSome(
|
||||
_DtCmsCalendar *cal,
|
||||
char *source,
|
||||
uint access,
|
||||
Id_4 *p_key,
|
||||
Appt_4 *p_appt,
|
||||
Options_4 option,
|
||||
Appt_4 **oldappt));
|
||||
Appt_4 **oldappt);
|
||||
|
||||
extern CSA_return_code _DtCmsInsertApptAndLog P((
|
||||
extern CSA_return_code _DtCmsInsertApptAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
Appt_4 *appt));
|
||||
Appt_4 *appt);
|
||||
|
||||
extern _DtCmsComparisonResult _DtCmsCompareAppt P((Id_4 *key, caddr_t data));
|
||||
extern _DtCmsComparisonResult _DtCmsCompareAppt(Id_4 *key, caddr_t data);
|
||||
|
||||
extern _DtCmsComparisonResult _DtCmsCompareRptAppt P((Id_4 *key, caddr_t data));
|
||||
extern _DtCmsComparisonResult _DtCmsCompareRptAppt(Id_4 *key, caddr_t data);
|
||||
|
||||
extern caddr_t _DtCmsGetApptKey P((caddr_t data));
|
||||
extern caddr_t _DtCmsGetApptKey(caddr_t data);
|
||||
|
||||
extern CSA_return_code v4_transact_log P((
|
||||
extern CSA_return_code v4_transact_log(
|
||||
char *calendar,
|
||||
Appt_4 *a,
|
||||
_DtCmsLogOps op));
|
||||
_DtCmsLogOps op);
|
||||
|
||||
extern CSA_return_code _DtCmsLookupRangeV4 P((
|
||||
extern CSA_return_code _DtCmsLookupRangeV4(
|
||||
_DtCmsCalendar *cal,
|
||||
char *user,
|
||||
uint access,
|
||||
@@ -115,9 +114,9 @@ extern CSA_return_code _DtCmsLookupRangeV4 P((
|
||||
cms_attribute *attrs,
|
||||
CSA_enum *ops,
|
||||
Appt_4 **appt_r,
|
||||
Abb_Appt_4 **abbr_r));
|
||||
Abb_Appt_4 **abbr_r);
|
||||
|
||||
extern CSA_return_code _DtCmsLookupKeyrangeV4 P((
|
||||
extern CSA_return_code _DtCmsLookupKeyrangeV4(
|
||||
_DtCmsCalendar *cal,
|
||||
char *user,
|
||||
uint access,
|
||||
@@ -133,48 +132,48 @@ extern CSA_return_code _DtCmsLookupKeyrangeV4 P((
|
||||
cms_attribute *attrs,
|
||||
CSA_enum *ops,
|
||||
Appt_4 **appt_r,
|
||||
Abb_Appt_4 **abbr_r));
|
||||
Abb_Appt_4 **abbr_r);
|
||||
|
||||
extern CSA_return_code _AddToLinkedAppts P((
|
||||
extern CSA_return_code _AddToLinkedAppts(
|
||||
Appt_4 *p_appt,
|
||||
char *user,
|
||||
uint access,
|
||||
caddr_t *ilp));
|
||||
caddr_t *ilp);
|
||||
|
||||
extern CSA_return_code _AddToLinkedAbbrAppts P((
|
||||
extern CSA_return_code _AddToLinkedAbbrAppts(
|
||||
Appt_4 *p_appt,
|
||||
char *user,
|
||||
uint access,
|
||||
caddr_t *ilp));
|
||||
caddr_t *ilp);
|
||||
|
||||
extern Privacy_Level_4 _GetAccessLevel P((
|
||||
extern Privacy_Level_4 _GetAccessLevel(
|
||||
char *user,
|
||||
uint access,
|
||||
Appt_4 *p_appt));
|
||||
Appt_4 *p_appt);
|
||||
|
||||
extern Appt_4 * _AddApptInOrder P((Appt_4 * head, Appt_4 * aptr));
|
||||
extern Appt_4 * _AddApptInOrder(Appt_4 * head, Appt_4 * aptr);
|
||||
|
||||
extern Abb_Appt_4 * _AddAbbApptInOrder P((Abb_Appt_4 *head, Abb_Appt_4 *aptr));
|
||||
extern Abb_Appt_4 * _AddAbbApptInOrder(Abb_Appt_4 *head, Abb_Appt_4 *aptr);
|
||||
|
||||
extern CSA_return_code _DtCmsSetV4AccessListAndLog P((
|
||||
extern CSA_return_code _DtCmsSetV4AccessListAndLog(
|
||||
_DtCmsCalendar *cal,
|
||||
Access_Entry_4 *alist));
|
||||
Access_Entry_4 *alist);
|
||||
|
||||
extern CSA_return_code _DtCmsGetV4Reminders P((
|
||||
extern CSA_return_code _DtCmsGetV4Reminders(
|
||||
_DtCmsCalendar *cal,
|
||||
long tick,
|
||||
Reminder_4 **rem_r,
|
||||
_DtCmsEntryId **ids_r));
|
||||
_DtCmsEntryId **ids_r);
|
||||
|
||||
extern void _DtCmsFreeEntryIds P((_DtCmsEntryId *ids));
|
||||
extern void _DtCmsFreeEntryIds(_DtCmsEntryId *ids);
|
||||
|
||||
extern CSA_return_code _DtCmsTruncateElist P((
|
||||
extern CSA_return_code _DtCmsTruncateElist(
|
||||
Appt_4 *parent_p,
|
||||
int remain,
|
||||
Except_4 **excpt));
|
||||
Except_4 **excpt);
|
||||
|
||||
extern CSA_return_code _DtCmsSetV4AccessListInCal P((
|
||||
extern CSA_return_code _DtCmsSetV4AccessListInCal(
|
||||
_DtCmsCalendar *cal,
|
||||
Access_Entry_4 *e));
|
||||
Access_Entry_4 *e);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,42 +31,41 @@
|
||||
#ifndef _V5OPS_H
|
||||
#define _V5OPS_H
|
||||
|
||||
#include "ansi_c.h"
|
||||
#include "cm.h"
|
||||
#include "cmscalendar.h"
|
||||
#include "rerule.h"
|
||||
#include "repeat.h"
|
||||
|
||||
extern _DtCmsComparisonResult _DtCmsCompareEntry P((
|
||||
extern _DtCmsComparisonResult _DtCmsCompareEntry(
|
||||
cms_key *key,
|
||||
caddr_t data));
|
||||
caddr_t data);
|
||||
|
||||
extern _DtCmsComparisonResult _DtCmsCompareRptEntry P((
|
||||
extern _DtCmsComparisonResult _DtCmsCompareRptEntry(
|
||||
cms_key *key,
|
||||
caddr_t data));
|
||||
caddr_t data);
|
||||
|
||||
extern caddr_t _DtCmsGetEntryKey P((caddr_t data));
|
||||
extern caddr_t _DtCmsGetEntryKey(caddr_t data);
|
||||
|
||||
extern CSA_return_code _DtCmsSetLastUpdate P((cms_entry *entry));
|
||||
extern CSA_return_code _DtCmsSetLastUpdate(cms_entry *entry);
|
||||
|
||||
extern void _DtCmsConvertToOnetime P((cms_entry *entry, RepeatEvent *re));
|
||||
extern void _DtCmsConvertToOnetime(cms_entry *entry, RepeatEvent *re);
|
||||
|
||||
extern int _DtCmsGetDuration P((cms_entry *eptr));
|
||||
extern int _DtCmsGetDuration(cms_entry *eptr);
|
||||
|
||||
extern CSA_return_code _DtCmsCheckInitialAttributes P((cms_entry *entry));
|
||||
extern CSA_return_code _DtCmsCheckInitialAttributes(cms_entry *entry);
|
||||
|
||||
extern CSA_return_code _DtCmsCheckStartEndTime P((cms_entry *entry));
|
||||
extern CSA_return_code _DtCmsCheckStartEndTime(cms_entry *entry);
|
||||
|
||||
extern void _DtCmsCleanupExceptionDates P((cms_entry *newe, long ftick));
|
||||
extern void _DtCmsCleanupExceptionDates(cms_entry *newe, long ftick);
|
||||
|
||||
extern int _DtCmsNumberExceptionDates P((cms_entry *entry));
|
||||
extern int _DtCmsNumberExceptionDates(cms_entry *entry);
|
||||
|
||||
extern CSA_return_code _DtCmsUpdateDurationInRule P((
|
||||
extern CSA_return_code _DtCmsUpdateDurationInRule(
|
||||
cms_entry *entry,
|
||||
uint remain));
|
||||
uint remain);
|
||||
|
||||
extern CSA_return_code _DtCmsAddEndDateToRule P((
|
||||
extern CSA_return_code _DtCmsAddEndDateToRule(
|
||||
cms_attribute *attr,
|
||||
RepeatEvent *re,
|
||||
long time));
|
||||
long time);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user