This file is indexed.

/usr/include/ComUtil/comutil.h is in ivtools-dev 1.2.11a1-11.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/*
 * Copyright (c) 1993-1995 Vectaport Inc.
 * Copyright (c) 1989 Triple Vision, Inc.
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the names of the copyright holders not be used in 
 * advertising or publicity pertaining to distribution of the software without 
 * specific, written prior permission.  The copyright holders make no 
 * representations about the suitability of this software for any purpose.  
 * It is provided "as is" without express or implied warranty.
 *
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
 * IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL,
 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef COMUTIL_INCLUDED

#define COMUTIL_INCLUDED

#include <ComUtil/comterp.err>
#include <ComUtil/util.h>
#include <ctype.h>
#include <stdio.h>

/* ================================================================== */

/* ============== START of Macro and Definitions ==================== */

#define DMM_OFF

/* Macro to supply system-independent terminal name */
#if defined(MSDOS)
#define TERMINAL "CON"
#endif
#if defined(OSK)
#define TERMINAL "/t1"
#endif

/* This declares a pointer reference with no conditional function */

#define dmm_pntr_scalar(pntr)  dmm_pntr(0,(void **)(pntr),1L,0,NULL)
#define dmm_pntr_array(pntr,nrecs,nsize) \
  dmm_pntr(1,(void **)(pntr),(unsigned long)(nrecs),(unsigned)(nsize),NULL)
#define dmm_pntr_alloc(pntr)  dmm_pntr(-1,(void **)(pntr),0L,0,NULL)

/* Flags used as returns from dmm_walk() in DMM.C */
#define  DMM_WALK_OK      0
#define  DMM_WALK_BAD    -1
#define  DMM_WALK_EMPTY  -2
#define  DMM_WALK_END    -3

/* Token types returned from LEXSCAN.C */
#define TOK_NONE        0       /* No token found */
#define TOK_IDENTIFIER  1       /* Identifier, i.e. command name */
#define TOK_OPERATOR    2       /* Operator */
#define TOK_STRING      3       /* Character string constant */
#define TOK_CHAR        4       /* Character constant */
#define TOK_DFINT       5       /* Default integer */
#define TOK_DFUNS       6       /* Default unsigned integer */
#define TOK_LNINT       7       /* Long integer */
#define TOK_LNUNS       8       /* Long unsigned integer */
#define TOK_FLOAT       9       /* Floating point number */
#define TOK_DOUBLE      10      /* Double-size floating point number */
#define TOK_EOF         11      /* End of file */
#define TOK_EOL         12      /* End of line -- only returned if _token_eol is true */

/* Token types never returned from LEXSCAN.C */
#define TOK_WHITESPACE  13      /* Spaces, tabs, new-lines, control chars */
#define TOK_OCT         14      /* Octal token */
#define TOK_HEX         15      /* Hexadecimal token */
#define TOK_COMMENT     16      /* Comment */

/* Levels for error system output */
#define USER_LEVEL	0
#define	PROG_LEVEL	1

/* Character type checking */
extern int _colon_ident;
extern int _percent_ident;
#define isident( ch )   ( isalpha( ch ) || (ch) == '_' || \
(_colon_ident && (ch) == ':') || (_percent_ident && (ch) == '%'))
#define isodigit( ch )  ( (ch) >= '0' && (ch) <= '7' )
#define isquote( ch )   ( (ch) == '\'' || (ch) == '"' )
#define isrparen( ch )   ( (ch) == ')' || (ch) == ']' || (ch) == '}')



/* Error handling macros */
#define COMERR_SET( status )\
comerr_set( status, fprintf( err_fileio(), comerr_read( status )))

#define COMERR_SET1( status, val1 )\
comerr_set( status, fprintf( err_fileio(), comerr_read( status ), val1 ))

#define COMERR_SET2( status, val1, val2 )\
comerr_set( status, fprintf( err_fileio(), comerr_read( status ), val1, val2 ))

#define COMERR_SET3( status, val1, val2, val3 )\
comerr_set( status, fprintf( err_fileio(), comerr_read( status ), val1, val2, val3 ))


/* =================== END  of Macro and Definitions ================ */

/* ================================================================== */

/* ================  START of Structure Declarations ================ */

/* ===  For XDLL.C ==== */
/*  This structure is used by the linked list routines XDLL.C */
/* They use int's instead of pointers to be easily relocatable  */
/* This means max link list is 32K bytes; but that's ok for now */

typedef struct _xdllink xdllink;
struct _xdllink {	/* these are BYTE OFFSETS */
		int prev;   /* prev link in the chain; <0 is top */
		int next;   /* next link in the chain; <0 is end */
	        };

/* === structure used with dmm_walk() routine in DMM.C === */

typedef struct _dmmwalk dmmwalk;	
struct _dmmwalk {
		int useflag;	/* false (0) is FREE, true (1) means USED */
		void *mentry;	/* entry point address for area allocated */
		unsigned long nbytes;  /* total bytes in the alloc'd area */
		unsigned long nrecs;   /* actual records in the area */
		unsigned int  nsize;   /* actual size of each record */
			};

/* ======= END of Structure Declarations ======= */

/* Package function prototypes */
#if !defined(OSK)
#include <ComUtil/comutil.arg>
#endif

#if defined(OSK)
/* -- Insert definitions of any function that does not return an integer -- */
/* DMM.C */ 
/* All int functions */
int dmm_mblock_free();
/* XDLL.C */ 
void *xdll_curr();
void *xdll_head();
void *xdll_next();
void *xdll_prev();
void *xdll_tail();
void *xdll_insert();
void *xdll_goto();
/* SYMBOLS.C */
char *symbol_pntr();
/* ERRFILE.C */
char *err_readfile();
/* ERRSYS.C */
char *err_read();
FILE *err_fileio();
/* COMERR.C */
char *comerr_read();
/* FUNCPTRS */
int ffeof();
int fferror();
/* TXTUTIL */
unsigned int txtstore();
unsigned int txtread();
unsigned int txtopenclose();
unsigned int txtkwsrch();
/* unsigned int txtprint(); */
#endif

typedef char* (*infuncptr)(char*,int,void*);
typedef int (*eoffuncptr)(void*);
typedef int (*errfuncptr)(void*);
typedef int (*outfuncptr)(const char*, void*);

extern infuncptr _oneshot_infunc;  /* to inform parser of one-shot infunc */

#endif /* not COMUTIL_INCLUDED */