This file is indexed.

/usr/include/ncarg/hlu/Error.h is in libncarg-dev 6.3.0-6build1.

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
/*
 *      $Id: Error.h,v 1.10 2007-08-22 21:03:53 grubin Exp $
 */
/************************************************************************
*									*
*			     Copyright (C)  1992			*
*	     University Corporation for Atmospheric Research		*
*			     All Rights Reserved			*
*									*
************************************************************************/
/*
 *	File:		Error.h
 *
 *	Author:		Jeff W. Boote
 *			National Center for Atmospheric Research
 *			PO 3000, Boulder, Colorado
 *
 *	Date:		Tue Oct 20 11:38:28 MDT 1992
 *
 *	Description:	The Error reporting object.  All errors are processed
 *			by this object.  To modify the error reporting
 *			mechanism the user needs to set resources in this
 *			object.  At this time, it will only be possible to
 *			have one error reporting object.
 */
#ifndef _NError_h
#define _NError_h

#include <errno.h>
#include <ncarg/hlu/Base.h>

/* Resource Names */

#define NhlNerrBuffer	"errBuffer"
#define NhlCerrBuffer	"ErrBuffer"
#define NhlNerrLevel	"errLevel"
#define NhlCerrLevel	"ErrLevel"
#define NhlNerrPrint	"errPrint"
#define NhlCerrPrint	"ErrPrint"
#define NhlNerrFileName	"errFileName"
#define NhlCerrFileName	"ErrFileName"

#define NhlNerrFilePtr	"errFilePtr"
#define NhlCerrFilePtr	"ErrFilePtr"

#define NhlNerrUnitNumber	"errUnitNumber"
#define NhlCerrUnitNumber	"ErrUnitNumber"

/* new type names */

#define NhlTErrorTypes		"ErrorTypes"

/* usefull const's for error stuff */
#define NhlEUNKNOWN	(1000)

#define NhlENODATA	(1101)
#define NhlECONSTFIELD	(1102)
#define NhlEZEROFIELD   (1103)
#define NhlEZEROSPAN    (1104)

#ifndef ENOSYS
#define	ENOSYS	(90)
#endif
#define NhlERRMAXMSGLEN 2048

extern NhlClass NhlerrorClass;

/************************************************************************
*									*
*	Global Functions - Error API					*
*									*
************************************************************************/

typedef struct _NhlErrMsg{
	NhlErrorTypes	severity;
	char		*msg;
	int		errorno;
	Const char	*sysmsg;
	int		line;
	char		*fname;
} NhlErrMsg, *NhlErrMsgList;

/*VARARGS3*/
extern Const char *NhlPError(
#if	NhlNeedVarArgProto
	NhlErrorTypes	severity,	/* error severity	*/
	int		errnum,		/* errornum in table	*/
	char		*fmt,		/* fmt string		*/
	...				/* args for fmt string	*/
#endif
);

/*
 * Macro:	NHLPERROR
 *
 * Description:	This macro adds __LINE__ and __FILE__ information to the
 *		error message being reported.  The arguements are identical
 *		to NhlPError except that an additional set of parend's must
 *		be used to allow variable args in the macro.  ex.
 *		NHLPERROR((severity,errnum,fmt [,args ...]));
 *
 * In Args:
 *		NhlErrorTypes	severity,	error severity
 *		int		errnum,		errornum in table
 *		char		*fmt,		fmt string
 *		...				args for fmt string
 *
 * Out Args:	
 *
 * Scope:	Global Public
 * Returns:	void
 * Side Effect:	
#ifdef NCLDEBUG
 */
#if 1
#define NHLPERROR(vargs)	{_NhlPErrorHack(__LINE__,\
				(Const char*)__FILE__);\
				(void)NhlPError vargs;}
#else
#define NHLPERROR(vargs)	{(void)NhlPError vargs;}
#endif

extern void _NhlPErrorHack(
#if	NhlNeedProto
	int		line,	/* line number	*/
	Const char	*fname	/* file name	*/
#endif
);

extern int NhlErrGetID(
#if	NhlNeedProto
	void
#endif
);

extern int NhlErrNumMsgs(
#if	NhlNeedProto
	void
#endif
);

extern NhlErrorTypes NhlErrGetMsg(
#if	NhlNeedProto
	int		msgnum,	/* msg num to retrieve	*/
	Const NhlErrMsg	**msg	/* return msg		*/
#endif
);

extern NhlErrorTypes NhlErrClearMsgs(
#if	NhlNeedProto
	void
#endif
);

extern NhlErrorTypes NhlErrAddTable(
#if	NhlNeedProto
	int		start,		/* starting number		*/
	int		tlen,		/* table length			*/
	Const char	**etable	/* table of err messages	*/
#endif
);

extern Const char *NhlErrFPrintMsg(
#if	NhlNeedProto
	FILE		*fp,	/* file to print to	*/
	Const NhlErrMsg	*msg	/* message to print	*/
#endif
);

extern char *NhlErrSPrintMsg(
#if	NhlNeedProto
	char		*buffer,	/* buffer to print message to	*/
	Const NhlErrMsg	*msg		/* message to print		*/
#endif
);


extern int  NhlGetErrorObjectId(
#if NhlNeedProto
    void
#endif
);

#endif  /* _NError_h */