cterrc_h

/*
 *	user error codes
 *
 *	This program is the CONFIDENTIAL and PROPRIETARY property 
 *	of FairCom(R) Corporation. Any unauthorized use, reproduction or
 *	transfer of this program is strictly prohibited.
 *
 *	Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989 FairCom Corporation
 *	(Subject to limited distribution and
 *	 restricted disclosure only.)
 *	*** ALL RIGHTS RESERVED ***
 *
 *	4006 West Broadway
 *	Columbia, MO 65203
 *
 *
 *	c-tree(R)	Version 4.3
 *			Release C 
 *			February 7, 1989 17:30
 *
 */


		/* USER ERROR CODES */

#define NO_ERROR	0

#define	KDUP_ERR	2	/* key value already exists */

#define	KMAT_ERR	3	/* could nor delete since pntr's don't match */
#define	KDEL_ERR	4	/* could not find key to delete */
#define	KBLD_ERR	5	/* cannot call delete w/o verification with  */
				/* duplicate keys */

/* *** 8 is reserved for NO_RQST defined in CTCOMM.H *** */

#define SPAC_ERR	10	/* INTREE parameters require too much space */
#define SPRM_ERR	11	/* bad INTREE parameters */
#define FNOP_ERR	12	/* could not open index file */
#define	FUNK_ERR	13	/* unknown file type */
#define FCRP_ERR	14	/* file corrupt at open */
#define FCMP_ERR	15	/* file has been compacted */
#define KCRAT_ERR	16	/* could not create index file */
#define DCRAT_ERR	17	/* could not create data file */
#define KOPN_ERR	18	/* tried to create existing index file */
#define DOPN_ERR	19	/* tried to create existing data file */
#define KMIN_ERR	20	/* key length too large for node size */
#define DREC_ERR	21	/* record length too small */
#define FNUM_ERR	22	/* file number out of range */
#define KMEM_ERR	23	/* illegal index member info */
#define FCLS_ERR	24	/* could not close file */
#define KLNK_ERR	25	/* bad link in deleted node list. REBUILD */
#define FACS_ERR	26	/* file number not active */
#define LBOF_ERR	27	/* drn before beginning of data records */
#define ZDRN_ERR	28	/* zero drn in ADDKEY */
#define ZREC_ERR	29	/* zero drn in data file routine */
#define LEOF_ERR	30	/* drn exceeds logical end of file */
#define DELFLG_ERR	31	/* flag not set on record in delete chain */
#define	DDRN_ERR	32	/* attempt to delete record twice in a row */
#define DNUL_ERR	33	/* attempt to use NULL ptr in read/write */
#define PRDS_ERR	34	/* predecessor repeat attempts exhausted */
#define SEEK_ERR	35	/* seek error  */
#define READ_ERR	36	/* read error  */
#define WRITE_ERR	37	/* write error */
#define	VRTO_ERR	38	/* could not convert virtual open to actual */
#define FULL_ERR	39	/* no more records availble */
#define KSIZ_ERR	40	/* key recsiz in OPNIDX too large */
#define UDLK_ERR	41	/* could not unlock data record */
#define DLOK_ERR	42	/* could not obtain data record lock */
#define FVER_ERR	43	/* index file  -  version incompatibility */
#define OSRL_ERR	44	/* data file serial number overflow */
#define KLEN_ERR	45	/* key length exceeds MAXLEN parameter */
#define	FUSE_ERR	46	/* file number already in use.		  */
#define FINT_ERR	47	/* c-tree has not been initialized	  */
#define FMOD_ERR	48	/* file mode incompatibility		  */
#define	FSAV_ERR	49	/* could not save file			  */
#define LNOD_ERR	50	/* could not lock node */
#define UNOD_ERR	51	/* could not unlock node */
#define KTYP_ERR	52	/* variable length keys disabled in  CTOPTN.H */
#define FTYP_ERR	53	/* variable length records disabled in   "    */
#define REDF_ERR	54	/* attempt to write a read only file	      */
#define DLTF_ERR	55	/* file deletion failed			      */
#define DLTP_ERR	56	/* file must be opened exclusive for delete   */
#define DADV_ERR	57	/* attempt to write or delete w/o proper lock */
				/* or with a conflicting lock (server only)   */
				/* see CHECK_LOCK/MUST_LOCK in CTSRVR.C	      */
#define KLOD_ERR	58	/* LOADKEY called with incorrect key number.  */
				/* You cannot continue.			      */
#define KLOR_ERR	59	/* LOADKEY called with key out of  	      */
				/* order. You may skip this key & continue.   */
#define KFRC_ERR	60	/* fractal out of range: should be 0 to 100   */


#define	ICUR_ERR	100	/* no current record for isam datno  */
#define	INOT_ERR	101	/* could not find isam keyno request */
#define INOD_ERR	102	/* could not open ISAM parameter file */
#define IGIN_ERR	103	/* could not read first 5 parameters in ISAM */
				/* parameter file */
#define IFIL_ERR	104	/* too many files in ISAM parameter file */
#define IUND_ERR	105	/* could not undo ISAM update. Rebuild Files */
#define IDRI_ERR	106	/* could not read data file record in ISAM */
				/* parameter file */
#define IDRK_ERR	107	/* too many keys for data file in ISAM */
				/* parameter file */
#define IMKY_ERR	108	/* incorrect keyno for index member in */
				/* parameter file */
#define IKRS_ERR	109	/* too many key segments defined in ISAM */
				/* parameter file */
#define ISRC_ERR	110	/* could not read segment record in ISAM */
				/* parameter file */
#define	IKRI_ERR	111	/* could not read index file record in ISAM */
				/* parameter file */
