This file is indexed.

/usr/include/autotest.h is in unixodbc-dev 2.2.14p2-5ubuntu3.

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
/*---------------------------------------------------------------------------------
 |  Title:		AUTOTEST.H
 |
 |	This file contains constants and prototypes required to compile an 
 |	Auto Test DLL.
 |
 |  Should be consistant with MS version
 |
 *---------------------------------------------------------------------------------*/
#ifndef AUTOTEST_DEFS
#define AUTOTEST_DEFS

#include <stdlib.h>
#include <string.h>
#include "sql.h"
#include "sqlext.h"
#include "sqltypes.h"

#ifdef __cplusplus
extern "C" { 
#endif	/* __cplusplus */

#ifdef PATH_MAX
#define _MAX_PATH           PATH_MAX
#else
#define _MAX_PATH           256
#endif

extern  HINSTANCE           hLoadedInst;
    
/*----------------------------------------------------------------------------------
		Defines and Macros
----------------------------------------------------------------------------------*/

#define TEST_ABORTED						(-1)

#define AUTO_MAX_TEST_NAME				    35
#define AUTO_MAX_TESTCASE_NAME		        35
#define AUTO_MAX_TESTDESC_NAME		        75

#define MAXFLUSH		 	 			    300
#define MAX_USER_INFO	  				    50
#define MAX_KEYWORD_LEN	 			        149

#define EXTFUNCDECL
#define EXTFUN							

#define InitTest(lps)															\
{ 	lps->cErrors=0; }
#define AbortTest(lps)															\
{ lps->cErrors=TEST_ABORTED; }

#define     AllocateMemory(cb)	            (calloc(cb,1))
#define     ReleaseMemory(lp)		        (free(lp))

#define NumItems(s) (sizeof(s) / sizeof(s[0]))

/* Following will access bit number pos in a bit array and return */
/*		TRUE if it is set, FALSE if it is not */
#define CQBITS (sizeof(unsigned int) * 8)
#define getqbit(lpa, pos)	\
	(lpa[((pos) / CQBITS)] & (1 << ((pos) - (CQBITS * ((pos) / CQBITS)))))
#define GETBIT(p1,p2) getqbit(p1,(p2)-1)

/*
 * Message box defines
 */

#define MB_OK                               (0x0000)
#define MB_ABORTRETRYIGNORE                 (0x0001)
#define MB_OKCANCEL                         (0x0002)
#define MB_RETRYCANCEL                      (0x0003)
#define MB_YESNO                            (0x0004)
#define MB_YESNOCANCEL                      (0x0005)

#define MB_ICONEXCLAMATION                  (0x0000)
#define MB_ICONWARNING                      MB_ICONEXCLAMATION
#define MB_ICONINFORMATION                  (0x0010)
#define MB_ICONASTERISK                     MB_ICONINFORMATION
#define MB_ICONQUESTION                     (0x0020)
#define MB_ICONSTOP                         (0x0030)
#define MB_ICONERROR                        MB_ICONSTOP
#define MB_ICONHAND                         MB_ICONSTOP

#define MB_DEFBUTTON1                       (0x0000)
#define MB_DEFBUTTON2                       (0x0100)
#define MB_DEFBUTTON3                       (0x0200)
#define MB_DEFBUTTON4                       (0x0300)

#define MB_APPMODAL                         (0x0000)
#define MB_SYSTEMMODAL                      (0x1000)
#define MB_TASKMODAL                        (0x2000)

#define MB_DEFAULT_DESKTOP_ONLY             (0x0000)
#define MB_HELP                             (0x0000)
#define MB_RIGHT                            (0x0000)
#define MB_RTLREADING                       (0x0000)
#define MB_SETFOREGROUND                    (0x0000)
#define MB_TOPMOST                          (0x0000)
#define MB_SERVICE_NOTIFICATION             (0x0000)
#define MB_SERVICE_NOTIFICATION_NT3X        (0x0000)

/*
// This structure contains the information found in the .INI file for a 
//	data source.  The filled out structure is in turn passed to AutoTestFunc
//	to drive the individual tests.
*/
typedef struct tagSERVERINFO {
	HWND	 		hwnd;								/* Output edit window */
	CHAR   		    szLogFile[_MAX_PATH];		        /* Output log file */
	HENV 			henv;								/* .EXE's henv */
	HDBC 			hdbc;								/* .EXE's hdbc */
	HSTMT			hstmt;							    /* .EXE's hstmt */

	/* The following items are gathered from the .INI file and may be defined */
	/*		via the "Manage Test Sources" menu item from ODBC Test */
	CHAR 			szSource[SQL_MAX_DSN_LENGTH+1];
	CHAR 			szValidServer0[SQL_MAX_DSN_LENGTH+1];
	CHAR 			szValidLogin0[MAX_USER_INFO+1];
	CHAR 			szValidPassword0[MAX_USER_INFO+1];
	CHAR			szKeywords[MAX_KEYWORD_LEN+1];

	/* Following are used for run-time */
	UINT FAR * 	rglMask;  						    /* Run test mask */
	int  		failed;							    /* Track failures on a test case basis */
	int  		cErrors;						    /* Count of errors */
	BOOL 		fDebug;							    /* TRUE if debugging is to be enabled */
	BOOL 		fScreen;						    /* TRUE if test output goes to screen */
	BOOL 		fLog;							    /* TRUE if test output goes to log */
	BOOL 		fIsolate;						    /* TRUE to isolate output */
	UDWORD		vCursorLib;						    /* Value for SQL_ODBC_CURSOR on SQLSetConnectOption */
	HINSTANCE   hLoadedInst;					    /* Instance handle of loaded test */

	/* Following are used for buffering output to edit window */
	CHAR			szBuff[MAXFLUSH];				/* Hold temporary results */
	UINT			cBuff;							/* Number of TCHARs in szBuff */
	} SERVERINFO;
typedef SERVERINFO FAR * lpSERVERINFO;


/*----------------------------------------------------------------------------------
// Function prototypes
//---------------------------------------------------------------------------------*/
BOOL EXTFUNCDECL FAR szLogPrintf(lpSERVERINFO lps, BOOL fForce, LPTSTR szFmt, ...);
int EXTFUNCDECL FAR szMessageBox(HWND hwnd, UINT style, LPTSTR szTitle, LPTSTR szFmt, ...);
LPTSTR EXTFUN GetRCString(HINSTANCE hInst, LPTSTR buf, int cbbuf, UINT ids);

#ifdef __cplusplus
}
#endif

#endif