The great includes migration of 2019 (autotools)
Ok - so one of the steps in building CDE is an early phase called the includes phase (make includes). At this point, all of the public header files are exported to exports/include/Dt, DtI, ... Then, the software is built using that include dir. This of course does not work in autotools. Much of the software does things like #include <Dt/something.h>, so in order for the build to succeed, this behavior must be represented/replicated in some way. It seems the usual way of dealing with this is to place all public headers (and in some projects, ALL headers) into a toplevel include directory. We now do this for all public headers - they have been moved from wherever they were and placed in the appropriate spot in includes/ This will break the Imake 'make includes' phase unless the Imakefiles are fixed (remove the HEADERS = stuff, and the incdir defines). This has not been done at this point since in reality, once autotools works properly, there will be no need for the Imake stuff anymore, and I intend to get rid of it. This is just a warning for now - Imake builds in this tree will now fail at the 'includes' stage. This commit is only the migration. In upcoming commits, libtt will be fixed so that the hack being used before to get around this problem is removed as there will no longer be any need. And then the autotools work continues...
This commit is contained in:
@@ -1,194 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: dblock.h /main/2 1996/05/09 04:02:57 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: FCNINIT
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
368 28-Jul-88 RSC Integrate BSD changes into code
|
||||
115 16-Aug-88 RSC Integrate VAX/VMS changes into source code
|
||||
423 09-Sep-88 RSC Change variables to be compatible with MULTI_TASK
|
||||
420 07-Oct-88 RSC Unoptimized use of fl_list (full of bugs)
|
||||
441 09-Dec-88 RSC Modified defn of FCNPID for general lockmgr
|
||||
*/
|
||||
|
||||
/* Lock Manager/Runtime function interaction */
|
||||
|
||||
/* Network Bios Status codes */
|
||||
#define N_BUSY 0xff
|
||||
#define N_OKAY 0x00
|
||||
#define N_TIMEOUT 0x05
|
||||
#define N_SESCLOSED 0x0a
|
||||
#define N_DUPNAME 0x0d
|
||||
#define N_TABFULL 0x11
|
||||
#define N_OPENREJ 0x12
|
||||
#define N_CALLNAME 0x14
|
||||
#define N_NAMEUSED 0x16
|
||||
#define N_NAMEDEL 0x17
|
||||
#define N_SESABORT 0x18
|
||||
#define N_INTFBUSY 0x21
|
||||
#define N_COMMANDS 0x22
|
||||
|
||||
/* Function/Status codes */
|
||||
#define L_RECOVER -5
|
||||
#define L_QUEUEFULL -4
|
||||
#define L_TIMEOUT -3
|
||||
#define L_UNAVAIL -2
|
||||
#define L_SYSERR -1
|
||||
|
||||
#define L_OKAY 0
|
||||
|
||||
#define L_DBOPEN 1
|
||||
#define L_DBCLOSE 2
|
||||
#define L_LOCK 3
|
||||
#define L_FREE 4
|
||||
#define L_TRCOMMIT 5
|
||||
#define L_TREND 6
|
||||
#define L_SETTIME 7
|
||||
#define L_RECDONE 8
|
||||
#define L_LOGIN 9
|
||||
#define L_DELETE 10
|
||||
|
||||
#ifndef LOGFILELEN
|
||||
#define LOGFILELEN 48
|
||||
#endif
|
||||
|
||||
/* Macros for VMS mailbox usage */
|
||||
|
||||
|
||||
typedef struct LM_LOCKREQ_S {
|
||||
INT fref;
|
||||
INT type;
|
||||
} LM_LOCKREQ;
|
||||
|
||||
/* Message packets, Runtime to Lock Manager */
|
||||
|
||||
/* Some macro / typdefs to make this file much more readable */
|
||||
|
||||
#define PERMISSION 0666
|
||||
|
||||
#ifdef GENERAL
|
||||
|
||||
/* Defines for GENERAL LOCKMGR */
|
||||
|
||||
#define FCNPID INT fcn;
|
||||
#define FCNDEF INT fcn;
|
||||
#define FCNINIT() 0
|
||||
typedef char LM_FILEID;
|
||||
|
||||
#else /* GENERAL */
|
||||
|
||||
|
||||
/* Defines for UNIX SYS-V */
|
||||
|
||||
#define FCNPID LONG fcn;\
|
||||
int pid;
|
||||
#define FCNDEF LONG fcn;
|
||||
#define FCNINIT() 0
|
||||
|
||||
/* Defines for both UNIX SYS-V and BSD */
|
||||
|
||||
typedef struct LM_FILEID_S {
|
||||
ino_t inode;
|
||||
dev_t device;
|
||||
} LM_FILEID;
|
||||
|
||||
#endif /* GENERAL */
|
||||
|
||||
typedef struct LM_LOGIN_S {
|
||||
FCNPID
|
||||
char dbusrid[80];
|
||||
} LM_LOGIN;
|
||||
|
||||
typedef struct LM_DBOPEN_S {
|
||||
FCNPID
|
||||
INT nfiles;
|
||||
INT type;
|
||||
LM_FILEID fnames[1];
|
||||
} LM_DBOPEN;
|
||||
|
||||
typedef struct LM_DBCLOSE_S {
|
||||
FCNPID
|
||||
INT nfiles;
|
||||
INT frefs[1];
|
||||
} LM_DBCLOSE;
|
||||
|
||||
typedef struct LM_LOCK_S {
|
||||
FCNPID
|
||||
INT nfiles;
|
||||
LM_LOCKREQ locks[1];
|
||||
} LM_LOCK;
|
||||
|
||||
typedef struct LM_RECOVERED_S {
|
||||
FCNPID
|
||||
} LM_RECOVERED;
|
||||
|
||||
typedef struct LM_FREE_S {
|
||||
FCNPID
|
||||
INT nfiles;
|
||||
INT frefs[1];
|
||||
} LM_FREE;
|
||||
|
||||
typedef struct LM_TRCOMMIT_S {
|
||||
FCNPID
|
||||
char logfile[LOGFILELEN];
|
||||
} LM_TRCOMMIT;
|
||||
|
||||
typedef struct LM_TREND_S {
|
||||
FCNPID
|
||||
} LM_TREND;
|
||||
|
||||
typedef struct LM_SETTIME_S {
|
||||
FCNPID
|
||||
INT secs;
|
||||
} LM_SETTIME;
|
||||
|
||||
|
||||
/* Message packets, Lock Manager to Runtime */
|
||||
|
||||
|
||||
typedef struct LR_DBOPEN_S {
|
||||
FCNDEF
|
||||
INT status;
|
||||
char logfile[LOGFILELEN];
|
||||
INT nusers;
|
||||
INT nfiles;
|
||||
INT frefs[1];
|
||||
} LR_DBOPEN;
|
||||
|
||||
typedef struct LR_LOCK_S {
|
||||
FCNDEF
|
||||
INT status;
|
||||
char logfile[LOGFILELEN];
|
||||
} LR_LOCK;
|
||||
|
||||
#define DBLOCK_H
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dblock.h */
|
||||
@@ -1,534 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: ALLOC
|
||||
* BITS
|
||||
* CALLOC
|
||||
* DB_ENTER
|
||||
* DB_REF
|
||||
* FREE
|
||||
* LOCK_SET
|
||||
* MEM_LOCK
|
||||
* MEM_UNLOCK
|
||||
* NUM2EXT
|
||||
* NUM2INT
|
||||
* ORIGIN
|
||||
* RETURN
|
||||
* RN_REF
|
||||
* TABLE_SIZE
|
||||
* arraysize
|
||||
* bytecmp
|
||||
* bytecpy
|
||||
* byteset
|
||||
*
|
||||
* ORIGINS: 27,157
|
||||
*
|
||||
* (C) COPYRIGHT International Business Machines Corp. 1995, 1996
|
||||
* All Rights Reserved
|
||||
* US Government Users Restricted Rights - Use, duplication or
|
||||
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
$TOG: dbtype.h /main/6 1998/03/19 19:00:38 mgreess $
|
||||
dbtype.h: Standard db_VISTA header file containing:
|
||||
|
||||
- DDL dictionary type definitions
|
||||
- Machine dependent constant definitions
|
||||
- Miscellaneous constants used by runtime functions
|
||||
- Virtual memory page table type definitions
|
||||
|
||||
(An #include "vista.h" must precede this include)
|
||||
|
||||
(C) Copyright 1984, 1985, 1986 by Raima Corporation.
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
101 21-Jun-88 RSC Added rn_type and rn_dba to database table
|
||||
344 06-Jul-88 RSC LOGFILELEN also defined in dblock.h - add ifndef
|
||||
115 18-Jul-88 RSC Integrate VAX VMS changes
|
||||
21-Jul-88 RSC Fix bugaboo in VAX integration
|
||||
368 28-Jul-88 RSC Integrate BSD changes into code
|
||||
310 10-Aug-88 RSC Cleanup function prototype
|
||||
19-Aug-88 RSC Moved rn_type,rn_dba to separate table for compatibility
|
||||
with db_QUERY and db_REVISE
|
||||
423 10-Sep-88 RSC Add dbpush names for netunix.c
|
||||
423 22-Sep-88 RSC Modify/simplify DB_ENTER macro for Lattice compiler
|
||||
368 23-Sep-88 RSC Change type of pid from INT to int and
|
||||
corrected defn of MESSAGE
|
||||
423 26-Sep-88 RSC Moved INIT_PAGE_P defn to initial.c
|
||||
11-Oct-88 RSC Fix for ONE_DB compile
|
||||
441 06-Dec-88 RSC Move defn of MESSAGE from netgen.h to here
|
||||
532 06-Jan-89 RSC Fixed defn of DB_ID for ONE_DB
|
||||
|
||||
$Log$
|
||||
* Revision 1.2 1995/10/13 18:29:38 miker
|
||||
* Added #define DtSrFILENMLEN to expand max filename len.
|
||||
* Changed FILENMLEN from 48 to DtSrFILENMLEN (240: 256 - 16).
|
||||
*/
|
||||
|
||||
/* Compiler dependencies are handled with ifdef macros:
|
||||
NOTE: One of these macros should be defined on the compile command,
|
||||
for example
|
||||
cc -c -DUNIX fillnew.c
|
||||
Failure to do so will produce compilation errors.
|
||||
|
||||
UNIX = Unix C compiler
|
||||
LAT = Lattice
|
||||
MSC = Microsoft
|
||||
AZ = Aztec
|
||||
C86 = CI C86
|
||||
DS = DeSmet
|
||||
VMS = Vax/VMS
|
||||
HHS = Harris H-series
|
||||
*/
|
||||
|
||||
|
||||
#define PGHOLD 1
|
||||
#define NOPGHOLD 0
|
||||
#define PGFREE 1
|
||||
#define NOPGFREE 0
|
||||
|
||||
#define KEYFIND 0
|
||||
#define KEYNEXT 1
|
||||
#define KEYPREV 2
|
||||
#define KEYFRST 3
|
||||
#define KEYLAST 4
|
||||
|
||||
/* dictionary attribute flags */
|
||||
#define SORTFLD 0x0001 /* field is a set sort field */
|
||||
#define STRUCTFLD 0x0002 /* field is sub-field of struct */
|
||||
#define UNSIGNEDFLD 0x0004 /* field is unsigned */
|
||||
#define STATIC 0x0002 /* file/record is static */
|
||||
#define LOCAL 0x0004 /* file/record is local */
|
||||
#define COMKEYED 0x0010 /* record/field contains/included in compound key */
|
||||
#define TIMESTAMPED 0x0001 /* record/set is timestamped */
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#define YES 1
|
||||
#define NO 0
|
||||
|
||||
#define BITS_PER_BYTE 8
|
||||
|
||||
/* Number of bits in a "type" */
|
||||
#define BITS( type ) (BITS_PER_BYTE * sizeof( type ))
|
||||
|
||||
/* Number of elements in a vector */
|
||||
#define arraysize(v) (sizeof(v)/sizeof(*(v)))
|
||||
|
||||
/* Number of bytes in a disk block */
|
||||
#define D_BLKSZ 512
|
||||
|
||||
#define DBD_COMPAT_LEN 6
|
||||
#define INT_SIZE sizeof(int)
|
||||
#define SHORT_SIZE sizeof(short)
|
||||
#define LONG_SIZE sizeof(long)
|
||||
#ifndef NO_FLOAT
|
||||
#define FLOAT_SIZE sizeof(float)
|
||||
#define DOUBLE_SIZE sizeof(double)
|
||||
#endif
|
||||
#define CHAR_SIZE sizeof(char)
|
||||
#define DB_ADDR_SIZE sizeof(LONG)
|
||||
#define PGHDRSIZE 4
|
||||
#define CTBNAME "vista.ctb"
|
||||
|
||||
#define RECHDRSIZE 6
|
||||
#define NONE -1
|
||||
|
||||
/* FILEMASK, ADDRMASK, FILESHIFT always operate on 4-byte variables */
|
||||
#define FILEMASK 0x000000FF
|
||||
#define ADDRMASK 0x00FFFFFF
|
||||
#define FILESHIFT 24
|
||||
|
||||
#define OPTKEYSHIFT 10
|
||||
#define OPTKEYMASK 0xFC00
|
||||
#define OPTKEYNDX 0x003F
|
||||
#define OPTKEY_LIMIT 63
|
||||
#define RLBMASK 0x4000
|
||||
|
||||
/* The following constants all depend on the size of INT and DB_ADDR */
|
||||
|
||||
/* creation timestamp in rec hdr = sizeof(INT) + DB_ADDR_SIZE */
|
||||
#define RECCRTIME 6
|
||||
/* update timestamp in rec hdr = RECCRTIME + sizeof(LONG) */
|
||||
#define RECUPTIME 10
|
||||
|
||||
/* member count prior + next timestamp (opt) */
|
||||
/* max size of set pointer = sizeof(LONG) + 2*DB_ADDR_SIZE + sizeof(ULONG) */
|
||||
#define SETPSIZE 16
|
||||
/* Offset to total members in set ptr */
|
||||
#define SP_MEMBERS 0
|
||||
/* Offset to first member ptr in set ptr */
|
||||
#define SP_FIRST 4
|
||||
/* Offset to last member ptr in set ptr = 2+DB_ADDR_SIZE */
|
||||
#define SP_LAST 8
|
||||
/* Size of member pointer = 3*DB_ADDR_SIZE */
|
||||
#define MEMPSIZE 12
|
||||
/* Offset to owner ptr in member ptr */
|
||||
#define MP_OWNER 0
|
||||
/* Offset to previous member ptr in member ptr = DB_ADDR_SIZE */
|
||||
#define MP_PREV 4
|
||||
/* Offset to next member ptr in member ptr = 2*DB_ADDR_SIZE */
|
||||
#define MP_NEXT 8
|
||||
|
||||
/* maximum length of a database file name */
|
||||
#define DtSrFILENMLEN 240 /* expand max filename len from 48 */
|
||||
#ifndef FILENMLEN
|
||||
#define FILENMLEN DtSrFILENMLEN
|
||||
#endif
|
||||
#ifndef LOGFILELEN
|
||||
#define LOGFILELEN 48
|
||||
#endif
|
||||
/* maximum length of a database name */
|
||||
#define DBNMLEN 12
|
||||
/* maximum length of a database path */
|
||||
#define PATHLEN FILENMLEN-15
|
||||
|
||||
#define MAXDIMS 3
|
||||
|
||||
#define OPEN 'o'
|
||||
#define CLOSED 'c'
|
||||
#define DATA 'd'
|
||||
#define KEY 'k'
|
||||
#define OVERFLOW 'o'
|
||||
|
||||
typedef struct FILE_ENTRY_S {
|
||||
char ft_name[FILENMLEN]; /* name of file */
|
||||
INT ft_desc; /* file descriptor */
|
||||
char ft_status; /* 'o'=opened, 'c'=closed */
|
||||
char ft_type; /* 'd'=data, 'k'=key, 'o'=overflow */
|
||||
INT ft_slots; /* record slots per page */
|
||||
INT ft_slsize; /* size of record slots in bytes */
|
||||
INT ft_pgsize; /* size of page */
|
||||
INT ft_flags; /* 0x0002 is set if file is static */
|
||||
} FILE_ENTRY;
|
||||
|
||||
typedef struct RECORD_ENTRY_S {
|
||||
INT rt_file; /* file table entry of file containing record */
|
||||
INT rt_len; /* total length of record */
|
||||
INT rt_data; /* offset to start of data in record */
|
||||
INT rt_fields; /* first field def in field_table */
|
||||
INT rt_fdtot; /* total number of fields in record */
|
||||
INT rt_flags; /* 0x0001 is set if record is timestamped
|
||||
0x0002 is set if record is static */
|
||||
} RECORD_ENTRY;
|
||||
|
||||
|
||||
#define FIRST 'f'
|
||||
#define LAST 'l'
|
||||
#define ASCENDING 'a'
|
||||
#define DESCENDING 'd'
|
||||
#define NOORDER 'n'
|
||||
#define NEXT 'n'
|
||||
typedef struct SET_ENTRY_S {
|
||||
INT st_order; /* 'f'=first, 'l'=last, 'a'=ascending,
|
||||
'd'=descending, 'n'=no order */
|
||||
INT st_own_rt; /* record table entry of owner */
|
||||
INT st_own_ptr; /* offset to set pointers in record */
|
||||
INT st_members; /* index of first member record in member table */
|
||||
INT st_memtot; /* total number of members of set */
|
||||
INT st_flags; /* 0x0001 is set if record is timestamped */
|
||||
} SET_ENTRY;
|
||||
|
||||
|
||||
typedef struct MEMBER_ENTRY_S {
|
||||
INT mt_record; /* record table entry for this member */
|
||||
INT mt_mem_ptr; /* offset to member ptrs in record */
|
||||
INT mt_sort_fld; /* sort table entry of first sort field */
|
||||
INT mt_totsf; /* total number of sort fields */
|
||||
} MEMBER_ENTRY;
|
||||
|
||||
|
||||
typedef struct SORT_ENTRY_S {
|
||||
INT se_fld; /* field table entry of sort field */
|
||||
INT se_set; /* set table entry of sorted set */
|
||||
} SORT_ENTRY;
|
||||
|
||||
|
||||
#define NOKEY 'n'
|
||||
#define DUPLICATES 'd'
|
||||
#define UNIQUE 'u'
|
||||
#define CHARACTER 'c'
|
||||
#define SHORTINT 's'
|
||||
#define REGINT 'i'
|
||||
#define LONGINT 'l'
|
||||
#ifndef NO_FLOAT
|
||||
#define FLOAT 'f'
|
||||
#define DOUBLE 'F'
|
||||
#endif
|
||||
#define DBADDR 'd'
|
||||
#define GROUPED 'g'
|
||||
#define COMKEY 'k'
|
||||
typedef struct FIELD_ENTRY_S {
|
||||
char fd_key; /* 'n'=none, 'd'=duplicates, 'u'=unique */
|
||||
char fd_type; /* 'c'=char, 's'=short, 'i'=int, 'l'=long, 'd'=DB_ADDR,
|
||||
'f' = float, 'D' = double, 'g'=grouped field,
|
||||
'k' = compound key */
|
||||
INT fd_len; /* length of field in bytes */
|
||||
INT fd_dim[MAXDIMS]; /* size of each array dimension */
|
||||
INT fd_keyfile; /* file_table entry for key file */
|
||||
INT fd_keyno; /* key prefix number */
|
||||
INT fd_ptr; /* offset to field in record or
|
||||
1st compound key field in key_table */
|
||||
INT fd_rec; /* record table entry of record containing field */
|
||||
INT fd_flags; /* 0x0001 is set if field in "by" clause of set spec
|
||||
0x0002 is set if field member of struct field
|
||||
0x0004 is set if field is unsigned data type
|
||||
0x0008 is set if field is an optional key */
|
||||
} FIELD_ENTRY;
|
||||
|
||||
/* compound key table entry declaration */
|
||||
typedef struct KEY_ENTRY_S {
|
||||
INT kt_key; /* compound key field number */
|
||||
INT kt_field; /* field number of included field */
|
||||
INT kt_ptr; /* offset to start of field data in key */
|
||||
INT kt_sort; /* 'a' = ascending, 'd' = descending */
|
||||
} KEY_ENTRY;
|
||||
|
||||
/* database table entry declaration */
|
||||
typedef struct DB_ENTRY_S {
|
||||
char db_name[DBNMLEN]; /* name of this database */
|
||||
char db_path[PATHLEN]; /* name of path to this database */
|
||||
DB_ADDR sysdba; /* database address of system record */
|
||||
DB_ADDR curr_dbt_rec;/* this db's current record */
|
||||
INT Page_size; /* size of this db's page */
|
||||
INT Size_ft; /* size of this db's file_table */
|
||||
INT ft_offset; /* offset to start of this db's file_table entries */
|
||||
INT Size_rt; /* size of this db's record_table */
|
||||
INT rt_offset; /* offset to start of this db's record_table entries */
|
||||
INT Size_fd; /* size of this db's field_table */
|
||||
INT fd_offset; /* offset to start of this db's field_table entries */
|
||||
INT Size_st; /* size of this db's set_table */
|
||||
INT st_offset; /* offset to start of this db's set_table entries */
|
||||
INT Size_mt; /* size of this db's member_table */
|
||||
INT mt_offset; /* offset to start of this db's member_table entries */
|
||||
INT Size_srt; /* size of this db's sort_table */
|
||||
INT srt_offset; /* offset to start of this db's sort_table entries */
|
||||
INT Size_kt; /* size of this db's key_table */
|
||||
INT kt_offset; /* offset to strary of this db's key table entries */
|
||||
INT key_offset; /* key prefix offset for this db */
|
||||
} DB_ENTRY;
|
||||
|
||||
/* Structure containing current record type & address for recfrst/set/next..*/
|
||||
typedef struct RN_ENTRY_S {
|
||||
INT rn_type; /* Last record type supplied to recfrst/recset */
|
||||
DB_ADDR rn_dba; /* Last db addr computed by recfrst/recset/recnext */
|
||||
} RN_ENTRY;
|
||||
#define DB_REF(item) (db_global.Curr_db_table->item)
|
||||
#define RN_REF(item) (curr_rn_table->item)
|
||||
#define NUM2INT(num, offset) ((num) + db_global.Curr_db_table->offset)
|
||||
#define NUM2EXT(num, offset) ((num) - db_global.Curr_db_table->offset)
|
||||
#define ORIGIN(offset) (curr_db_table->offset)
|
||||
#define TABLE_SIZE(size) DB_REF(size)
|
||||
|
||||
/* Country code table definition */
|
||||
typedef struct CNTRY_TBL_S {
|
||||
unsigned char out_chr;
|
||||
unsigned char sort_as1;
|
||||
unsigned char sort_as2;
|
||||
unsigned char sub_sort;
|
||||
} CNTRY_TBL;
|
||||
|
||||
/* names lists structure declaration */
|
||||
typedef struct OBJNAMES_S {
|
||||
char **recs;
|
||||
char **flds;
|
||||
char **sets;
|
||||
} OBJNAMES;
|
||||
|
||||
|
||||
/* directory separator character:
|
||||
MS-DOS: '\'
|
||||
UNIX: '/'
|
||||
*/
|
||||
#ifdef HHS
|
||||
#define DIRCHAR '*'
|
||||
#else
|
||||
#define DIRCHAR '/'
|
||||
#endif
|
||||
|
||||
/* The following define aid in the use of a set of routines which use RMS
|
||||
directly to do the i/o to database files. */
|
||||
|
||||
#define DB_OPEN open_b
|
||||
#define DB_CLOSE close
|
||||
#define DB_LSEEK lseek
|
||||
#define DB_WRITE write
|
||||
#define DB_READ read
|
||||
|
||||
typedef struct {FILE_NO *ptr; LOCK_DESC} FILE_NO_P;
|
||||
typedef struct {int *ptr; LOCK_DESC} INT_P;
|
||||
typedef struct {struct NODE_PATH_S *ptr; LOCK_DESC} NODE_PATH_P;
|
||||
typedef struct {struct KEY_INFO_S *ptr; LOCK_DESC} KEY_INFO_P;
|
||||
typedef struct {struct ren_entry *ptr; LOCK_DESC} REN_ENTRY_P;
|
||||
typedef struct {struct RN_ENTRY_S *ptr; LOCK_DESC} RN_ENTRY_P;
|
||||
typedef struct {struct LOOKUP_ENTRY_S *ptr; LOCK_DESC} LOOKUP_ENTRY_P;
|
||||
typedef struct {struct page_entry *ptr; LOCK_DESC} PAGE_ENTRY_P;
|
||||
typedef struct {struct DB_ENTRY_S *ptr; LOCK_DESC} DB_ENTRY_P;
|
||||
typedef struct {struct FILE_ENTRY_S *ptr; LOCK_DESC} FILE_ENTRY_P;
|
||||
typedef struct {struct RECORD_ENTRY_S *ptr; LOCK_DESC} RECORD_ENTRY_P;
|
||||
typedef struct {struct SET_ENTRY_S *ptr; LOCK_DESC} SET_ENTRY_P;
|
||||
typedef struct {struct MEMBER_ENTRY_S *ptr; LOCK_DESC} MEMBER_ENTRY_P;
|
||||
typedef struct {struct SORT_ENTRY_S *ptr; LOCK_DESC} SORT_ENTRY_P;
|
||||
typedef struct {struct FIELD_ENTRY_S *ptr; LOCK_DESC} FIELD_ENTRY_P;
|
||||
typedef struct {struct KEY_ENTRY_S *ptr; LOCK_DESC} KEY_ENTRY_P;
|
||||
typedef struct {struct PGZERO_S *ptr; LOCK_DESC} PGZERO_P;
|
||||
typedef struct {struct RI_ENTRY_S *ptr; LOCK_DESC} RI_ENTRY_P;
|
||||
typedef struct {ULONG *ptr; LOCK_DESC} ULONG_P;
|
||||
typedef struct {LONG *ptr; LOCK_DESC} LONG_P;
|
||||
typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P;
|
||||
struct sk {
|
||||
INT sk_fld;
|
||||
CHAR_P sk_val;
|
||||
} __SK__;
|
||||
typedef struct { struct sk *ptr; LOCK_DESC } SK_P;
|
||||
|
||||
/* node key search path stack entry: one per level per key field */
|
||||
typedef struct NODE_PATH_S {
|
||||
F_ADDR node; /* node (page) number */
|
||||
INT slot; /* slot number of key */
|
||||
} NODE_PATH;
|
||||
|
||||
/* index key information: one entry per key field */
|
||||
typedef struct KEY_INFO_S {
|
||||
NODE_PATH_P Node_path; /* stack of node #s in search path */
|
||||
INT level; /* current level # in node path */
|
||||
INT max_lvls; /* maximum possible levels for key */
|
||||
INT lstat; /* last key function status */
|
||||
INT fldno; /* field number of key */
|
||||
FILE_NO keyfile; /* key file containing this key */
|
||||
CHAR_P Keyval; /* ptr to last key value */
|
||||
DB_ADDR dba; /* db address of last key */
|
||||
} KEY_INFO;
|
||||
#define node_path Node_path.ptr
|
||||
#define keyval Keyval.ptr
|
||||
|
||||
/* key slot structure */
|
||||
typedef struct key_slot {
|
||||
F_ADDR child; /* child node pointer */
|
||||
INT keyno; /* key number */
|
||||
char data[1]; /* start of key data */
|
||||
} KEY_SLOT;
|
||||
|
||||
typedef union key_type {
|
||||
char kd[256];
|
||||
struct key_slot ks;
|
||||
} KEY_TYPE;
|
||||
|
||||
/* file rename table entry declarations */
|
||||
typedef struct ren_entry {
|
||||
CHAR_P Ren_db_name;
|
||||
CHAR_P File_name;
|
||||
FILE_NO file_no;
|
||||
} REN_ENTRY;
|
||||
|
||||
#define bytecpy(s1, s2, n) memcpy((char *)(s1), (char *)(s2), (unsigned)(n))
|
||||
#define bytecmp(s1, s2, n) memcmp((char *)(s1), (char *)(s2), (unsigned)(n))
|
||||
#define byteset(s, c, n) memset((char *)(s), (char)(c), (unsigned)(n))
|
||||
|
||||
typedef struct MESSAGE_S {
|
||||
#ifdef GENERAL
|
||||
INT mtype;
|
||||
char mtext[1];
|
||||
#else /* GENERAL */
|
||||
LONG mtype;
|
||||
int pid;
|
||||
char mtext[1];
|
||||
#endif /* GENERAL */
|
||||
} MESSAGE;
|
||||
|
||||
#ifdef COMMA /* COMMA */
|
||||
#define DB_ID , dbn
|
||||
#define NO_DB_ID , -1
|
||||
#else /* COMMA */
|
||||
#define DB_ID dbn
|
||||
#define NO_DB_ID -1
|
||||
#define COMMA
|
||||
#endif /* COMMA */
|
||||
|
||||
#define TASK_ID /**/
|
||||
|
||||
#define LOCK_SET(a) /**/
|
||||
|
||||
#define TDTL_PARAM
|
||||
|
||||
#define DB_ENTER(TDTL_PARAM) if ( startup(TDTL_PARAM) != S_OKAY ) { return( db_status ); } else
|
||||
|
||||
#define RETURN(x) return( x )
|
||||
#define ALLOC(l, b, v) d_alloc(b)
|
||||
#define CALLOC(l, i, s, v) d_calloc(i, s)
|
||||
#define MEM_LOCK(cp) d_memlock((CHAR_P *)(cp))
|
||||
#define MEM_UNLOCK(cp) d_memunlock((CHAR_P *)(cp))
|
||||
#define FREE(cp) d_free((CHAR_P *)(cp))
|
||||
|
||||
/* Lock sets are defined in dblfcns.c */
|
||||
#define LOCK_NONE -1
|
||||
#define LOCK_ALL 0
|
||||
#define LOCK_IO 1
|
||||
#define LOCK_NOIO 2
|
||||
#define RECORD_IO 3
|
||||
#define RECORD_NOIO 4
|
||||
#define SET_IO 5
|
||||
#define SET_NOIO 6
|
||||
|
||||
#ifdef GENERAL
|
||||
#define TIMEOUT_DEF 20
|
||||
#else
|
||||
#define TIMEOUT_DEF 10
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include "trxlog.h"
|
||||
#include "dblock.h"
|
||||
#include "ll.h"
|
||||
#include "dbxtrn.h"
|
||||
|
||||
typedef struct LOOKUP_ENTRY_S {
|
||||
FILE_NO file; /* file table entry number (0..size_ft-1) */
|
||||
F_ADDR pageno; /* database page number */
|
||||
short pg_slot; /* page table slot pointing to this entry */
|
||||
} LOOKUP_ENTRY;
|
||||
|
||||
/* virtual page table entry */
|
||||
typedef struct page_entry {
|
||||
BOOLEAN recently_used; /* LRU flag */
|
||||
BOOLEAN modified; /* TRUE if page has been modified */
|
||||
INT holdcnt; /* "hold-in-cache" counter */
|
||||
short lu_slot; /* lookup table slot pointing to this entry */
|
||||
CHAR_P Buff; /* page buffer pointer */
|
||||
} PAGE_ENTRY;
|
||||
#define buff Buff.ptr
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "proto.h"
|
||||
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dbtype.h */
|
||||
@@ -1,208 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: dbxtrn.h /main/2 1996/05/09 04:04:00 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: none
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
dbxtrn.h: db_VISTA external data header file
|
||||
|
||||
(This file is included by dbtype.h)
|
||||
|
||||
(C) Copyright 1984 by Raima Corporation.
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
423 22-Sep-88 RSC Cleanup file to compile under Lattice
|
||||
368 23-Sep-88 RSC Changed defn of Last_mtype to match dbtype.h
|
||||
439 17-Nov-88 RSC Integrate 3.10 branch (w/o windows) into main
|
||||
440 13-Dec-88 RSC LR_LOCK was removed from db_global for general LM
|
||||
532 06-Jan-89 RSC Fixed defns of rn_dba/type,db_name for ONE_DB
|
||||
05-May-89 WLW Changed TASK_P to DB_TASK for query multi-tasking
|
||||
|
||||
*/
|
||||
|
||||
/* Database Dictionary Tables */
|
||||
extern INT largest_page;
|
||||
|
||||
extern INT old_size_ft;
|
||||
extern INT old_size_fd;
|
||||
extern INT old_size_st;
|
||||
extern INT old_size_mt;
|
||||
extern INT old_size_srt;
|
||||
extern INT old_size_kt;
|
||||
extern INT old_size_rt;
|
||||
extern INT old_no_of_dbs;
|
||||
|
||||
extern char *crloc; /* location in page buffer of current record */
|
||||
|
||||
typedef struct TASK_S {
|
||||
/* The following global variables came from dblfcns.c */
|
||||
int Dbopen; /* dbopen = 0 */
|
||||
char Dbuserid[FILENMLEN]; /* dbuserid = "" */
|
||||
char Dbdpath[FILENMLEN*2]; /* dbdpath = "" */
|
||||
char Dbfpath[FILENMLEN*2]; /* dbdpath = "" */
|
||||
const char *Trans_id; /* trans_id = NULL */
|
||||
char Dblog[FILENMLEN]; /* dblog = "" */
|
||||
/* The following global variables came from dio.c */
|
||||
BOOLEAN Cache_ovfl; /* cache_ovfl = FALSE */
|
||||
PGZERO_P Pgzero; /* database file page 0 array */
|
||||
/* The following global variables came from keyfcns.c */
|
||||
int No_of_keys; /* no_of_keys = 0 */
|
||||
KEY_INFO_P Key_info; /* key_info = NULL */
|
||||
KEY_TYPE Key_type;
|
||||
/* The following global variables came from netwdos.c */
|
||||
int Net_status;
|
||||
LONG Last_mtype;
|
||||
/* The following global variables came from options.c */
|
||||
int Dboptions; /* ifdef NO_TRANS: dboptions =
|
||||
DCHAINUSE | TRLOGGING
|
||||
else: dboptions = DCHAINUSE */
|
||||
/* The following global variables came from ovfcns.c */
|
||||
long Ov_initaddr; /* ov_initaddr = 0L */
|
||||
long Ov_rootaddr; /* ov_rootaddr = 0L */
|
||||
long Ov_nextaddr; /* ov_nextaddr = 0L */
|
||||
RI_ENTRY_P Root_ix;
|
||||
/* The following global variables came from renfiles.c */
|
||||
llist Ren_list; /* Ren_list = LLIST_INIT() */
|
||||
/* The following global variables came from inittab.h */
|
||||
INT Page_size;
|
||||
int Curr_db;
|
||||
DB_ENTRY *Curr_db_table;
|
||||
DB_ADDR Curr_rec; /* current record address */
|
||||
DB_ADDR_P Curr_own; /* current set owners array */
|
||||
DB_ADDR_P Curr_mem; /* current set members array */
|
||||
FILE_NO Ov_file;
|
||||
BOOLEAN Setdb_on;
|
||||
INT No_of_dbs;
|
||||
RN_ENTRY_P Rn_table;
|
||||
RN_ENTRY *Curr_rn_table;
|
||||
DB_ENTRY_P Db_table;
|
||||
FILE_ENTRY_P File_table;
|
||||
INT Size_ft;
|
||||
RECORD_ENTRY_P Record_table;
|
||||
INT Size_rt;
|
||||
SET_ENTRY_P Set_table;
|
||||
INT Size_st;
|
||||
MEMBER_ENTRY_P Member_table;
|
||||
INT Size_mt;
|
||||
SORT_ENTRY_P Sort_table;
|
||||
INT Size_srt;
|
||||
FIELD_ENTRY_P Field_table;
|
||||
INT Size_fd;
|
||||
KEY_ENTRY_P Key_table;
|
||||
INT Size_kt;
|
||||
int Lock_lvl;
|
||||
#define LOCK_STACK_SIZE 10
|
||||
int Lock_stack[LOCK_STACK_SIZE];
|
||||
CNTRY_TBL_P country_tbl;
|
||||
int ctbl_activ;
|
||||
char ctbpath[FILENMLEN];
|
||||
llist Sk_list;
|
||||
} TASK;
|
||||
|
||||
/* Dynamically allocated global variables */
|
||||
#define app_locks db_global.App_locks.ptr
|
||||
#define excl_locks db_global.Excl_locks.ptr
|
||||
#define kept_locks db_global.Kept_locks.ptr
|
||||
#define rec_locks db_global.Rec_locks.ptr
|
||||
#define set_locks db_global.Set_locks.ptr
|
||||
#define key_locks db_global.Key_locks.ptr
|
||||
#define lock_pkt db_global.Lock_pkt.ptr
|
||||
#define free_pkt db_global.Free_pkt.ptr
|
||||
#define file_refs db_global.File_refs.ptr
|
||||
#define key_info db_global.Key_info.ptr
|
||||
#define curr_own db_global.Curr_own.ptr
|
||||
#define curr_mem db_global.Curr_mem.ptr
|
||||
#define rn_table db_global.Rn_table.ptr
|
||||
#define db_table db_global.Db_table.ptr
|
||||
#define file_table db_global.File_table.ptr
|
||||
#define record_table db_global.Record_table.ptr
|
||||
#define set_table db_global.Set_table.ptr
|
||||
#define member_table db_global.Member_table.ptr
|
||||
#define sort_table db_global.Sort_table.ptr
|
||||
#define field_table db_global.Field_table.ptr
|
||||
#define key_table db_global.Key_table.ptr
|
||||
#define pgzero db_global.Pgzero.ptr
|
||||
#define root_ix db_global.Root_ix.ptr
|
||||
/* Used in DIO.C and OVFCNS.C */
|
||||
#define ixpg_table Ixpg_table.ptr
|
||||
#define dbpgbuff Dbpgbuff.ptr
|
||||
#define ix_lookup Ix_lookup.ptr
|
||||
|
||||
/* Non-dynamically allocated global variables */
|
||||
#define lock_tries db_global.Lock_tries
|
||||
#define dbwait_time db_global.Dbwait_time
|
||||
#define db_timeout db_global.Db_timeout
|
||||
#define dbopen db_global.Dbopen
|
||||
#define db_lockmgr db_global.Db_lockmgr
|
||||
#define dbuserid db_global.Dbuserid
|
||||
#define dbdpath db_global.Dbdpath
|
||||
#define dbfpath db_global.Dbfpath
|
||||
#define trans_id db_global.Trans_id
|
||||
#define dblog db_global.Dblog
|
||||
#define keyl_cnt db_global.Keyl_cnt
|
||||
#define lp_size db_global.Lp_size
|
||||
#define fp_size db_global.Fp_size
|
||||
#define session_active db_global.Session_active
|
||||
#define cache_ovfl db_global.Cache_ovfl
|
||||
#define no_of_keys db_global.No_of_keys
|
||||
#define key_type db_global.Key_type
|
||||
#define net_status db_global.Net_status
|
||||
#define last_mtype db_global.Last_mtype
|
||||
#define dboptions db_global.Dboptions
|
||||
#define ov_initaddr db_global.Ov_initaddr
|
||||
#define ov_rootaddr db_global.Ov_rootaddr
|
||||
#define ov_nextaddr db_global.Ov_nextaddr
|
||||
#define page_size db_global.Page_size
|
||||
#define curr_db db_global.Curr_db
|
||||
#define curr_db_table db_global.Curr_db_table
|
||||
#define curr_rec db_global.Curr_rec
|
||||
#define ov_file db_global.Ov_file
|
||||
#define setdb_on db_global.Setdb_on
|
||||
#define no_of_dbs db_global.No_of_dbs
|
||||
#define curr_rn_table db_global.Curr_rn_table
|
||||
#define size_ft db_global.Size_ft
|
||||
#define size_rt db_global.Size_rt
|
||||
#define size_st db_global.Size_st
|
||||
#define size_mt db_global.Size_mt
|
||||
#define size_srt db_global.Size_srt
|
||||
#define size_fd db_global.Size_fd
|
||||
#define size_kt db_global.Size_kt
|
||||
#define lock_lvl db_global.Lock_lvl
|
||||
#define lock_stack db_global.Lock_stack
|
||||
#define ren_list db_global.Ren_list
|
||||
#define sk_list db_global.Sk_list
|
||||
|
||||
extern TASK db_global;
|
||||
extern int db_glob_init;
|
||||
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dbxtrn.h */
|
||||
@@ -1,140 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: dtcover.h /main/2 1996/05/09 04:05:27 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: none
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
dtcover.h: converts d_* calls to dt_* for MULTI_TASKing
|
||||
|
||||
(C) Copyright 1988 by Raima Corporation.
|
||||
----------------------------------------------------------------------------*/
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
|
||||
*/
|
||||
|
||||
|
||||
#define d_close dt_close
|
||||
#define d_cmstat dt_cmstat
|
||||
#define d_cmtype dt_cmtype
|
||||
#define d_connect dt_connect
|
||||
#define d_cotype dt_cotype
|
||||
#define d_crget dt_crget
|
||||
#define d_crread dt_crread
|
||||
#define d_crset dt_crset
|
||||
#define d_crtype dt_crtype
|
||||
#define d_crwrite dt_crwrite
|
||||
#define d_csmget dt_csmget
|
||||
#define d_csmread dt_csmread
|
||||
#define d_csmset dt_csmset
|
||||
#define d_csmwrite dt_csmwrite
|
||||
#define d_csoget dt_csoget
|
||||
#define d_csoread dt_csoread
|
||||
#define d_csoset dt_csoset
|
||||
#define d_csowrite dt_csowrite
|
||||
#define d_ctbpath dt_ctbpath
|
||||
#define d_dbdpath dt_dbdpath
|
||||
#define d_dbfpath dt_dbfpath
|
||||
#define d_dblog dt_dblog
|
||||
#define d_dbtaf dt_dbtaf
|
||||
#define d_dbuserid dt_dbuserid
|
||||
#define d_delete dt_delete
|
||||
#define d_disdel dt_disdel
|
||||
#define d_recnext dt_recnext
|
||||
#define d_recprev dt_recprev
|
||||
#define d_destroy dt_destroy
|
||||
#define d_discon dt_discon
|
||||
#define d_fillnew dt_fillnew
|
||||
#define d_findco dt_findco
|
||||
#define d_findfm dt_findfm
|
||||
#define d_findlm dt_findlm
|
||||
#define d_findnm dt_findnm
|
||||
#define d_findpm dt_findpm
|
||||
#define d_freeall dt_freeall
|
||||
#define d_initialize dt_initialize
|
||||
#define d_initfile dt_initfile
|
||||
#define d_ismember dt_ismember
|
||||
#define d_isowner dt_isowner
|
||||
#define d_keydel dt_keydel
|
||||
#define d_keyexist dt_keyexist
|
||||
#define d_keyfind dt_keyfind
|
||||
#define d_keyfree dt_keyfree
|
||||
#define d_keyfrst dt_keyfrst
|
||||
#define d_keylast dt_keylast
|
||||
#define d_keylock dt_keylock
|
||||
#define d_keylstat dt_keylstat
|
||||
#define d_keynext dt_keynext
|
||||
#define d_keyprev dt_keyprev
|
||||
#define d_keyread dt_keyread
|
||||
#define d_keystore dt_keystore
|
||||
#define d_lock dt_lock
|
||||
#define d_makenew dt_makenew
|
||||
#define d_mapchar dt_mapchar
|
||||
#define d_members dt_members
|
||||
#define d_off_opt dt_off_opt
|
||||
#define d_on_opt dt_on_opt
|
||||
#define d_open dt_open
|
||||
#define d_rdcurr dt_rdcurr
|
||||
#define d_rerdcurr dt_rerdcurr
|
||||
#define d_recfree dt_recfree
|
||||
#define d_recfrst dt_recfrst
|
||||
#define d_reclast dt_reclast
|
||||
#define d_reclock dt_reclock
|
||||
#define d_reclstat dt_reclstat
|
||||
#define d_recover dt_recover
|
||||
#define d_recread dt_recread
|
||||
#define d_recset dt_recset
|
||||
#define d_recwrite dt_recwrite
|
||||
#define d_renfile dt_renfile
|
||||
#define d_retries dt_retries
|
||||
#define d_rlbclr dt_rlbclr
|
||||
#define d_rlbset dt_rlbset
|
||||
#define d_rlbtst dt_rlbtst
|
||||
#define d_set_dberr dt_set_dberr
|
||||
#define d_setdb dt_setdb
|
||||
#define d_setfree dt_setfree
|
||||
#define d_setkey dt_setkey
|
||||
#define d_setlock dt_setlock
|
||||
#define d_setlstat dt_setlstat
|
||||
#define d_setmm dt_setmm
|
||||
#define d_setmo dt_setmo
|
||||
#define d_setmr dt_setmr
|
||||
#define d_setom dt_setom
|
||||
#define d_setoo dt_setoo
|
||||
#define d_setor dt_setor
|
||||
#define d_setrm dt_setrm
|
||||
#define d_setro dt_setro
|
||||
#define d_timeout dt_timeout
|
||||
#define d_trabort dt_trabort
|
||||
#define d_trbegin dt_trbegin
|
||||
#define d_trend dt_trend
|
||||
#define d_wrcurr dt_wrcurr
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dtcover.h */
|
||||
@@ -1,86 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: sizeof
|
||||
*
|
||||
* ORIGINS: 27,157
|
||||
*
|
||||
* (C) COPYRIGHT International Business Machines Corp. 1995, 1996
|
||||
* All Rights Reserved
|
||||
* US Government Users Restricted Rights - Use, duplication or
|
||||
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
$XConsortium: inittab.h /main/5 1996/11/25 18:48:42 drk $
|
||||
inittab.h: db_VISTA header file containing:
|
||||
|
||||
- Compatible dictionary file versions
|
||||
|
||||
This file is intended to be included in inittab.c only. There are
|
||||
multiple versions of inittab.c which share this header.
|
||||
|
||||
(An #include "vista.h" must precede this include)
|
||||
|
||||
(C) Copyright 1987 by Raima Corporation.
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
101 21-Jun-88 RSC Added decl for rn_type and rn_dba for ONE_DB
|
||||
08-Aug-88 RTK Moved rn_dba and rn_type to vista.h - needed in rec*.c
|
||||
18-Aug-88 RSC Moved rn_type/dba to separate table, add curr_rn_table..
|
||||
|
||||
$Log$
|
||||
* Revision 1.2 1995/10/13 18:36:46 miker
|
||||
* Changed compat_dbd[] from hardcoded str to dbd_VERSION.
|
||||
* (dbd_VERSION in vista.h changed bcs expanded max file name length.)
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
int db_status = 0;
|
||||
|
||||
/* database dictionary tables */
|
||||
INT largest_page = 0;
|
||||
|
||||
char *crloc = NULL;
|
||||
|
||||
INT old_size_ft = 0;
|
||||
INT old_size_fd = 0;
|
||||
INT old_size_st = 0;
|
||||
INT old_size_mt = 0;
|
||||
INT old_size_srt = 0;
|
||||
INT old_size_kt = 0;
|
||||
INT old_size_rt = 0;
|
||||
INT old_no_of_dbs = 0;
|
||||
|
||||
/* Compatible dictionary versions */
|
||||
char *compat_dbd[] = {
|
||||
dbd_VERSION
|
||||
};
|
||||
int size_compat = sizeof(compat_dbd)/sizeof(*compat_dbd);
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin inittab.h */
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: ll.h /main/2 1996/05/09 04:11:29 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: LLIST_INIT
|
||||
* LL_ELEM_INIT
|
||||
* ll_access
|
||||
* ll_append
|
||||
* ll_deaccess
|
||||
* ll_first
|
||||
* ll_free
|
||||
* ll_next
|
||||
* ll_prepend
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
/* The functions in this file are defined in alloc.c */
|
||||
|
||||
typedef struct {struct ll_elem *ptr; LOCK_DESC} LL_P;
|
||||
|
||||
typedef struct ll_elem {
|
||||
LL_P next;
|
||||
CHAR_P data;
|
||||
} ll_elem;
|
||||
|
||||
#define LL_ELEM_INIT() { POINTER_INIT(), POINTER_INIT() }
|
||||
|
||||
typedef struct {
|
||||
LL_P head;
|
||||
LL_P tail;
|
||||
LL_P *curr;
|
||||
} llist;
|
||||
|
||||
#define LLIST_INIT() { POINTER_INIT(), POINTER_INIT(), NULL }
|
||||
|
||||
BOOLEAN ll_access(P1(llist *));
|
||||
int ll_append(P1(llist *) Pi(CHAR_P *));
|
||||
#define ll_deaccess(ll) /**/
|
||||
CHAR_P *ll_first(P1(llist *));
|
||||
void ll_free(P1(llist *));
|
||||
CHAR_P *ll_next(P1(llist *));
|
||||
int ll_prepend(P1(llist *) Pi(CHAR_P *));
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ll.h */
|
||||
@@ -1,125 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: ncb.h /main/2 1996/05/09 04:12:28 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: none
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
#define NETNAME_LEN 16
|
||||
#ifndef NULL
|
||||
#define NULL (char *)0
|
||||
#endif
|
||||
|
||||
#define NETBIOS_INT 0x5c
|
||||
|
||||
#define ADDNAME 0x30
|
||||
#define DELNAME 0x31
|
||||
#define RESET 0x32
|
||||
#define STATUS 0x33
|
||||
#define SESSTAT 0x34
|
||||
#define CALL 0x10
|
||||
#define LISTEN 0x11
|
||||
#define HANGUP 0x12
|
||||
#define SEND 0x14
|
||||
#define RECEIVE 0x15
|
||||
#define ADDNAIT 0xB0
|
||||
#define DELNAIT 0xB1
|
||||
#define CALNAIT 0x90
|
||||
#define LISNAIT 0x91
|
||||
#define HANNAIT 0x92
|
||||
#define SENNAIT 0x94
|
||||
#define RECNAIT 0x95
|
||||
#define ARENAIT 0x96
|
||||
#define ANY 0xFF
|
||||
#define PENDING 0xFFFF
|
||||
#define NCBSIZE 64
|
||||
|
||||
#ifdef TURBO
|
||||
#ifdef __SMALL__
|
||||
#define SMALL_DATA
|
||||
#endif
|
||||
#ifdef __MEDIUM__
|
||||
#define SMALL_DATA
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MSC
|
||||
#ifdef M_I86SM
|
||||
#define SMALL_DATA
|
||||
#endif
|
||||
#ifdef M_I86MM
|
||||
#define SMALL_DATA
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef LAT
|
||||
#ifdef SPTR
|
||||
#define SMALL_DATA
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/***** NCB Commands parameter block *****/
|
||||
typedef struct {
|
||||
char command; /* NETBIOS Command */
|
||||
char retcode; /* Return value (some enumerated below) */
|
||||
char lsn; /* Local session number */
|
||||
char num; /* Name number */
|
||||
char *buffer_off; /* Message buffer offset */
|
||||
#ifdef SMALL_DATA
|
||||
int buffer_seg; /* Message buffer segment */
|
||||
#endif
|
||||
int length; /* Length of message buffer */
|
||||
char callname[NETNAME_LEN]; /* Name of user being called */
|
||||
char name[NETNAME_LEN]; /* My name */
|
||||
char rto; /* Receive timeout (500ms units) */
|
||||
char sto; /* Send timeout (500ms units) */
|
||||
char *post_off; /* Post function offset */
|
||||
#ifdef SMALL_DATA
|
||||
int post_seg; /* Post function segment */
|
||||
#endif
|
||||
char lana_num; /* Local area network adapter number (use 0) */
|
||||
char cmd_cplt; /* Command complete return value, used when posting */
|
||||
char reserve[14]; /* reserved for Net BIOS */
|
||||
} NCB;
|
||||
|
||||
typedef struct {
|
||||
char rep_sess;
|
||||
char name_sess;
|
||||
char gram;
|
||||
char rcvany;
|
||||
struct {
|
||||
char lsn;
|
||||
char state_sess;
|
||||
char loc_name[16];
|
||||
char rem_name[16];
|
||||
char rcvs;
|
||||
char sends;
|
||||
} s[32];
|
||||
} SESSION;
|
||||
|
||||
#define NCB_H
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ncb.h */
|
||||
@@ -1,281 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $TOG: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: ADDRcmp
|
||||
* ALLOC_TABLE
|
||||
* INTcmp
|
||||
* Pi
|
||||
* alloc_table
|
||||
* check_dba
|
||||
* close
|
||||
* con_dbd
|
||||
* con_dbf
|
||||
* dbn_check
|
||||
* dio_close
|
||||
* dio_clrfile
|
||||
* dio_findpg
|
||||
* dio_get
|
||||
* dio_open
|
||||
* dio_out
|
||||
* dio_pzalloc
|
||||
* dio_pzdel
|
||||
* dio_pzgetts
|
||||
* dio_pznext
|
||||
* dio_pzread
|
||||
* dio_pzsetts
|
||||
* dio_read
|
||||
* dio_release
|
||||
* dio_rrlb
|
||||
* dio_setdef
|
||||
* dio_touch
|
||||
* dio_write
|
||||
* dio_wrlb
|
||||
* exit
|
||||
* fldcmp
|
||||
* free
|
||||
* get_element
|
||||
* getenv
|
||||
* initdbt
|
||||
* key_bldcom
|
||||
* key_boundary
|
||||
* key_cmpcpy
|
||||
* key_delete
|
||||
* key_init
|
||||
* key_insert
|
||||
* key_locpos
|
||||
* key_reset
|
||||
* key_scan
|
||||
* locking
|
||||
* lseek
|
||||
* memcmp
|
||||
* memcpy
|
||||
* memset
|
||||
* nfld_check
|
||||
* nrec_check
|
||||
* nset_check
|
||||
* null_dba
|
||||
* nw_addnm
|
||||
* nw_call
|
||||
* nw_cleanup
|
||||
* nw_delnm
|
||||
* nw_hangup
|
||||
* nw_rcvmsg
|
||||
* nw_reset
|
||||
* nw_send
|
||||
* o_fileinit
|
||||
* o_pages
|
||||
* o_pzwrite
|
||||
* o_search
|
||||
* o_write
|
||||
* open_b
|
||||
* r_chkfld
|
||||
* r_clropt
|
||||
* r_delrec
|
||||
* r_gfld
|
||||
* r_gmem
|
||||
* r_gset
|
||||
* r_pfld
|
||||
* r_pmem
|
||||
* r_pset
|
||||
* r_setopt
|
||||
* r_smem
|
||||
* r_tstopt
|
||||
* read
|
||||
* startup
|
||||
* strcat
|
||||
* strchr
|
||||
* strcmp
|
||||
* strcpy
|
||||
* strlen
|
||||
* strncmp
|
||||
* strncpy
|
||||
* strrchr
|
||||
* taf_add
|
||||
* taf_del
|
||||
* task_switch
|
||||
* taskinit
|
||||
* time
|
||||
* unlink
|
||||
* write
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
proto.h: db_VISTA function declaration header file
|
||||
|
||||
(This file must be included after dbtype.h)
|
||||
|
||||
(C) Copyright 1988 by Raima Corporation.
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
03-AUG-88 RTK Added internal MULTI_TASKing function prototypes
|
||||
310 10-Aug-88 RSC Cleanup of function prototypes
|
||||
|
||||
*/
|
||||
|
||||
/* From dberr.c: */
|
||||
void dbautorec(void);
|
||||
|
||||
/* From dblfcns.c: */
|
||||
int taskinit(TASK *);
|
||||
int initdbt(const char *);
|
||||
int alloc_table(CHAR_P *, unsigned, unsigned);
|
||||
#define ALLOC_TABLE(t, n, o, v) alloc_table((CHAR_P *)(t), n, o)
|
||||
void termfree(void);
|
||||
|
||||
/* From dio.c: */
|
||||
int dio_open(FILE_NO);
|
||||
int dio_close(FILE_NO);
|
||||
int dio_init(void);
|
||||
void dio_free(void);
|
||||
int dio_clrfile(FILE_NO);
|
||||
int dio_clear(void);
|
||||
int dio_flush(void);
|
||||
void dio_setdef(FILE_NO);
|
||||
int dio_get(F_ADDR, char **, int);
|
||||
int dio_touch(F_ADDR);
|
||||
int dio_read(DB_ADDR, char **, int);
|
||||
int dio_write(DB_ADDR, const char *, int);
|
||||
int dio_release(DB_ADDR);
|
||||
int dio_rrlb(DB_ADDR, INT *);
|
||||
int dio_wrlb(DB_ADDR, INT);
|
||||
int dio_findpg(FILE_NO, F_ADDR, PAGE_ENTRY *, PAGE_ENTRY **, LOOKUP_ENTRY **);
|
||||
int dio_out(PAGE_ENTRY *, LOOKUP_ENTRY *);
|
||||
int dio_pzread(FILE_NO);
|
||||
int dio_pzalloc(FILE_NO, F_ADDR *);
|
||||
int dio_pzdel(FILE_NO, F_ADDR);
|
||||
F_ADDR dio_pznext(FILE_NO);
|
||||
void dio_pzclr(void);
|
||||
|
||||
/* From initenv.c: */
|
||||
int initenv(void);
|
||||
|
||||
/* From inittab.c: */
|
||||
int inittab(void);
|
||||
|
||||
/* From keyfcns.c: */
|
||||
int key_open(void);
|
||||
void key_close(void);
|
||||
int key_init(int);
|
||||
int key_reset(FILE_NO);
|
||||
int key_locpos(const char *, DB_ADDR *);
|
||||
int key_scan(int, DB_ADDR *);
|
||||
int key_boundary(int, DB_ADDR *);
|
||||
int key_insert(int, const char *, DB_ADDR);
|
||||
int key_delete(int, const char *, DB_ADDR);
|
||||
/* Due to a problem with MSC 5.1, we couldn't declare the 2nd parm
|
||||
of key_bldcom as const (see keyfcns.c) */
|
||||
int key_bldcom(int, char *, char *, int);
|
||||
/* Because of a "problem" with the MSC 5.1 compiler, we couldn't declare
|
||||
the second argument to key_cmpcpy with a const attribute. Hence we
|
||||
were not able to define the 2nd argument of key_bldcom as const. */
|
||||
void key_cmpcpy(char *, char *, INT);
|
||||
|
||||
/* From libfcns.c: */
|
||||
int dbn_check(int);
|
||||
int nset_check(int, int *, SET_ENTRY **);
|
||||
int nfld_check(long, int *, int *, RECORD_ENTRY **, FIELD_ENTRY **);
|
||||
int nrec_check(int, int *, RECORD_ENTRY **);
|
||||
int fldcmp(FIELD_ENTRY *, const char *, const char *);
|
||||
int INTcmp(const char *, const char *);
|
||||
int ADDRcmp(const DB_ADDR *, const DB_ADDR *);
|
||||
int null_dba(const char *);
|
||||
int check_dba(DB_ADDR);
|
||||
|
||||
/* From makenew.c: */
|
||||
int sk_free(void);
|
||||
|
||||
/* From netwdos.c: */
|
||||
int netbios_chk(void);
|
||||
int nw_reset(int, int);
|
||||
int nw_addnm(char *, int *);
|
||||
int nw_cleanup(char *);
|
||||
int nw_sestat(void);
|
||||
int nw_delnm(char *);
|
||||
int nw_call(char *, char *, int *);
|
||||
int nw_hangup(int);
|
||||
int nw_send(int, MESSAGE *, int);
|
||||
int nw_rcvmsg(int, MESSAGE *, int, int *);
|
||||
|
||||
/* From opens.c: */
|
||||
int open_b(const char *, int);
|
||||
|
||||
/* From ovfcns.c: */
|
||||
int o_setup(void);
|
||||
int o_init(void);
|
||||
int o_fileinit(FILE_NO);
|
||||
int o_search(FILE_NO, F_ADDR, F_ADDR *);
|
||||
int o_write(PAGE_ENTRY *, LOOKUP_ENTRY *);
|
||||
int o_pzwrite(FILE_NO);
|
||||
int o_flush(void);
|
||||
int o_update(void);
|
||||
long o_pages(FILE_NO);
|
||||
void o_free(void);
|
||||
|
||||
/* From recfcns.c: */
|
||||
int r_chkfld(INT, FIELD_ENTRY *, char *, const char *);
|
||||
int r_delrec(INT, DB_ADDR);
|
||||
int r_gfld(FIELD_ENTRY *, char *, char *);
|
||||
int r_gmem(int, char *, char *);
|
||||
int r_gset(int, char *, char *);
|
||||
int r_pfld(INT, FIELD_ENTRY *, char *, const char *, DB_ADDR *);
|
||||
int r_pmem(int, char *, char *);
|
||||
int r_pset(int, char *, char *);
|
||||
int r_smem(DB_ADDR *, INT);
|
||||
int r_setopt(FIELD_ENTRY *, char *);
|
||||
int r_clropt(FIELD_ENTRY *, char *);
|
||||
int r_tstopt(FIELD_ENTRY *, char *);
|
||||
|
||||
/* From pathfcns.c */
|
||||
int con_dbd(char *, char *, char *);
|
||||
int con_dbf(char *, char *, char *, char *);
|
||||
char * get_element(char *, int);
|
||||
|
||||
/* From renfile.c: */
|
||||
int renfiles(void);
|
||||
|
||||
/* From startup.c: */
|
||||
int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di);
|
||||
|
||||
/* From taffcns.c: */
|
||||
int taf_open(void);
|
||||
int taf_close(void);
|
||||
int taf_access(void);
|
||||
int taf_release(void);
|
||||
int taf_add(const char *);
|
||||
int taf_del(const char *);
|
||||
|
||||
/* From mapchar.c */
|
||||
int ctb_init(void);
|
||||
int ctbl_alloc(void);
|
||||
void ctbl_free(void);
|
||||
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin proto.h */
|
||||
@@ -1,479 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: task.h /main/2 1996/05/09 04:20:28 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: Pi
|
||||
* d_close
|
||||
* d_cmstat
|
||||
* d_cmtype
|
||||
* d_connect
|
||||
* d_costat
|
||||
* d_cotype
|
||||
* d_crget
|
||||
* d_crread
|
||||
* d_crset
|
||||
* d_crstat
|
||||
* d_crtype
|
||||
* d_crwrite
|
||||
* d_csmget
|
||||
* d_csmread
|
||||
* d_csmset
|
||||
* d_csmwrite
|
||||
* d_csoget
|
||||
* d_csoread
|
||||
* d_csoset
|
||||
* d_csowrite
|
||||
* d_csstat
|
||||
* d_ctscm
|
||||
* d_ctsco
|
||||
* d_ctscr
|
||||
* d_dbdpath
|
||||
* d_dbfpath
|
||||
* d_dblog
|
||||
* d_dbuserid
|
||||
* d_delete
|
||||
* d_destroy
|
||||
* d_discon
|
||||
* d_disdel
|
||||
* d_fillnew
|
||||
* d_findco
|
||||
* d_findfm
|
||||
* d_findlm
|
||||
* d_findnm
|
||||
* d_findpm
|
||||
* d_freeall
|
||||
* d_gtscm
|
||||
* d_gtsco
|
||||
* d_gtscr
|
||||
* d_gtscs
|
||||
* d_initfile
|
||||
* d_initialize
|
||||
* d_ismember
|
||||
* d_isowner
|
||||
* d_keydel
|
||||
* d_keyexist
|
||||
* d_keyfind
|
||||
* d_keyfree
|
||||
* d_keyfrst
|
||||
* d_keylast
|
||||
* d_keylock
|
||||
* d_keylstat
|
||||
* d_keynext
|
||||
* d_keyprev
|
||||
* d_keyread
|
||||
* d_keystore
|
||||
* d_lock
|
||||
* d_makenew
|
||||
* d_members
|
||||
* d_off_opt
|
||||
* d_on_opt
|
||||
* d_open
|
||||
* d_rdcurr
|
||||
* d_recfree
|
||||
* d_recfrst
|
||||
* d_reclast
|
||||
* d_reclock
|
||||
* d_reclstat
|
||||
* d_recnext
|
||||
* d_recover
|
||||
* d_recprev
|
||||
* d_recread
|
||||
* d_recset
|
||||
* d_recstat
|
||||
* d_recwrite
|
||||
* d_renfile
|
||||
* d_rerdcurr
|
||||
* d_retries
|
||||
* d_rlbclr
|
||||
* d_rlbset
|
||||
* d_rlbtst
|
||||
* d_set_dberr
|
||||
* d_setdb
|
||||
* d_setfree
|
||||
* d_setkey
|
||||
* d_setlock
|
||||
* d_setlstat
|
||||
* d_setmm
|
||||
* d_setmo
|
||||
* d_setmr
|
||||
* d_setom
|
||||
* d_setoo
|
||||
* d_setor
|
||||
* d_setrm
|
||||
* d_setro
|
||||
* d_stscm
|
||||
* d_stsco
|
||||
* d_stscr
|
||||
* d_stscs
|
||||
* d_timeout
|
||||
* d_trabort
|
||||
* d_trbegin
|
||||
* d_trend
|
||||
* d_utscm
|
||||
* d_utsco
|
||||
* d_utscr
|
||||
* d_utscs
|
||||
* d_wrcurr
|
||||
* dt_closetask
|
||||
* dt_cmstat
|
||||
* dt_cmtype
|
||||
* dt_connect
|
||||
* dt_costat
|
||||
* dt_cotype
|
||||
* dt_crget
|
||||
* dt_crread
|
||||
* dt_crset
|
||||
* dt_crtype
|
||||
* dt_crwrite
|
||||
* dt_csmget
|
||||
* dt_csmread
|
||||
* dt_csmset
|
||||
* dt_csmwrite
|
||||
* dt_csoget
|
||||
* dt_csoread
|
||||
* dt_csoset
|
||||
* dt_csowrite
|
||||
* dt_csstat
|
||||
* dt_ctbpath
|
||||
* dt_ctscm
|
||||
* dt_ctsco
|
||||
* dt_ctscr
|
||||
* dt_dbdpath
|
||||
* dt_dbfpath
|
||||
* dt_dblog
|
||||
* dt_dbuserid
|
||||
* dt_destroy
|
||||
* dt_discon
|
||||
* dt_fillnew
|
||||
* dt_findco
|
||||
* dt_findfm
|
||||
* dt_findlm
|
||||
* dt_findnm
|
||||
* dt_findpm
|
||||
* dt_gtscm
|
||||
* dt_gtsco
|
||||
* dt_gtscr
|
||||
* dt_gtscs
|
||||
* dt_initfile
|
||||
* dt_ismember
|
||||
* dt_isowner
|
||||
* dt_keydel
|
||||
* dt_keyexist
|
||||
* dt_keyfind
|
||||
* dt_keyfree
|
||||
* dt_keyfrst
|
||||
* dt_keylast
|
||||
* dt_keylock
|
||||
* dt_keylstat
|
||||
* dt_keynext
|
||||
* dt_keyprev
|
||||
* dt_keyread
|
||||
* dt_keystore
|
||||
* dt_lock
|
||||
* dt_makenew
|
||||
* dt_mapchar
|
||||
* dt_members
|
||||
* dt_off_opt
|
||||
* dt_on_opt
|
||||
* dt_open
|
||||
* dt_opentask
|
||||
* dt_rdcurr
|
||||
* dt_recfree
|
||||
* dt_recfrst
|
||||
* dt_reclast
|
||||
* dt_reclock
|
||||
* dt_reclstat
|
||||
* dt_recover
|
||||
* dt_recread
|
||||
* dt_recset
|
||||
* dt_recstat
|
||||
* dt_recwrite
|
||||
* dt_renfile
|
||||
* dt_rerdcurr
|
||||
* dt_retries
|
||||
* dt_set_dberr
|
||||
* dt_setdb
|
||||
* dt_setfree
|
||||
* dt_setkey
|
||||
* dt_setlock
|
||||
* dt_setlstat
|
||||
* dt_setmm
|
||||
* dt_setmo
|
||||
* dt_setmr
|
||||
* dt_setom
|
||||
* dt_setoo
|
||||
* dt_setor
|
||||
* dt_setrm
|
||||
* dt_setro
|
||||
* dt_stscm
|
||||
* dt_stsco
|
||||
* dt_stscr
|
||||
* dt_stscs
|
||||
* dt_timeout
|
||||
* dt_trbegin
|
||||
* dt_utscm
|
||||
* dt_utsco
|
||||
* dt_utscr
|
||||
* dt_utscs
|
||||
* dt_wrcurr
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------------
|
||||
task.h: db_VISTA task cover function declaration header file
|
||||
|
||||
(C) Copyright 1988 by Raima Corporation.
|
||||
----------------------------------------------------------------------------*/
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
|
||||
*/
|
||||
|
||||
|
||||
int EXTERNAL_FIXED dt_opentask(P1(DB_TASK *));
|
||||
int EXTERNAL_FIXED dt_closetask(P1(DB_TASK));
|
||||
|
||||
int EXTERNAL_FIXED dt_close(TASK_D1); /* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_cmstat(P1(int) TASK_Di DBN_Dn); /* cmstat.c */
|
||||
int EXTERNAL_DBN dt_cmtype(P1(int) Pi(int *) TASK_Di DBN_Dn);
|
||||
/* cmtype.c */
|
||||
int EXTERNAL_DBN dt_connect(P1(int) TASK_Di DBN_Dn); /* connect.c */
|
||||
int EXTERNAL_DBN dt_cotype(P1(int) Pi(int *) TASK_Di DBN_Dn);
|
||||
/* cotype.c */
|
||||
int EXTERNAL_DBN dt_crget(P1(DB_ADDR *) TASK_Di DBN_Dn); /* crget.c */
|
||||
int EXTERNAL_DBN dt_crread(P1(long) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* crread.c */
|
||||
int EXTERNAL_DBN dt_crset(P1(DB_ADDR *) TASK_Di DBN_Dn); /* crset.c */
|
||||
int EXTERNAL_DBN dt_crtype(P1(int *) TASK_Di DBN_Dn); /* crtype.c */
|
||||
int EXTERNAL_DBN dt_crwrite(P1(long) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* crwrite.c */
|
||||
int EXTERNAL_DBN dt_csmget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn);
|
||||
/* csmget.c */
|
||||
int EXTERNAL_DBN dt_csmread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* csmread.c */
|
||||
int EXTERNAL_DBN dt_csmset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn);
|
||||
/* csmset.c */
|
||||
int EXTERNAL_DBN dt_csmwrite(P1(int) Pi(long) Pi(const char *) TASK_Di
|
||||
DBN_Dn); /* csmwrite.c */
|
||||
int EXTERNAL_DBN dt_csoget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn);
|
||||
/* csoget.c */
|
||||
int EXTERNAL_DBN dt_csoread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* csoread.c */
|
||||
int EXTERNAL_DBN dt_csoset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn);
|
||||
/* csoset.c */
|
||||
int EXTERNAL_DBN dt_csowrite(P1(int) Pi(long) Pi(const char *) TASK_Di
|
||||
DBN_Dn); /* csowrite.c */
|
||||
int EXTERNAL_FIXED dt_ctbpath(P1(const char *) TASK_Di); /* pathfcns.c */
|
||||
int EXTERNAL_FIXED dt_dbdpath(P1(const char *) TASK_Di ); /* dbdpath.c */
|
||||
int EXTERNAL_FIXED dt_dbfpath(P1(const char *) TASK_Di ); /* dbfpath.c */
|
||||
int EXTERNAL_FIXED dt_dblog(P1(const char *) TASK_Di ); /* dblog.c */
|
||||
int EXTERNAL_FIXED dt_dbuserid(P1(const char *) TASK_Di ); /* dbuserid.c */
|
||||
int EXTERNAL_DBN dt_delete(TASK_D1 DBN_Dn); /* delete.c */
|
||||
int EXTERNAL_DBN dt_disdel(TASK_D1 DBN_Dn); /* disdel.c */
|
||||
int EXTERNAL_DBN dt_recnext(TASK_D1 DBN_Dn); /* recnext.c */
|
||||
int EXTERNAL_DBN dt_recprev(TASK_D1 DBN_Dn); /* recprev.c */
|
||||
int EXTERNAL_FIXED dt_destroy(P1(const char *) TASK_Di ); /* destroy.c */
|
||||
int EXTERNAL_DBN dt_discon(P1(int) TASK_Di DBN_Dn); /* discon.c */
|
||||
int EXTERNAL_DBN dt_fillnew(P1(int) Pi(const char *) TASK_Di DBN_Dn);
|
||||
/* fillnew.c */
|
||||
int EXTERNAL_DBN dt_findco(P1(int) TASK_Di DBN_Dn); /* findco.c */
|
||||
int EXTERNAL_DBN dt_findfm(P1(int) TASK_Di DBN_Dn); /* findfm.c */
|
||||
int EXTERNAL_DBN dt_findlm(P1(int) TASK_Di DBN_Dn); /* findlm.c */
|
||||
int EXTERNAL_DBN dt_findnm(P1(int) TASK_Di DBN_Dn); /* findnm.c */
|
||||
int EXTERNAL_DBN dt_findpm(P1(int) TASK_Di DBN_Dn); /* findpm.c */
|
||||
int EXTERNAL_FIXED dt_freeall(TASK_D1); /* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_initialize(TASK_D1 DBN_Dn); /* initial.c */
|
||||
int EXTERNAL_DBN dt_initfile(P1(FILE_NO) TASK_Di DBN_Dn); /* initial.c */
|
||||
int EXTERNAL_DBN dt_ismember(P1(int) TASK_Di DBN_Dn); /* ismember.c */
|
||||
int EXTERNAL_DBN dt_isowner(P1(int) TASK_Di DBN_Dn); /* isowner.c */
|
||||
int EXTERNAL_DBN dt_keydel(P1(long) TASK_Di DBN_Dn); /* keydel.c */
|
||||
int EXTERNAL_DBN dt_keyexist(P1(long) TASK_Di DBN_Dn); /* keyexist.c */
|
||||
int EXTERNAL_DBN dt_keyfind(P1(long) Pi(const char *) TASK_Di DBN_Dn);
|
||||
/* keyfind.c */
|
||||
int EXTERNAL_DBN dt_keyfree(P1(long) TASK_Di DBN_Dn); /* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_keyfrst(P1(long) TASK_Di DBN_Dn); /* keyfrst.c */
|
||||
int EXTERNAL_DBN dt_keylast(P1(long) TASK_Di DBN_Dn); /* keylast.c */
|
||||
int EXTERNAL_DBN dt_keylock(P1(long) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_keylstat(P1(long) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_keynext(P1(long) TASK_Di DBN_Dn); /* keynext.c */
|
||||
int EXTERNAL_DBN dt_keyprev(P1(long) TASK_Di DBN_Dn); /* keyprev.c */
|
||||
int EXTERNAL_FIXED dt_keyread(P1(char *) TASK_Di ); /* keyfcns.c */
|
||||
int EXTERNAL_DBN dt_keystore(P1(long) TASK_Di DBN_Dn); /* keystore.c */
|
||||
int EXTERNAL_DBN dt_lock(P1(int) Pi(LOCK_REQUEST *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_makenew(P1(int) TASK_Di DBN_Dn); /* makenew.c */
|
||||
int EXTERNAL_FIXED dt_mapchar(P1(unsigned char) Pi(unsigned char)
|
||||
Pi(const char *) Pi(unsigned char) TASK_Di);
|
||||
/* mapchar.c */
|
||||
int EXTERNAL_DBN dt_members(P1(int) Pi(LONG *) TASK_Di DBN_Dn);
|
||||
/* members.c */
|
||||
int EXTERNAL_FIXED dt_off_opt(P1(int) TASK_Di ); /* options.c */
|
||||
int EXTERNAL_FIXED dt_on_opt(P1(int) TASK_Di ); /* options.c */
|
||||
int EXTERNAL_FIXED dt_open(P1(const char *) Pi(const char *) TASK_Di);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_rdcurr(P1(DB_ADDR **) Pi(int *) TASK_Di);
|
||||
/* rwcurr.c */
|
||||
int EXTERNAL_FIXED dt_rerdcurr(P1(DB_ADDR **) TASK_Di); /* rwcurr.c */
|
||||
int EXTERNAL_FIXED dt_wrcurr(P1(DB_ADDR *) TASK_Di); /* rwcurr.c */
|
||||
int EXTERNAL_DBN dt_recfree(P1(int) TASK_Di DBN_Dn); /* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_recfrst(P1(int) TASK_Di DBN_Dn); /* recfrst.c */
|
||||
int EXTERNAL_DBN dt_reclast(P1(int) TASK_Di DBN_Dn); /* reclast.c */
|
||||
int EXTERNAL_DBN dt_reclock(P1(int) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_reclstat(P1(int) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_recover(P1(const char *) TASK_Di ); /* recover.c */
|
||||
int EXTERNAL_DBN dt_recread(P1(char *) TASK_Di DBN_Dn); /* recread.c */
|
||||
int EXTERNAL_DBN dt_recset(P1(int) TASK_Di DBN_Dn); /* recset.c */
|
||||
int EXTERNAL_DBN dt_recwrite(P1(const char *) TASK_Di DBN_Dn);
|
||||
/* recwrite.c */
|
||||
int EXTERNAL_FIXED dt_renfile(P1(const char *) Pi(FILE_NO)
|
||||
Pi(const char *) TASK_Di); /* renfile.c */
|
||||
int EXTERNAL_FIXED dt_retries(P1(int) TASK_Di ); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_rlbclr(TASK_D1); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_rlbset(TASK_D1); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_rlbtst(TASK_D1); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_set_dberr(P1(FARPROC) TASK_Di); /* dberr.c */
|
||||
int EXTERNAL_FIXED dt_setdb(P1(int) TASK_Di); /* setdb.c */
|
||||
int EXTERNAL_DBN dt_setfree(P1(int) TASK_Di DBN_Dn); /* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_setkey(P1(long) Pi(const char *) TASK_Di DBN_Dn);
|
||||
/* makenew.c */
|
||||
int EXTERNAL_DBN dt_setlock(P1(int) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_setlstat(P1(int) Pi(char *) TASK_Di DBN_Dn);
|
||||
/* dblfcns.c */
|
||||
int EXTERNAL_DBN dt_setmm(P1(int) Pi(int) TASK_Di DBN_Dn); /* setmm.c */
|
||||
int EXTERNAL_DBN dt_setmo(P1(int) Pi(int) TASK_Di DBN_Dn); /* setmo.c */
|
||||
int EXTERNAL_DBN dt_setmr(P1(int) TASK_Di DBN_Dn); /* setmr.c */
|
||||
int EXTERNAL_DBN dt_setom(P1(int) Pi(int) TASK_Di DBN_Dn); /* setom.c */
|
||||
int EXTERNAL_DBN dt_setoo(P1(int) Pi(int) TASK_Di DBN_Dn); /* setoo.c */
|
||||
int EXTERNAL_DBN dt_setor(P1(int) TASK_Di DBN_Dn); /* setor.c */
|
||||
int EXTERNAL_DBN dt_setrm(P1(int) TASK_Di DBN_Dn); /* setrm.c */
|
||||
int EXTERNAL_DBN dt_setro(P1(int) TASK_Di DBN_Dn); /* setro.c */
|
||||
int EXTERNAL_FIXED dt_timeout(P1(int) TASK_Di ); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_trabort(TASK_D1); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_trbegin(P1(const char *) TASK_Di); /* dblfcns.c */
|
||||
int EXTERNAL_FIXED dt_trend(TASK_D1); /* dblfcns.c */
|
||||
|
||||
#ifndef NO_DT_COVER
|
||||
|
||||
#define d_close() dt_close(CURRTASK_ONLY)
|
||||
#define d_dbdpath(a) dt_dbdpath(a CURRTASK_PARM)
|
||||
#define d_dbfpath(a) dt_dbfpath(a CURRTASK_PARM)
|
||||
#define d_dblog(a) dt_dblog(a CURRTASK_PARM)
|
||||
#define d_dbuserid(a) dt_dbuserid(a CURRTASK_PARM)
|
||||
#define d_destroy(a) dt_destroy(a CURRTASK_PARM)
|
||||
#define d_freeall() dt_freeall(CURRTASK_ONLY)
|
||||
#define d_off_opt(a) dt_off_opt(a CURRTASK_PARM)
|
||||
#define d_on_opt(a) dt_on_opt(a CURRTASK_PARM)
|
||||
#define d_open(a, b) dt_open(a, b CURRTASK_PARM)
|
||||
#define d_rdcurr(a, b) dt_rdcurr(a, b CURRTASK_PARM)
|
||||
#define d_rerdcurr(a, b) dt_rerdcurr(a, b CURRTASK_PARM)
|
||||
#define d_recover(a) dt_recover(a CURRTASK_PARM)
|
||||
#define d_renfile(a, b, c) dt_renfile(a, b, c CURRTASK_PARM)
|
||||
#define d_retries(a) dt_retries(a CURRTASK_PARM)
|
||||
#define d_set_dberr(a, b) dt_set_dberr(a, b, CURRTASK_PARM)
|
||||
#define d_setdb(a) dt_setdb(a CURRTASK_PARM)
|
||||
#define d_timeout(a) dt_timeout(a CURRTASK_PARM)
|
||||
#define d_trabort() dt_trabort(CURRTASK_ONLY)
|
||||
#define d_trbegin(a) dt_trbegin(a CURRTASK_PARM)
|
||||
#define d_trend() dt_trend(CURRTASK_ONLY)
|
||||
#define d_wrcurr(a) dt_wrcurr(a CURRTASK_PARM)
|
||||
|
||||
#define d_cmstat(a , dbn) dt_cmstat(a CURRTASK_PARM , dbn)
|
||||
#define d_cmtype(a, b , dbn) dt_cmtype(a, b CURRTASK_PARM , dbn)
|
||||
#define d_connect(a , dbn) dt_connect(a CURRTASK_PARM , dbn)
|
||||
#define d_cotype(a, b , dbn) dt_cotype(a, b CURRTASK_PARM , dbn)
|
||||
#define d_crget(a , dbn) dt_crget(a CURRTASK_PARM , dbn)
|
||||
#define d_crread(a, b , dbn) dt_crread(a, b CURRTASK_PARM , dbn)
|
||||
#define d_crset(a , dbn) dt_crset(a CURRTASK_PARM , dbn)
|
||||
#define d_crtype(a , dbn) dt_crtype(a CURRTASK_PARM , dbn)
|
||||
#define d_crwrite(a, b , dbn) dt_crwrite(a, b CURRTASK_PARM , dbn)
|
||||
#define d_csmget(a, b , dbn) dt_csmget(a, b CURRTASK_PARM , dbn)
|
||||
#define d_csmread(a, b, c , dbn) dt_csmread(a, b, c CURRTASK_PARM , dbn)
|
||||
#define d_csmset(a, b , dbn) dt_csmset(a, b CURRTASK_PARM , dbn)
|
||||
#define d_csmwrite(a, b, c , dbn) dt_csmwrite(a, b, c CURRTASK_PARM , dbn)
|
||||
#define d_csoget(a, b , dbn) dt_csoget(a, b CURRTASK_PARM , dbn)
|
||||
#define d_csoread(a, b, c , dbn) dt_csoread(a, b, c CURRTASK_PARM , dbn)
|
||||
#define d_csoset(a, b , dbn) dt_csoset(a, b CURRTASK_PARM , dbn)
|
||||
#define d_csowrite(a, b, c , dbn) dt_csowrite(a, b, c CURRTASK_PARM , dbn)
|
||||
#define d_delete(, dbn) dt_delete(CURRTASK_ONLY , dbn)
|
||||
#define d_disdel(, dbn) dt_disdel(CURRTASK_ONLY , dbn)
|
||||
#define d_recnext(, dbn) dt_recnext(CURRTASK_ONLY , dbn)
|
||||
#define d_recprev(, dbn) dt_recprev(CURRTASK_ONLY , dbn)
|
||||
#define d_discon(a , dbn) dt_discon(a CURRTASK_PARM , dbn)
|
||||
#define d_fillnew(a, b , dbn) dt_fillnew(a, b CURRTASK_PARM , dbn)
|
||||
#define d_findco(a , dbn) dt_findco(a CURRTASK_PARM , dbn)
|
||||
#define d_findfm(a , dbn) dt_findfm(a CURRTASK_PARM , dbn)
|
||||
#define d_findlm(a , dbn) dt_findlm(a CURRTASK_PARM , dbn)
|
||||
#define d_findnm(a , dbn) dt_findnm(a CURRTASK_PARM , dbn)
|
||||
#define d_findpm(a , dbn) dt_findpm(a CURRTASK_PARM , dbn)
|
||||
#define d_initialize(, dbn) dt_initialize(CURRTASK_ONLY , dbn)
|
||||
#define d_initfile(a , dbn) dt_initfile(a CURRTASK_PARM , dbn)
|
||||
#define d_ismember(a , dbn) dt_ismember(a CURRTASK_PARM , dbn)
|
||||
#define d_isowner(a , dbn) dt_isowner(a CURRTASK_PARM , dbn)
|
||||
#define d_keydel(a , dbn) dt_keydel(a CURRTASK_PARM , dbn)
|
||||
#define d_keyexist(a , dbn) dt_keyexist(a CURRTASK_PARM , dbn)
|
||||
#define d_keyfind(a, b , dbn) dt_keyfind(a, b CURRTASK_PARM , dbn)
|
||||
#define d_keyfree(a , dbn) dt_keyfree(a CURRTASK_PARM , dbn)
|
||||
#define d_keyfrst(a , dbn) dt_keyfrst(a CURRTASK_PARM , dbn)
|
||||
#define d_keylast(a , dbn) dt_keylast(a CURRTASK_PARM , dbn)
|
||||
#define d_keylock(a, b , dbn) dt_keylock(a, b CURRTASK_PARM , dbn)
|
||||
#define d_keylstat(a, b , dbn) dt_keylstat(a, b CURRTASK_PARM , dbn)
|
||||
#define d_keynext(a , dbn) dt_keynext(a CURRTASK_PARM , dbn)
|
||||
#define d_keyprev(a , dbn) dt_keyprev(a CURRTASK_PARM , dbn)
|
||||
#define d_keyread(a , dbn) dt_keyread(a CURRTASK_PARM)
|
||||
#define d_keystore(a , dbn) dt_keystore(a CURRTASK_PARM , dbn)
|
||||
#define d_lock(a, b , dbn) dt_lock(a, b CURRTASK_PARM , dbn)
|
||||
#define d_makenew(a , dbn) dt_makenew(a CURRTASK_PARM , dbn)
|
||||
#define d_members(a, b , dbn) dt_members(a, b CURRTASK_PARM , dbn)
|
||||
#define d_recfree(a , dbn) dt_recfree(a CURRTASK_PARM , dbn)
|
||||
#define d_recfrst(a , dbn) dt_recfrst(a CURRTASK_PARM , dbn)
|
||||
#define d_reclast(a , dbn) dt_reclast(a CURRTASK_PARM , dbn)
|
||||
#define d_reclock(a, b , dbn) dt_reclock(a, b CURRTASK_PARM , dbn)
|
||||
#define d_reclstat(a, b , dbn) dt_reclstat(a, b CURRTASK_PARM , dbn)
|
||||
#define d_recread(a , dbn) dt_recread(a CURRTASK_PARM , dbn)
|
||||
#define d_recset(a , dbn) dt_recset(a CURRTASK_PARM , dbn)
|
||||
#define d_recwrite(a , dbn) dt_recwrite(a CURRTASK_PARM , dbn)
|
||||
#define d_setfree(a , dbn) dt_setfree(a CURRTASK_PARM , dbn)
|
||||
#define d_setkey(a, b , dbn) dt_setkey(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setlock(a, b , dbn) dt_setlock(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setlstat(a, b , dbn) dt_setlstat(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setmm(a, b , dbn) dt_setmm(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setmo(a, b , dbn) dt_setmo(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setmr(a , dbn) dt_setmr(a CURRTASK_PARM , dbn)
|
||||
#define d_setom(a, b , dbn) dt_setom(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setoo(a, b , dbn) dt_setoo(a, b CURRTASK_PARM , dbn)
|
||||
#define d_setor(a , dbn) dt_setor(a CURRTASK_PARM , dbn)
|
||||
#define d_setrm(a , dbn) dt_setrm(a CURRTASK_PARM , dbn)
|
||||
#define d_setro(a , dbn) dt_setro(a CURRTASK_PARM , dbn)
|
||||
|
||||
#endif /* NO_DT_COVER */
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC task.h */
|
||||
@@ -1,87 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: trxlog.h /main/2 1996/05/09 04:20:43 drk $ */
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: BITMAP_SIZE
|
||||
* BM_BASE
|
||||
* IX_BASE
|
||||
* IX_SIZE
|
||||
* PZ_BASE
|
||||
*
|
||||
* ORIGINS: 157
|
||||
*
|
||||
*/
|
||||
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
611 21-Feb-89 RSC The defn of BUI for unix and vms needs parenthesis
|
||||
*/
|
||||
|
||||
|
||||
/* trxlog.h - header file to define structures, constants, etc. for the
|
||||
memory cache overflow and transaction log file control
|
||||
==========================================================================
|
||||
*/
|
||||
/*
|
||||
The following constants control the functioning of the cache overflow
|
||||
and transaction logging processes
|
||||
|
||||
BUI The number of bits in an unsigned int
|
||||
IX_PAGESIZE The size (in bytes) of an index page
|
||||
IX_EPP The number of entries that will fit on an index page
|
||||
BITMAP_SIZE The size of the index bitmap (in unsigned int units)
|
||||
IX_SIZE The number of index pages needed to control the db pages
|
||||
OADDR_OF_IXP Calculates the overflow file address of an index page #
|
||||
|
||||
==========================================================================
|
||||
*/
|
||||
/* (BITS(unsigned int)) */
|
||||
#define BUI (8*sizeof(unsigned int))
|
||||
|
||||
|
||||
/*
|
||||
==========================================================================
|
||||
*/
|
||||
|
||||
/* page zero table entry */
|
||||
#define PGZEROSZ (2*sizeof(F_ADDR)+sizeof(ULONG))
|
||||
typedef struct PGZERO_S {
|
||||
F_ADDR pz_dchain; /* delete chain pointer */
|
||||
F_ADDR pz_next; /* next available record number */
|
||||
ULONG pz_timestamp; /* file's timestamp value */
|
||||
BOOLEAN pz_modified; /* TRUE if page zero has been modified */
|
||||
} PGZERO;
|
||||
|
||||
/* binary search lookup table entry */
|
||||
|
||||
|
||||
/* Maximum number of transactions which can commit a time */
|
||||
#define TAFLIMIT 1
|
||||
|
||||
#define TRXLOG_H
|
||||
/* End - trxlog.h */
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin trxlog.h */
|
||||
@@ -1,342 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* COMPONENT_NAME: austext
|
||||
*
|
||||
* FUNCTIONS: P1
|
||||
* POINTER_ASSIGN
|
||||
* POINTER_INIT
|
||||
* Pi
|
||||
* Piv
|
||||
* Pv
|
||||
* int
|
||||
*
|
||||
* ORIGINS: 27,157
|
||||
*
|
||||
* (C) COPYRIGHT International Business Machines Corp. 1995, 1996
|
||||
* All Rights Reserved
|
||||
* US Government Users Restricted Rights - Use, duplication or
|
||||
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
||||
*/
|
||||
/*----------------------------------------------------------------------
|
||||
$TOG: vista.h /main/7 1998/04/03 17:10:52 mgreess $
|
||||
vista.h: db_VISTA standard header file
|
||||
|
||||
This file should be included in all programs which use db_VISTA. It
|
||||
contains database status/error code definitions and standard type
|
||||
definitions.
|
||||
|
||||
This file should only include user-oriented constructs.
|
||||
|
||||
(C) Copyright 1984, 1985, 1986, 1987 by Raima Corp.
|
||||
|
||||
----------------------------------------------------------------------*/
|
||||
|
||||
/* ********************** EDIT HISTORY *******************************
|
||||
|
||||
SCR DATE INI DESCRIPTION
|
||||
----- --------- --- -----------------------------------------------------
|
||||
03-AUG-88 RTK Multi-tasking support - see "#ifdef MULTI_TASK"
|
||||
08-AUG-88 RTK Declared globals rn_dba, rn_type, and ft_offset to
|
||||
support recfrst, recnext, etc in ONE_DB mode.
|
||||
16-Sep-88 RSC Fixed DBN_Dx to use variable # of arg macros.
|
||||
28-Sep-88 WLW Corrected the db_VERSION to 3.10 from 3.01.
|
||||
11-Oct-88 RSC Fixed DBN_Dx to use variable # of arg macros (again)
|
||||
11-Oct-88 RSC Fixed ONE_DB to compile correctly
|
||||
17-Oct-88 RSC Replaced MSC with ANSI, moved compiler check to dbtype
|
||||
439 17-Nov-88 RSC Placed some multi-tasking stuff within MULTI_TASK
|
||||
441 06-Dec-88 RSC Modifications to make gen lockmgr work with 3.10
|
||||
26-Jan-89 RSC Add defn for UINT (for lockmgr)
|
||||
420 13-Feb-89 WLW Removed unused prototypes of {Make,Free}ProcInstance
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.2 1995/10/17 18:33:01 miker
|
||||
* Added global db_oflag, changed values of db_VERSION and dbd_VERSION:
|
||||
* - Allow access to read-only databases.
|
||||
* - Expand maximum file names from 48 to 240 chars (DtSrFILENMLEN).
|
||||
* - Disable transaction processing (NO_TRANS) to obviate need
|
||||
* for vista.taf and vista.log files.
|
||||
* - Disregard all environment variables.
|
||||
* - Replace default dberr.c with one that doesn't read stdin.
|
||||
* - Rename library from libvista to prevent confusion with old code.
|
||||
* - Prefix all vista utility names with "dt...", also to deconfuse.
|
||||
*
|
||||
*/
|
||||
#if defined(__linux__)
|
||||
# define __SVR4_I386_ABI_L1__
|
||||
#endif
|
||||
#include <limits.h> /* pickup WORD_BIT, LONG_BIT */
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
# undef __SVR4_I386_ABI_L1__
|
||||
# ifndef WORD_BIT
|
||||
# define WORD_BIT 32
|
||||
# endif
|
||||
# ifndef LONG_BIT
|
||||
# define LONG_BIT 32
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define db_VERSION "3.dt" /* was "3.10" */
|
||||
#define dbd_VERSION "V3.dt\032" /* was "V3.00\032" */
|
||||
|
||||
/* -------------------status codes-------------------- */
|
||||
/* user errors */
|
||||
#define S_DBOPEN -1 /* database not opened */
|
||||
#define S_INVSET -2 /* invalid set */
|
||||
#define S_INVREC -3 /* invalid record */
|
||||
#define S_INVDB -4 /* invalid database */
|
||||
#define S_INVFLD -5 /* invalid field name */
|
||||
#define S_INVADDR -6 /* invalid db_address */
|
||||
#define S_NOCR -7 /* no current record */
|
||||
#define S_NOCO -8 /* set has no current owner */
|
||||
#define S_NOCM -9 /* set has no current member */
|
||||
#define S_KEYREQD -10 /* key value required */
|
||||
#define S_BADTYPE -11 /* invalid lock type */
|
||||
#define S_HASMEM -12 /* record is owner of non-empty set(s) */
|
||||
#define S_ISMEM -13 /* record is member of set(s) */
|
||||
#define S_ISOWNED -14 /* member already owned */
|
||||
#define S_ISCOMKEY -15 /* field is a compound key */
|
||||
#define S_NOTCON -16 /* record not connected to set */
|
||||
#define S_NOTKEY -17 /* field is not a valid key */
|
||||
#define S_INVOWN -18 /* record not legal owner of set */
|
||||
#define S_INVMEM -19 /* record not legal member of set */
|
||||
#define S_SETPAGES -20 /* error in d_setpages (database open or bad param) */
|
||||
#define S_INCOMPAT -21 /* incompatible dictionary file */
|
||||
#define S_DELSYS -22 /* illegal attempt to delete system record */
|
||||
#define S_NOTFREE -23 /* attempt to locked previously locked rec or set */
|
||||
#define S_NOTLOCKED -24 /* attempt to access unlocked record or set */
|
||||
#define S_TRANSID -25 /* transaction id not be supplied */
|
||||
#define S_TRACTIVE -26 /* transaction already active */
|
||||
#define S_TRNOTACT -27 /* transaction not currently active */
|
||||
#define S_TRLOCKS -28 /* transaction cannot begin due to locked files */
|
||||
#define S_TRFREE -29 /* attempt to free a lock inside a transaction */
|
||||
#define S_TRCHANGES -30 /* too many pages changed within transaction */
|
||||
#define S_NOTRANS -31 /* attempted update outside of transaction */
|
||||
#define S_EXCLUSIVE -32 /* functions requires exclusive db access */
|
||||
#define S_STATIC -33 /* Attempted to write lock a static file */
|
||||
#define S_USERID -34 /* No user id exists */
|
||||
#define S_NAMELEN -35 /* database file/path name too long */
|
||||
#define S_RENAME -36 /* invalid file number was passed to d_renfile */
|
||||
#define S_NOTOPTKEY -37 /* field is not an optional key */
|
||||
#define S_BADFIELD -38 /* field not defined in current record type */
|
||||
#define S_COMKEY -39 /* record/field has/in a compound key */
|
||||
#define S_INVNUM -40 /* invalid record or set number */
|
||||
#define S_TIMESTAMP -41 /* record or set not timestamped */
|
||||
#define S_BADUSERID -42 /* invalid user id - not alphanumeric */
|
||||
#define S_NONETBIOS -43 /* NetBIOS is not installed on machine */
|
||||
#define S_BADBDPATH -44 /* bad # of elements in DBDPATH */
|
||||
#define S_BADBFPATH -45 /* bad # of elements in DBFPATH */
|
||||
#define S_NOTYPE -46 /* No current record type */
|
||||
#define S_INVSORT -47 /* Invalid country table sort string */
|
||||
#define S_DBCLOSE -48 /* database not closed */
|
||||
|
||||
/* system errors */
|
||||
#define S_NOSPACE -900 /* no more space on file */
|
||||
#define S_SYSERR -901 /* system error */
|
||||
#define S_FAULT -902 /* page fault -- changed during usage */
|
||||
#define S_NOWORK -903 /* no working file set in dio */
|
||||
#define S_NOMEMORY -904 /* unable to allocate sufficient memory */
|
||||
#define S_NOFILE -905 /* unable to locate a file */
|
||||
#define S_DBLACCESS -906 /* unable to access db lock file */
|
||||
#define S_DBLERR -907 /* db lock file open/access error */
|
||||
#define S_BADLOCKS -908 /* inconsistent database locks */
|
||||
#define S_RECLIMIT -909 /* file record limit reached */
|
||||
#define S_KEYERR -910 /* key file inconsistency detected */
|
||||
#define S_USERLIMIT -911 /* Max concurrent user limit reached */
|
||||
#define S_FSEEK -912 /* Bad seek on database file */
|
||||
#define S_INVFILE -913 /* Invalid file specified */
|
||||
#define S_BADREAD -914 /* Bad read on database/overflow file */
|
||||
#define S_NETSYNC -915 /* Network synchronization error */
|
||||
#define S_DEBUG -916 /* Debugging check interrupt */
|
||||
#define S_NETERR -917 /* Network communications error */
|
||||
#define S_RECOVERY -918 /* Auto-recovery is in process */
|
||||
#define S_BADWRITE -919 /* Bad write on database/overflow file */
|
||||
#define S_NOLOCKMGR -920 /* Unable to open lockmgr session */
|
||||
#define S_DUPUSERID -921 /* DBUSERID is already used by another user */
|
||||
#define S_LMBUSY -922 /* The lock manager is busy */
|
||||
|
||||
/* function statuses */
|
||||
#define S_OKAY 0 /* normal return, okay */
|
||||
#define S_EOS 1 /* end of set */
|
||||
#define S_NOTFOUND 2 /* record not found */
|
||||
#define S_DUPLICATE 3 /* duplicate key */
|
||||
#define S_KEYSEQ 4 /* field type used out of sequence in d_keynext */
|
||||
#define S_UNAVAIL 5 /* database file currently unavailable */
|
||||
#define S_DELETED 6 /* record/set deleted since last accessed */
|
||||
#define S_UPDATED 7 /* record/set updated since last accessed */
|
||||
#define S_LOCKED 8 /* current record's lock bit is set */
|
||||
#define S_UNLOCKED 9 /* current record's lock bit is clear */
|
||||
|
||||
/* In order to share databases among heterogenous machines,
|
||||
* certain integer types must be defined that are invariably
|
||||
* 2 and 4 bytes on all architectures.
|
||||
* Note WORD_BIT == 32 does not guarantee short == 16.
|
||||
*/
|
||||
|
||||
#ifdef LONG
|
||||
#undef LONG
|
||||
#endif
|
||||
|
||||
#if (WORD_BIT == 16)
|
||||
typedef int INT;
|
||||
typedef unsigned int UINT;
|
||||
#elif (WORD_BIT == 32)
|
||||
typedef short INT;
|
||||
typedef unsigned short UINT;
|
||||
#else
|
||||
#error Unable to typedef INT and UINT
|
||||
#endif
|
||||
|
||||
#if (LONG_BIT == 32)
|
||||
typedef long LONG;
|
||||
typedef unsigned long ULONG;
|
||||
#elif (WORD_BIT == 32)
|
||||
typedef int LONG;
|
||||
typedef unsigned int ULONG;
|
||||
#else
|
||||
#error Unable to typedef LONG and ULONG
|
||||
#endif
|
||||
|
||||
typedef LONG BOOLEAN;
|
||||
|
||||
#define MAXRECORDS 16777215
|
||||
#define NULL_DBA 0
|
||||
|
||||
/* db_VISTA database address */
|
||||
#define DB_ADDR LONG
|
||||
|
||||
/* db_VISTA file number */
|
||||
#define FILE_NO INT
|
||||
|
||||
/* file address: page or record number */
|
||||
#define F_ADDR LONG
|
||||
|
||||
/* record number indicator */
|
||||
#define RECMARK 10000
|
||||
/* field number indicator = rec * FLDMARK + fld_in_rec */
|
||||
#define FLDMARK 1000
|
||||
/* set number indicator - must be greater than RECMARK */
|
||||
#define SETMARK 20000
|
||||
|
||||
/* runtime option flags */
|
||||
#define DCHAINUSE 0x01
|
||||
#define TRLOGGING 0x02
|
||||
#define ARCLOGGING 0x04
|
||||
#define IGNORECASE 0x08
|
||||
|
||||
/* grouped lock request packet */
|
||||
extern int db_status;
|
||||
|
||||
/* Mike Russell's custom open() flag. Default is O_RDWR.
|
||||
* Change to O_RDONLY prior to d_open() if not updating
|
||||
* the databases, if their permissions do not allow
|
||||
* writing, if they're on cd-roms, etc.
|
||||
* Not used internally for open functions that are known
|
||||
* to require write permissions (eg initializations),
|
||||
* or known to be read-only.
|
||||
*/
|
||||
extern int db_oflag;
|
||||
|
||||
#ifndef GENERAL /* GENERAL lockmgr */
|
||||
#ifdef MSC /* MSC */
|
||||
#ifndef NO_EXT_KEYWORDS /* NO_EXT_KEYWORDS */
|
||||
#ifndef PASCAL /* PASCAL */
|
||||
#define PASCAL pascal
|
||||
#endif /* PASCAL */
|
||||
#ifndef CDECL /* CDECL */
|
||||
#define CDECL cdecl
|
||||
#endif /* CDECL */
|
||||
#endif /* NO_EXT_KEYWORDS */
|
||||
#endif /* MSC */
|
||||
#endif /* GENERAL lockmgr */
|
||||
|
||||
#ifndef PASCAL
|
||||
#define PASCAL /**/
|
||||
#endif
|
||||
|
||||
#ifndef CDECL
|
||||
#define CDECL /**/
|
||||
#endif
|
||||
|
||||
#define EXTERNAL_FIXED PASCAL
|
||||
#define EXTERNAL_VARIABLE CDECL
|
||||
#define INTERNAL_FIXED PASCAL
|
||||
#define INTERNAL_VARIABLE CDECL
|
||||
|
||||
typedef int (PASCAL *FARPROC)();
|
||||
typedef char *HANDLE;
|
||||
|
||||
#define LOCK_DESC /**/
|
||||
#define POINTER_INIT() { NULL }
|
||||
#define POINTER_ASSIGN(a) { a }
|
||||
|
||||
typedef struct {char *ptr; LOCK_DESC} CHAR_P;
|
||||
typedef struct {DB_ADDR *ptr; LOCK_DESC} DB_ADDR_P;
|
||||
|
||||
|
||||
/* Allow for function prototyping */
|
||||
#ifdef LINT_ARGS
|
||||
#define P0 void /* parameterless function */
|
||||
#define P1(t) t /* first (or only) parameter in function */
|
||||
#define Pi(t) ,t /* subsequent (2,3,...) parameter in function */
|
||||
#ifdef ANSI
|
||||
#define Piv(t) ,... /* begining of variable number of parameters */
|
||||
#define Pv(t) /**/ /* function has 0 or more parameters */
|
||||
#else
|
||||
#define Piv(t) , /* [XENIX] begining of variable number of parameters */
|
||||
#define Pv(t) , /* [XENIX] function has 0 or more parameters */
|
||||
#endif
|
||||
#else
|
||||
#define P0 /**/
|
||||
#define P1(t) /**/
|
||||
#define Pi(t) /**/
|
||||
#define Piv(t) /**/
|
||||
#define Pv(t) /**/
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define DBN_D1 Pv(int)
|
||||
#define DBN_FIX_D1 P1(int)
|
||||
#define DBN_Dn Piv(int)
|
||||
|
||||
#define TASK_DBN_D1 DBN_D1
|
||||
#define TASK_D1 P0
|
||||
#define TASK_Di /**/
|
||||
#define TASK_PTR_D1 P0
|
||||
#define TASK_PTR_Di /**/
|
||||
#define CURRTASK_PARM /**/
|
||||
#define CURRTASK_ONLY /**/
|
||||
|
||||
#define LOCK_D1 /**/
|
||||
#define LOCK_Di /**/
|
||||
|
||||
typedef struct {
|
||||
int item; /* record or set number */
|
||||
char type; /* lock type: 'r', 'w', 'x', 'k' */
|
||||
} LOCK_REQUEST;
|
||||
|
||||
|
||||
#include "dproto.h"
|
||||
|
||||
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC vista.h */
|
||||
Reference in New Issue
Block a user