#define IPND_ERR	112	/* LKISAM(ENABLE) found pending locks	   */
#define INOL_ERR	113	/* no space left in internal lock table */
#define IRED_ERR	114	/* 1st byte of data record eqauls delete flag */
#define ISLN_ERR	115	/* key segments do not match key length */
#define IMOD_ERR	116	/* bad isamod parmeter (isam_fil = isamod) */
#define	IMRI_ERR	117	/* could not read index member record	   */
#define SKEY_ERR	118	/* NXTSET called before FRSSET for keyno   */
#define SKTY_ERR	119	/* FRSSET called for index with wrong keytyp */

#define RRLN_ERR	120	/* data record length exceeds rebuild max  */
#define RSPC_ERR	121	/* not enough space for sort area.	   */
#define RMOD_ERR	122	/* attempt to change fixed vs variable len */
#define	RVHD_ERR	123	/* var length header has bad record mark   */
#define INIX_ERR	124	/* # of indices does not match (OPNIFIL)   */
#define IINT_ERR	125	/* c-tree already initialized		   */

#define VMAX_ERR	140	/* variable record length too int */
#define	VDLK_ERR	146	/* could not update free space info */
#define VDLFLG_ERR	147	/* space to be reused is not marked deleted */
#define	VLEN_ERR	148	/* WRTVREC cannot fit record at recbyt */
#define	VRLN_ERR	149	/* varlen less than minimum in ADDVREC */
#define	VBSZ_ERR	153	/* buffer too small in REDVREC */
#define	VRCL_ERR	154	/* zero length record in REDVREC */
#define	VFLG_ERR	158	/* REDVREC record not marked active */
#define	VPNT_ERR	159	/* zero recbyt value */
#define ITIM_ERR	160	/* multi-user interefernce: index informa-  */
				/* tion updated by the time user got to	*/
				/* actual data record. */

#define IKRU_ERR	180	/* could not read symbolic key name	  */
#define IKMU_ERR	181	/* could not get mem for key symb name	  */
#define IKSR_ERR	182	/* no room for sort key. increase MAXFIL  */
#define IDRU_ERR	183	/* could not read file field number values*/
#define ISDP_ERR	184	/* attempt to reallocate set space	  */
#define ISAL_ERR	185	/* not enough memory for multiple sets	  */
#define ISNM_ERR	186	/* set number out of range		  */
#define IRBF_ERR	187	/* null buffer in rtread.c		  */
#define ITBF_ERR	188	/* null target buffer in rtread.c	  */
#define IJSK_ERR	189	/* join_to skip				  */
#define IJER_ERR	190	/* join_to error			  */
#define IJNL_ERR	191	/* join_to null fill			  */
#define IDSK_ERR	192	/* detail_for skip			  */
#define IDER_ERR	193	/* detail_for error			  */
#define IDNL_ERR	194	/* detail_for null fill			  */
#define IDMU_ERR	195	/* could not get mem for dat symb name	  */
#define ITML_ERR	196	/* exceeded RETRY_LIMIT in RTREAD.C	  */


/* ************************************************************************ */
/* 			SERVER RELATED ERROR CODES			    */
/* ************************************************************************ */

#ifndef NO_SERVE
#define ABDR_ERR	126	/* bad directory path get		    */
#define ARQS_ERR	127	/* could not send request		    */
#define ARSP_ERR	128	/* could not receive answer		    */
#define ARDO_ERR	129	/* redo call to server			    */
#define AFNM_ERR	130	/* null file name pointer in OPNFIL	    */
#define AFLN_ERR	131	/* file name length exceeds msg size	    */
#define ASPC_ERR	132	/* no room for application message buffer   */
#define ASKY_ERR	133	/* could not identify server		    */
#define ASID_ERR	134	/* could not get servers message id	    */
#define AAID_ERR	135	/* could not allocate application id	    */
#define AMST_ERR	136	/* could not get application msg status	    */
#define AMQZ_ERR	137	/* could not set message appl msg size	    */
#define AMRD_ERR	138	/* could not get rid of application msg	    */ 
#define ABNM_ERR	139	/* badly formed file name		    */
#define AMSG_ERR	141	/* required message size exceeds maximum    */

#define SMXL_ERR	142	/* application MAXLEN > server's MAXLEN     */
#define SHND_ERR	143	/* communications handler not installed	    */
#define AAKY_ERR	144	/* application could not id output queue    */
#define ALOG_ERR	145	/* no message space. was login ok?	    */
#define SHUT_ERR	150	/* server is shutting down		    */
#define STRN_ERR	151	/* could not shut down. transactions pending*/
#define SINA_ERR	161	/* user appears inactive		    */
#define STRY_ERR	162	/* retry request: file contention	    */
#define SFRE_ERR	163	/* no more room in server lock table	    */
#define SFIL_ERR	164	/* file number out of range		    */
#define SNFB_ERR	165	/* no ct file control block		    */
#define SNMC_ERR	166	/* no more ct file control blocks in server */
#define SRQS_ERR	167	/* could not read request		    */
#define SRSP_ERR	168	/* could not send answer		    */
#define SSCB_ERR	169	/* server could not allocate user ctl blks  */
#define SFUN_ERR	170	/* bad function number at server	    */
#define SMSG_ERR	171	/* application msg size exceeds server size */
#define SSPC_ERR	172	/* could not allocate server msg buffer	    */
#define SSKY_ERR	173	/* could not identify server		    */
#define SSID_ERR	174	/* could not get server message id	    */
#define SAMS_ERR	175	/* server could not allocate user msg area  */	
#define SMST_ERR	176	/* could not get server msg status	    */
#define SMQZ_ERR	177	/* could not set message server msg size    */
#define SMRD_ERR	178	/* could not get rid of server msg	    */ 
#define SOUT_ERR	179	/* server is at full user capacity	    */
#endif

/* end of cterrc.h */