projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e05b59
)
DtSvc/DtUtil1: fix implicit function declarations
author
Jon Trulson
<jon@radscan.com>
Mon, 28 Oct 2019 19:22:09 +0000
(13:22 -0600)
committer
Jon Trulson
<jon@radscan.com>
Mon, 28 Oct 2019 20:30:36 +0000
(14:30 -0600)
16 files changed:
cde/lib/DtSvc/DtUtil1/Action.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/ActionUtil.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/CmdMain.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DbLoad.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/Dnd.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DndDrag.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DndDrop.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DtsDb.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DtsInit.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DtsMM.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/DtsSort.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/MMDb.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/Saver.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/WmMarquee.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/WmWsCallB.c
patch
|
blob
|
history
cde/lib/DtSvc/DtUtil1/inttab.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtSvc/DtUtil1/Action.c
b/cde/lib/DtSvc/DtUtil1/Action.c
index a69918e9217fb21b97cd734c037ffe0391ea767a..0af2486034df286f97b70492e86ea9621fb6e696 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/Action.c
+++ b/
cde/lib/DtSvc/DtUtil1/Action.c
@@
-108,6
+108,23
@@
extern char * _DtStripSpaces(
char * string) ;
extern char * _DtDbPathIdToString( DtDbPathId pathId) ;
char * string) ;
extern char * _DtDbPathIdToString( DtDbPathId pathId) ;
+extern int _DtActDeleteChildRec( _DtActInvRecT *invp, _DtActChildRecT *childp);
+extern int _DtActionCommandInvoke(
+ long wintype,
+ char * cwdHost,
+ char * cwdDir,
+ char * execString,
+ char * termOpts,
+ char * execHost,
+ char * procId,
+ char * tmpFiles,
+ void (*success_proc)(),
+ void *success_data,
+ void (*failure_proc)(),
+ void *failure_data);
+
+
+
#define _MAX_MAP_ATTEMPTS 100 /* Maximum nuber of "MAPS" that will
be done. */
#define _DT_ACTION_MAX_CLOSE_TRIES 5
#define _MAX_MAP_ATTEMPTS 100 /* Maximum nuber of "MAPS" that will
be done. */
#define _DT_ACTION_MAX_CLOSE_TRIES 5
diff --git
a/cde/lib/DtSvc/DtUtil1/ActionUtil.c
b/cde/lib/DtSvc/DtUtil1/ActionUtil.c
index 3a4c7667df237c2bdc77ab659c76d2fc66330be0..5a8b7c46085413701f33b6227e73b9941458c7a6 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/ActionUtil.c
+++ b/
cde/lib/DtSvc/DtUtil1/ActionUtil.c
@@
-94,6
+94,10
@@
static void _DtActFreeChildRec( _DtActChildRecT *childp);
#ifndef P_tmpdir
#define P_tmpdir "/var/tmp"
#endif
#ifndef P_tmpdir
#define P_tmpdir "/var/tmp"
#endif
+
+extern void _DtFreeRequest(ActionRequest *request );
+
+
/*******************************************************************************
* _DtBasename -- utiltiy function to return a pointer to a
* string containing the basename of a file name. It doesn't
/*******************************************************************************
* _DtBasename -- utiltiy function to return a pointer to a
* string containing the basename of a file name. It doesn't
diff --git
a/cde/lib/DtSvc/DtUtil1/CmdMain.c
b/cde/lib/DtSvc/DtUtil1/CmdMain.c
index 2635b961e86e1f1582b85479f8eaf816c1452002..67dfd9dac5bf53fe698354d782f4595bcc9f413c 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/CmdMain.c
+++ b/
cde/lib/DtSvc/DtUtil1/CmdMain.c
@@
-133,6
+133,9
@@
static int DtCmdGetWindowType(
unsigned long windowTypeMask);
static void _DtCmdInitializeErrorMessages(void);
unsigned long windowTypeMask);
static void _DtCmdInitializeErrorMessages(void);
+extern void _DtEnvMapForRemote (char *targetHost);
+extern void _DtEnvRestoreLocal (void);
+
/*
* Command invocatin error messages.
*/
/*
* Command invocatin error messages.
*/
diff --git
a/cde/lib/DtSvc/DtUtil1/DbLoad.c
b/cde/lib/DtSvc/DtUtil1/DbLoad.c
index f7187348ae83dd130fc5af4ecbefcb4d8fa01ca9..07caa4ee7125524cc6b337c113882fb48fa708cc 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DbLoad.c
+++ b/
cde/lib/DtSvc/DtUtil1/DbLoad.c
@@
-103,6
+103,8
@@
extern void _DtDtsDAConverter(DtDtsDbField * fields,
extern void _DtDtsSeqReset(void);
extern int _DtDtsNextDCSeq(void);
extern int _DtDtsNextDASeq(void);
extern void _DtDtsSeqReset(void);
extern int _DtDtsNextDCSeq(void);
extern int _DtDtsNextDASeq(void);
+extern int _DtDtsMMUnLoad(void);
+extern void _DtFreeActionDB(void);
char **_DtsDbListDb(void);
char **_DtsDbListDb(void);
diff --git
a/cde/lib/DtSvc/DtUtil1/Dnd.c
b/cde/lib/DtSvc/DtUtil1/Dnd.c
index b8decc50fb87a33b0549e6a521f483313c49e526..051c23aac358982a1351703da104ea1f53fabf87 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/Dnd.c
+++ b/
cde/lib/DtSvc/DtUtil1/Dnd.c
@@
-58,6
+58,7
@@
#include <Xm/Xm.h>
#include <Xm/DragDrop.h>
#include <Xm/DropTrans.h>
#include <Xm/Xm.h>
#include <Xm/DragDrop.h>
#include <Xm/DropTrans.h>
+#include <Xm/AtomMgr.h>
#include <Dt/UserMsg.h>
#include "Dnd.h"
#include "DndP.h"
#include <Dt/UserMsg.h>
#include "Dnd.h"
#include "DndP.h"
diff --git
a/cde/lib/DtSvc/DtUtil1/DndDrag.c
b/cde/lib/DtSvc/DtUtil1/DndDrag.c
index 10166ab294fd94a00b9cd8cfe6fc9d45df647ab0..9c26e22a8f6d1f96a1b17598bd71b16575594a11 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DndDrag.c
+++ b/
cde/lib/DtSvc/DtUtil1/DndDrag.c
@@
-60,6
+60,7
@@
#include <Xm/DragC.h>
#include <Xm/DragCP.h>
#include <Xm/DragOverSP.h>
#include <Xm/DragC.h>
#include <Xm/DragCP.h>
#include <Xm/DragOverSP.h>
+#include <Dt/Wsm.h>
#include "Dnd.h"
#include "DndP.h"
#include "DtSvcLock.h"
#include "Dnd.h"
#include "DndP.h"
#include "DtSvcLock.h"
@@
-76,6
+77,14
@@
static void dndDragDropFinishCallback(Widget, XtPointer, XtPointer);
static void dndTopLevelEnterCallback(Widget, XtPointer, XtPointer);
static void dndTopLevelLeaveCallback(Widget, XtPointer, XtPointer);
static void dndTopLevelEnterCallback(Widget, XtPointer, XtPointer);
static void dndTopLevelLeaveCallback(Widget, XtPointer, XtPointer);
+extern int _DtDndCountVarArgs(va_list vaList);
+extern void _DtDndArgListFromVarArgs(va_list vaList,
+ Cardinal maxArgs,
+ ArgList *argListReturn,
+ Cardinal *argCountReturn);
+extern void _XmDragOverChange(Widget w,
+ unsigned char dropSiteStatus);
+
/*
* Drag Initiator Resources
*/
/*
* Drag Initiator Resources
*/
diff --git
a/cde/lib/DtSvc/DtUtil1/DndDrop.c
b/cde/lib/DtSvc/DtUtil1/DndDrop.c
index af8ae49db65cd2589864be71118905880da583dd..32d3cee6411f8f263f2b2474a86b7daa6df34f83 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DndDrop.c
+++ b/
cde/lib/DtSvc/DtUtil1/DndDrop.c
@@
-114,6
+114,14
@@
static XtResource dropResources[] = {
XtRImmediate, (XtPointer)False },
};
XtRImmediate, (XtPointer)False },
};
+extern int _DtDndCountVarArgs(va_list vaList);
+extern void _DtDndArgListFromVarArgs(va_list vaList,
+ Cardinal maxArgs,
+ ArgList *argListReturn,
+ Cardinal *argCountReturn);
+
+
+
#undef Offset
/*
#undef Offset
/*
diff --git
a/cde/lib/DtSvc/DtUtil1/DtsDb.c
b/cde/lib/DtSvc/DtUtil1/DtsDb.c
index ba7c30865a5b621be1b94b3e41d7d5e4f5e39e8a..51e97a86777e0d295b4599d20d004492c5bf804f 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DtsDb.c
+++ b/
cde/lib/DtSvc/DtUtil1/DtsDb.c
@@
-60,7
+60,10
@@
#include <Dt/UserMsg.h>
#include "DtSvcLock.h"
#include <Dt/UserMsg.h>
#include "DtSvcLock.h"
-extern char *strdup(const char *);
+extern int _MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
+ const char *CacheFile);
+
+
#define PADMEM 10
#define PADMEM 10
diff --git
a/cde/lib/DtSvc/DtUtil1/DtsInit.c
b/cde/lib/DtSvc/DtUtil1/DtsInit.c
index 7d67657f2a7e377fd4ccba4823cc1729f14838de..0e385e274e6da62ddb00c02883ca8ed4b6abbb2f 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DtsInit.c
+++ b/
cde/lib/DtSvc/DtUtil1/DtsInit.c
@@
-73,9
+73,7
@@
#include <Dt/Dts.h>
#include "DtSvcLock.h"
#include <Dt/Dts.h>
#include "DtSvcLock.h"
-#if !defined(__linux__)
-extern char *strdup(const char *);
-#endif
+extern int _DtDtsMMUnLoad(void);
static int cur_dc_count = 0;
static int cur_da_count = 0;
static int cur_dc_count = 0;
static int cur_da_count = 0;
diff --git
a/cde/lib/DtSvc/DtUtil1/DtsMM.c
b/cde/lib/DtSvc/DtUtil1/DtsMM.c
index 6892a18090dd78bd38c25204518bf03268f8737d..8c5c2fcf9e9a8303ca9bca5b572cc7620f8b8513 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DtsMM.c
+++ b/
cde/lib/DtSvc/DtUtil1/DtsMM.c
@@
-65,6
+65,11
@@
static size_t mmaped_size = 0;
static int mmaped_fd = 0;
static DtDtsMMHeader *head = 0;
static int mmaped_fd = 0;
static DtDtsMMHeader *head = 0;
+int _DtDtsMMUnLoad(void);
+
+extern void _DtDbFillVariables (char **line );
+extern void _DtDtsClear(void);
+
void *
_DtDtsMMGetPtr(int index)
{
void *
_DtDtsMMGetPtr(int index)
{
diff --git
a/cde/lib/DtSvc/DtUtil1/DtsSort.c
b/cde/lib/DtSvc/DtUtil1/DtsSort.c
index 76f7dac96a1bff0aad68fc3ca40d4f350512e88e..5ed888034bbedc6f79eb713a7c16a87831058e6f 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/DtsSort.c
+++ b/
cde/lib/DtSvc/DtUtil1/DtsSort.c
@@
-219,7
+219,7
@@
bool(int i)
#endif
#endif
-check_content(char *val1, char *val2)
+
static int
check_content(char *val1, char *val2)
{
char *v1 = strdup(val1);
char *v2 = strdup(val2);
{
char *v1 = strdup(val1);
char *v2 = strdup(val2);
@@
-462,7
+462,7
@@
cde_dc_field_compare(DtDtsDbField ** a, DtDtsDbField ** b)
cde_ft_field_value((*b)->fieldName));
}
cde_ft_field_value((*b)->fieldName));
}
-cde_da_compare(DtDtsDbRecord ** a, DtDtsDbRecord ** b)
+
int
cde_da_compare(DtDtsDbRecord ** a, DtDtsDbRecord ** b)
{
int results = ((*a)->recordName) - ((*b)->recordName);
{
int results = ((*a)->recordName) - ((*b)->recordName);
diff --git
a/cde/lib/DtSvc/DtUtil1/MMDb.c
b/cde/lib/DtSvc/DtUtil1/MMDb.c
index 1d3e5b52626bdfb77e1391cb7f0afd66f2747580..8425643851551ef9d2768bf269d49a021e7690fd 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/MMDb.c
+++ b/
cde/lib/DtSvc/DtUtil1/MMDb.c
@@
-77,6
+77,10
@@
static DtShmProtoIntList int_handle = 0;
#define QtB(a) _DtShmProtoAddStrtab(shm_handle, XrmQuarkToString(a), &isnew)
#define QtB(a) _DtShmProtoAddStrtab(shm_handle, XrmQuarkToString(a), &isnew)
+/* DtsMM.c */
+extern int _DtDtsMMPathHash(DtDirPaths *dirs);
+
+
int
_MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
const char *CacheFile)
int
_MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
const char *CacheFile)
@@
-724,7
+728,7
@@
write_db(DtDtsMMHeader *header, void *index, int size, const char *CacheFile)
}
}
-_DtActionCompareRecordBoson(
+
intptr_t
_DtActionCompareRecordBoson(
DtDtsMMRecord *record1,
DtDtsMMRecord *record2 )
{
DtDtsMMRecord *record1,
DtDtsMMRecord *record2 )
{
diff --git
a/cde/lib/DtSvc/DtUtil1/Saver.c
b/cde/lib/DtSvc/DtUtil1/Saver.c
index 5e7db00ebea7bb297d6b2c0f4a00390e794e8dc3..147ba0c42b0a8b40dc6dd9a8057e6661e6a8dfe8 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/Saver.c
+++ b/
cde/lib/DtSvc/DtUtil1/Saver.c
@@
-54,6
+54,7
@@
#include <X11/Intrinsic.h>
#include <Saver.h>
#include <SaverP.h>
#include <X11/Intrinsic.h>
#include <Saver.h>
#include <SaverP.h>
+#include <Dt/Action.h>
#include "DtSvcLock.h"
/*
#include "DtSvcLock.h"
/*
@@
-223,8
+224,8
@@
_DtSaverStart(
/*
* Launch saver.
*/
/*
* Launch saver.
*/
- DtActionInvoke(wAction, saverAction, NULL,
NULL
,
- NULL, NULL, NULL,
NULL
, NULL, NULL);
+ DtActionInvoke(wAction, saverAction, NULL,
0
,
+ NULL, NULL, NULL,
0
, NULL, NULL);
/*
* Return array as state information.
/*
* Return array as state information.
diff --git
a/cde/lib/DtSvc/DtUtil1/WmMarquee.c
b/cde/lib/DtSvc/DtUtil1/WmMarquee.c
index 3475140955ead12486b4c26591256ceed64c39ff..bf7e16084c31a4ba98e6eb5714a985d20dacd840 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/WmMarquee.c
+++ b/
cde/lib/DtSvc/DtUtil1/WmMarquee.c
@@
-44,6
+44,7
@@
#include <Tt/tttk.h>
#include <Dt/Wsm.h>
#include <Dt/WsmM.h>
#include <Tt/tttk.h>
#include <Dt/Wsm.h>
#include <Dt/WsmM.h>
+#include <Dt/SvcTT.h>
#include "WsmP.h"
#include <Dt/Service.h>
#include <Xm/Xm.h>
#include "WsmP.h"
#include <Dt/Service.h>
#include <Xm/Xm.h>
diff --git
a/cde/lib/DtSvc/DtUtil1/WmWsCallB.c
b/cde/lib/DtSvc/DtUtil1/WmWsCallB.c
index 91f12dfd9c083fd3198a2bfdd5733ad130820500..f094a639c8a41b50b2038b96084d25d8e1a745b4 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/WmWsCallB.c
+++ b/
cde/lib/DtSvc/DtUtil1/WmWsCallB.c
@@
-42,6
+42,7
@@
#include <Dt/Service.h>
#include <Dt/Wsm.h>
#include <Dt/WsmM.h>
#include <Dt/Service.h>
#include <Dt/Wsm.h>
#include <Dt/WsmM.h>
+#include <Dt/SvcTT.h>
#include "WsmP.h"
#include "DtSvcLock.h"
#include "WsmP.h"
#include "DtSvcLock.h"
diff --git
a/cde/lib/DtSvc/DtUtil1/inttab.c
b/cde/lib/DtSvc/DtUtil1/inttab.c
index bc1de38a3cbdce096b4c6c1df7cd0427dc3ec785..ab1296acb2391518b6fa55a83b19f6d2ad80ae49 100644
(file)
--- a/
cde/lib/DtSvc/DtUtil1/inttab.c
+++ b/
cde/lib/DtSvc/DtUtil1/inttab.c
@@
-99,7
+99,8
@@
_DtShmProtoInitInttab(int sizeguess)
return((void*)ptr);
}
return((void*)ptr);
}
-_DtShmProtoAddInttab(DtShmProtoInttab intlist, unsigned int keyin, int datain)
+int _DtShmProtoAddInttab(DtShmProtoInttab intlist, unsigned int keyin,
+ int datain)
{
intlist_t * ptr = (intlist_t *) intlist;
int ** data;
{
intlist_t * ptr = (intlist_t *) intlist;
int ** data;