This file is indexed.

/usr/include/ncp/eas.h is in libncp-dev 2.2.6-8.

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
/*
    eas.h
    Copyright (C) 2000  Petr Vandrovec

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    Revision History:

	1.00  2000, August 26		Petr Vandrovec <vandrove@vc.cvut.cz>
		Initial release.

	1.01  2001, December 31		Petr Vandrovec <vandrove@vc.cvut.cz>
		Updated for SWIG.

 */

#ifndef __NCP_EAS_H__
#define __NCP_EAS_H__

#include <ncp/nwcalls.h>

#define NWEA_FL_CLOSE_IMM	0x0080
#define NWEA_FL_INFO(X)		((X) << 4)
#define NWEA_FL_INFO0		NWEA_FL_INFO(0)
#define NWEA_FL_INFO1		NWEA_FL_INFO(1)
#define NWEA_FL_INFO6		NWEA_FL_INFO(6)
#define NWEA_FL_INFO7		NWEA_FL_INFO(7)
#define NWEA_FL_CLOSE_ERR	0x0004
#define NWEA_FL_SRC_DIRENT	0x0000	/* volume + DOS dirEnt */
#define NWEA_FL_SRC_NWHANDLE	0x0001	/* handle from open */
#define NWEA_FL_SRC_EAHANDLE	0x0002	/* handle from previous EA op */

struct ncp_ea_enumerate_info {
	uint_fast32_t errorCode;
	uint_fast32_t totalEAs;
	uint_fast32_t totalEAsDataSize;
	uint_fast32_t totalEAsKeySize;
	uint_fast32_t newEAhandle;
	uint_fast16_t enumSequence;
	uint_fast16_t returnedItems;
};

struct ncp_ea_read_info {
	uint_fast32_t errorCode;
	uint_fast32_t totalValuesLength;
	uint_fast32_t newEAhandle;
	uint_fast32_t accessFlag;
};

struct ncp_ea_write_info {
	uint_fast32_t errorCode;
	uint_fast32_t written;
	uint_fast32_t newEAhandle;
};

/* level0 has no special info */
struct ncp_ea_info_level1 {
	uint_fast32_t valueLength;
	uint_fast32_t accessFlag;
#ifdef SWIG
%pragma(swig) readonly
	uint_fast16_t keyLength;
	uint_fast16_tLenPrefixCharArray key[256];
%pragma(swig) readwrite
#else
	uint_fast16_t keyLength;
	u_int8_t key[256];
#endif
};

struct ncp_ea_info_level6 {
	uint_fast32_t valueLength;
	uint_fast32_t accessFlag;
	uint_fast32_t valueExtants;
	uint_fast32_t keyExtants;
#ifdef SWIG
%pragma(swig) readonly
	uint_fast16_t keyLength;
	uint_fast16_tLenPrefixCharArray key[256];
%pragma(swig) readwrite
#else
	uint_fast16_t keyLength;
	u_int8_t key[256];
#endif
};

/* level7 is returned as char array */

NWCCODE ncp_ea_close(NWCONN_HANDLE conn, uint_fast32_t EAHandle);
NWCCODE ncp_ea_duplicate(NWCONN_HANDLE conn,
		uint_fast16_t srcFlags,
		uint_fast32_t srcHandleOrVol, uint_fast32_t srcZeroOrDir,
		uint_fast16_t dstFlags,
		uint_fast32_t dstHandleOrVol, uint_fast32_t dstZeroOrDir,
		u_int32_t* duplicateCount,
		u_int32_t* dataSizeDuplicated,
		u_int32_t* keySizeDuplicated);
NWCCODE ncp_ea_enumerate(NWCONN_HANDLE conn,
		uint_fast16_t flags,
		uint_fast32_t handleOrVol, uint_fast32_t zeroOrDir,
		uint_fast32_t inspectSize,
		const void* key, size_t keyLen,
		struct ncp_ea_enumerate_info* info, 
		void* data, size_t datalen, size_t* rdatalen);
NWCCODE ncp_ea_read(NWCONN_HANDLE conn,
		uint_fast16_t flags,
		uint_fast32_t handleOrVol, uint_fast32_t zeroOrDir,
		uint_fast32_t inspectSize,
		const void* key, size_t keyLen,
		uint_fast32_t readOffset,
		struct ncp_ea_read_info* info,
		void* data, size_t datalen, size_t* rdatalen);
NWCCODE ncp_ea_write(NWCONN_HANDLE conn,
		uint_fast16_t flags,
		uint_fast32_t handleOrVol, uint_fast32_t zeroOrDir,
		uint_fast32_t totalWriteSize,
		const void* key, size_t keyLen,
		uint_fast32_t writeOffset,
		uint_fast32_t accessFlag,
		struct ncp_ea_write_info* info,
		const void* data, size_t datalen);

NWCCODE ncp_ea_extract_info_level1(const unsigned char* buffer,
		const unsigned char* endbuf,
		struct ncp_ea_info_level1* info, size_t maxsize, 
		size_t* needsize, const unsigned char** next);
NWCCODE ncp_ea_extract_info_level6(const unsigned char* buffer,
		const unsigned char* endbuf,
		struct ncp_ea_info_level6* info, size_t maxsize, 
		size_t* needsize, const unsigned char** next);
NWCCODE ncp_ea_extract_info_level7(const unsigned char* buffer,
		const unsigned char* endbuf,
		char* key, size_t maxsize, size_t* needsize,
		const unsigned char** next);

#endif	/* __NCP_EAS_H__ */