This file is indexed.

/usr/share/z88dk/include/package.h is in z88dk-data 1.8.ds1-10.

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
/*
 *	Package.h
 *
 *	Defns(!) for package DORS
 *
 *	djm 9/2/2000
 *
 *	$Id: package.h,v 1.2 2001/04/20 16:04:24 dom Exp $
 */

#ifdef MAKE_PACKAGE
typedef struct  {
	int (*fn)();
} package_str;


#define PKGNAME_MAC(b) defm b & 0

#pragma asm
	INCLUDE	"#error.def"
	INCLUDE "#packages.def"

; Some needed routines

; $00xx Package Info
.packg_inf
	ld	hl,pkg_name
	ld	a,($4D3)
	ld	b,a		;name of pkg in bhl
	ld	c,$01		;Version of handling reqd
	ld	de,PACK_VERSION
	and	a		;success
	ret
.pkg_name
	PKGNAME_MAC(PACK_NAME)

.packg_exp
#ifdef PACK_BOOT
	ld	a,b		;Check for autoboot
	cp	exp_boot	;Fc=0 if so, we want to autoboot
	ret	z
#endif
	ld	a,RC_UNK
	scf
	ret

; Other essential routines have to be done by the app itself

; Start the package DOR
.in_package_dor
	defb	PACKAGE_ID
#ifdef OLDPACK
	defm	"oZ"
#else
	defb	'P'
#endif
	defb	MAX_CALL_NUM
	defw	packg_inf		;Get information
	defw	_pack_ayt	;Are You There + Allocate
	defw	_pack_bye	;Bye..and deallocate
	defw	_pack_dat	;Return info abt resources
	defw	packg_exp	;Expansion
#pragma endasm
#endif