169 lines
3.7 KiB
C
Executable File
169 lines
3.7 KiB
C
Executable File
#ifndef h_portstat
|
|
#define h_portstat
|
|
/******************************************************************************
|
|
*
|
|
* Declarations for uv port status functions
|
|
*
|
|
* Module %M% Version %I% Date %H%
|
|
*
|
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
|
* This is unpublished proprietary source code of Ardent Software Inc.
|
|
* The copyright notice above does not evidence any actual or intented
|
|
* publication of such source code.
|
|
*
|
|
*******************************************************************************
|
|
*
|
|
* Maintenence log - insert most recent change descriptions at top
|
|
*
|
|
* Date.... GTAR# WHO Description.........................................
|
|
* 03/26/99 24755 RGA Change glockent group to DBDADDR.
|
|
* 10/14/98 23801 SAP Change copyrights.
|
|
* 06/01/95 16558 PVW Add DLReadLock
|
|
* 08/17/94 14675 PVW Add locktype to Glocklog
|
|
* 08/10/93 11931 ENF Reduce OCONMAX to 15 from 18
|
|
* 08/05/93 11931 ENF Add definitions for ODBC.CONNECTIONS in port.status
|
|
* 03/21/91 8802 JKW readl defines
|
|
* 05/10/90 5192 JWT New pstat interface
|
|
* 05/09/90 5192 JWT New pstat interface
|
|
* 05/04/90 5192 JWT New pstat interface
|
|
* 07/25/88 - - Maintenence log purged at 5.2.1, see release 5.1.10.
|
|
*
|
|
*****************************************************************************/
|
|
#include "disk.h"
|
|
|
|
#define Pstatmax 10
|
|
#define PSfmapmax 14
|
|
#define Plstkmax 25
|
|
#define PSmlogmax 85
|
|
#define Pstatsiz 1024 /* structures added to PSdata are NOT */
|
|
/* to exceed this size limit */
|
|
#define ODSMAX 32
|
|
#define ODBMSMAX 16
|
|
#define OCONMAX 15
|
|
|
|
struct mfactlog
|
|
{ int action,
|
|
caller,
|
|
filenum;
|
|
};
|
|
|
|
struct MFlog
|
|
{ struct mfactlog mfactlist[PSmlogmax];
|
|
};
|
|
|
|
struct glockent { int action,
|
|
dbcode,
|
|
filenum;
|
|
DBDADDR group;
|
|
uUVLONG locktype;
|
|
};
|
|
|
|
#define GLOGLIM 50
|
|
#define GLfsemp 1
|
|
#define GLfsemv 2
|
|
#define GLrsemp 3
|
|
#define GLrsemv 4
|
|
#define GLwsemp 5
|
|
#define GLwsemu 6
|
|
#define GLwsemv 7
|
|
|
|
#define DLread 1
|
|
#define DLwrite 2
|
|
#define DLdelete 3
|
|
#define DLselect 4
|
|
#define DLclear 5
|
|
#define DLprobe 6
|
|
#define DLclose 7
|
|
#define DLReadLock 8
|
|
|
|
#define MLOFFSET 9
|
|
#define MLMFopen 1
|
|
#define MLclose 2
|
|
#define MLfree 3
|
|
#define MLcheck 4
|
|
#define MLdel 5
|
|
#define MLadd 6
|
|
#define MLpipe 7
|
|
#define MLopen 8
|
|
#define MLfopen 9
|
|
#define MLdup 10
|
|
#define MLopendir 11
|
|
#define MLcreat 12
|
|
|
|
struct DSlog
|
|
{ struct glockent glocklog[GLOGLIM];
|
|
};
|
|
|
|
struct Pstatdata { char progname[SYMsiz];
|
|
int offset;
|
|
long timestamp;
|
|
};
|
|
|
|
struct RRpstat { int count;
|
|
struct Pstatdata data[Pstatmax];
|
|
};
|
|
|
|
struct Pslayer { char progname[SYMsiz];
|
|
int offset;
|
|
int ltype;
|
|
};
|
|
|
|
struct Lstack { int count;
|
|
struct Pslayer data[Plstkmax];
|
|
};
|
|
|
|
struct Player { int ltype;
|
|
int offset;
|
|
char progname[SYMsiz];
|
|
char command[256];
|
|
};
|
|
|
|
struct FDfile { int fnum;
|
|
int uchan;
|
|
char fname[64];
|
|
};
|
|
|
|
struct FDmap { int count;
|
|
struct FDfile data[PSfmapmax];
|
|
};
|
|
|
|
struct cnct {
|
|
char datasrc[ODSMAX];
|
|
char dbmsname[ODBMSMAX];
|
|
char node[ODBMSMAX];
|
|
};
|
|
|
|
struct ODBCInfo { int numconnects;
|
|
struct cnct connects[OCONMAX];
|
|
};
|
|
|
|
union PSdata { struct RRpstat RRdata;
|
|
struct MFlog MFdata;
|
|
struct Player Ptop;
|
|
struct FDmap FDdata;
|
|
struct Lstack LSdata;
|
|
struct DSlog DSdata;
|
|
struct ODBCInfo ODBCdata;
|
|
char PSmaxdata[Pstatsiz];
|
|
};
|
|
|
|
struct Pstat { int active,
|
|
ready,
|
|
pid,
|
|
signa,
|
|
lineno,
|
|
type;
|
|
char terminal[16];
|
|
union PSdata data;
|
|
};
|
|
|
|
#define PSlayer 1
|
|
#define PSrrpstat 2
|
|
#define PSfilemap 3
|
|
#define PSmflog 4
|
|
#define PSuvstack 5
|
|
#define PSsemlog 6
|
|
#define PSodbc 7
|
|
|
|
#endif /* end of portstat.h */
|