This file is indexed.

/usr/share/z88dk/include/rex/syscall.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
 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
/****************************************************************/
/*		syscall.h
/*			Header for Rex addin program.
/****************************************************************/
#ifndef _SYSTEMCALL_
#define _SYSTEMCALL_

extern int __LIB__ SYSCALL0(int);
extern int __LIB__ SYSCALL1(int,...);
extern int __LIB__ SYSCALL1P(int,...);
extern int __LIB__ SYSCALL2(int,...);
extern int __LIB__ SYSCALL3(int,...);
extern int __LIB__ SYSCALL4(int,...);
extern int __LIB__ SYSCALL4D(int,...);
extern int __LIB__ SYSCALL5(int,...);
extern int __LIB__ SYSCALL5P(int,...);
extern int __LIB__ SYSCALL6(int,...);
extern int __LIB__ SYSCALL6P(int,...);


#define DS_TIME_GET				0x00
#define DS_TIME_SET				0x02
#define DS_LOCAL_TIME_GET			0x04
#define	DS_TIME_24_GET				0x06
#define	DS_TIME_24_SET				0x08
#define	DS_TIME_SUMMER_GET			0x0a
#define DS_TIME_SUMMER_SET			0x0c
#define	DS_MONTH_PERIOD_GET			0x0E
#define	DS_HOME_CITY_GET			0x10
#define	DS_HOME_CITY_SET			0x12
#define	DS_ALARM_TIME_GET			0x14
#define	DS_ALARM_TIME_SET			0x16
#define DS_ALARM_ENABLE				0x18
#define DS_ALARM_SET				0x1A
#define DS_BEEP_ON				0x1C
#define DS_BEEP_SET				0x1E
#define DS_SHELL_REFRESH_TOP			0x20
#define DS_SHELL_PROGRAM_TERM			0x22
#define DS_SHELL_PROGRAM_EXEC			0x24
#define DS_TIME_FORMAT_GET			0x26
#define DS_TIME_FORMAT_SET			0x28
#define DS_EVENT_MESSAGE_GET			0x2A

#define DS_EVENT_ADD				0x2C
#define DS_EVENT_DELETE				0x2E
#define DS_EVENT_CLEAR				0x30
#define DS_EVENT_ENABLE				0x32
#define DS_EVENT_DISABLE			0x34
#define DS_EVENT_STATUS_GET			0x36
#define DS_EVENT_PRIORITY_GET			0x38

#define DS_READ_MESSAGE				0x3a
#define DS_READ_LAST_MESSAGE			0x3c

#define DS_TRAVEL_CITY_SET			0x3e

#define DS_ADDIN_EXECUTE			0x40
#define DS_ADDIN_TERMINATE			0x42

#define DS_TRAVEL_TIME_GET			0x44
#define DS_TRAVEL_TIME_SET			0x46
#define DS_TRAVEL_CITY_GET			0x48

#define DS_DISPLAY_COMPONENT			0x4a
#define DS_SET_SCROLL_SIZE			0x4c
#define DS_DIALOG_SCROLL_THUMB_SET		0x4e
#define DS_DISP_LINE				0x50
#define DS_DISP_POINT_GET			0x52
#define DS_DISP_POINT_SET			0x54
#define DS_DISP_CIRCLE				0x56
#define DS_DISP_BLOCK_CLEAR			0x58
#define DS_DISP_BLOCK_REV			0x5A
#define DS_DISP_BLOCK				0x5C
#define DS_DISP_BLOCK_STORE			0x5E
#define DS_DISP_BLOCK_RESTORE			0x60
#define DS_DISP_IMAGE_OR			0x62
#define DS_DISP_WAIT_ICON_DRAW			0x64
#define DS_TEXT_OUT				0x66
#define DS_DIALOG_EDIT_SHOW			0x68
#define DS_DIALOG_SCROLL_DRAW			0x6A
#define DS_DIALOG_EVENT_SET			0x6C
#define DS_DIALOG_EVENT_DRAW			0x6E
#define DS_DIALOG_CHECK_BOX_SET			0x70
#define DS_DIALOG_CHECK_BOX_DRAW		0x72
#define DS_DISPLAY_BITMAP_DRAW			0x72
#define DS_DIALOG_COMPONENT_DRAW		0x74
#define DS_RESOURCE_CHANGE			0x76
#define DS_ICON_DRAW				0x78
/*#define DS_ICON_MOVE				0x7A*/
#define DS_DIALOG_TEXT_BUTTON			0x7a
#define DS_ICON_REVERSE				0x7C
#define DS_POWER_IDLE_MODE_ENTRY		0x80
#define DS_POWER_STOP_MODE_ENTRY		0x82
#define DS_POWER_MODE_GET			0x84
#define DS_POWER_MODE_SET			0x86
#define DS_POWER_BAT_INFO			0x88
#define DS_POWER_LINE_CHECK			0x8A
#define DS_POWER_OFF_TIME_SET			0x8C
#define DS_POWER_HALT_ENABLE			0x8E
#define DS_KEY_CODE_GET				0x90
#define DS_KEY_REPEAT_SET			0x92
#define DS_KEY_CLICK_SET			0x94
#define DS_FEP_EXECUTE				0x96
#define DS_SOFT_KEY_CLOSE			0x98
#define DS_TOUCH_CALIBRATION			0x9A
#define DS_TOUCH_CLICK_SET			0x9C
#define DS_TOUCH_DATA_GET			0x9E

#define DS_JSTR_CMP				0xA0
#define DS_MALLOC				0xA2
#define DS_REALLOC				0xA4
#define DS_FREE					0xA6

#define DS_VERSION_GET				0xA8
#define DS_ADDIN_PREV_GET			0xaa
#define DS_ADDIN_PREV_SET			0xac

#define DS_SYSCALL_EXTENDED			0xCE

#define DS_DB_INITIALIZE			0xD0
#define DS_DB_CREATE				0xD2
#define DS_DB_OPEN				0xD4
#define DS_DB_CLOSE				0xD6
#define DS_DB_INSERT_RECORD			0xD8
#define DS_DB_DELETE_RECORD			0xDA
#define DS_DB_READ_RECORD			0xDC
#define DS_DB_READ_FIELD			0xDE
#define DS_DB_FIND_RECORD			0xE0
#define DS_DB_NEXT_RECORD			0xE2
#define	DS_DB_PREVIOUS_RECORD			0xE4
#define DS_DB_UPDATE_RECORD			0xE6
#define DS_DB_UPDATE_FIELD			0xE8
#define DS_DB_TEXT_OP				0xEA
#define DS_DB_FLUSH				0xEC
#define DS_DB_GET_RECORD_COUNT			0xEE
#define DS_DB_DESTROY				0xF0
#define DS_DB_SESSION				0xF2
#define DS_DB_COPY_FIELD			0xF4
#define DS_DB_MISC				0xF6



#define DsTimeGet( arg1, arg2 )			SYSCALL2( DS_TIME_GET, arg1, arg2 )
#define DsTimeSet( arg1, arg2 )			SYSCALL2( DS_TIME_SET, arg1, arg2 )
#define DsLocalTimeGet( arg1, arg2, arg3 )	SYSCALL3( DS_LOCAL_TIME_GET, (int)arg1, (int)arg2, arg3 )
#define	DsTime24Get()				SYSCALL0( DS_TIME_24_GET )
#define	DsTime24Set( arg1 )			SYSCALL1( DS_TIME_24_SET, arg1 )
#define DsTimeSummerGet( arg1 )			SYSCALL1( DS_TIME_SUMMER_GET, arg1 )
#define	DsTimeSummerSet( arg1, arg2 ) 		SYSCALL2( DS_TIME_SUMMER_SET, arg1, arg2 )
#define	DsMonthPeriodGet( arg1 )		SYSCALL1( DS_MONTH_PERIOD_GET, arg1 )
#define	DsHomeCityGet()				SYSCALL0( DS_HOME_CITY_GET )
#define	DsHomeCitySet( arg1 )			SYSCALL1( DS_HOME_CITY_SET, arg1 )
#define DsTimeFormatGet()			SYSCALL0( DS_TIME_FORMAT_GET )
#define DsTimeFormatSet( arg1 )			SYSCALL1( DS_TIME_FORMAT_SET, arg1 )
#define DsTravelTimeGet( arg1, arg2 ) 		SYSCALL2( DS_TRAVEL_TIME_GET, arg1, arg2 )
#define DsTravelTimeSet( arg1, arg2 ) 		SYSCALL2( DS_TRAVEL_TIME_SET, arg1, arg2 )
#define DsTravelCityGet()			SYSCALL0( DS_TRAVEL_CITY_GET )
#define DsTravelCitySet( arg1 )			SYSCALL1( DS_TRAVEL_CITY_SET, arg1 )

#define	DsAlarmTimeGet( arg1 ) 			SYSCALL1( DS_ALARM_TIME_GET, arg1 )
#define	DsAlarmTimeSet( arg1 ) 			SYSCALL1( DS_ALARM_TIME_SET, arg1 )

#define DsAlarmEnable( arg1 )			SYSCALL1( DS_ALARM_ENABLE, arg1 )
#define DsAlarmSet( arg1 )			SYSCALL1( DS_ALARM_SET, arg1 )
#define DsBeepOn( arg1 )			SYSCALL1( DS_BEEP_ON, arg1 )
#define DsBeepSet( arg1 )			SYSCALL1( DS_BEEP_SET, arg1 )
#define DsShellRefreshTopMode()			SYSCALL0( DS_SHELL_REFRESH_TOP )
#define DsProgramTerminate( arg1 )		SYSCALL1( DS_SHELL_PROGRAM_TERM, arg1 )
#define DsProgramExecute( arg1 )		SYSCALL1( DS_SHELL_PROGRAM_EXEC, arg1 )
#define DsEventMessageGet( arg1 )		SYSCALL1( DS_EVENT_MESSAGE_GET, arg1 )
#define DsReadMessage( arg1, arg2 )		SYSCALL2( DS_READ_MESSAGE, arg1, arg2 )
#define DsReadLastMessage( arg1 )		SYSCALL1( DS_READ_LAST_MESSAGE, arg1 )

#define DsEventAdd( arg1, arg2, arg3, arg4, arg5, arg6 ) \
					SYSCALL6( DS_EVENT_ADD, arg1, arg2, arg3, arg4, arg5, arg6 )
					
#define DsEventDelete(  )			SYSCALL0( DS_EVENT_DELETE )
#define DsEventClear( ) 			SYSCALL0( DS_EVENT_CLEAR )
#define DsEventEnable( arg1 )			SYSCALL1( DS_EVENT_ENABLE, arg1 )
#define DsEventDisable( arg1 )			SYSCALL1( DS_EVENT_DISABLE, arg1 )
#define DsEventStatusGet( arg1 )		SYSCALL1( DS_EVENT_STATUS_GET, arg1 )
#define DsEventPriorityGet()			SYSCALL0( DS_EVENT_PRIORITY_GET )

#define DsAddinExecute( arg1 )			SYSCALL1( DS_ADDIN_EXECUTE, arg1 )
#define DsAddinTerminate()			SYSCALL0( DS_ADDIN_TERMINATE )



#define DsDisplayComponent( arg1, arg2, arg3 )	SYSCALL3( DS_DISPLAY_COMPONENT, arg1, arg2, arg3 )
#define DsSetScrollSize( arg1 )			SYSCALL1( DS_SET_SCROLL_SIZE, arg1 )
#define DsDialogScrollThumbSet( arg1 )		SYSCALL1( DS_DIALOG_SCROLL_THUMB_SET, arg1 )

#define DsDisplayLine( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5( DS_DISP_LINE, arg1, arg2, arg3, arg4, arg5 )
					
#define DsDisplayPointGet( arg1, arg2 ) 	SYSCALL2( DS_DISP_POINT_GET, arg1, arg2 )
#define DsDisplayPointSet( arg1, arg2, arg3 ) 	SYSCALL3( DS_DISP_POINT_SET, arg1, arg2, arg3 )

#if 0
#define DsDisplayCircle( arg1, arg2, arg3, arg4, arg5 )	SYSCALL5( DS_DISP_CIRCLE, arg1, arg2, arg3, arg4, arg5 )
#endif

#define DsDisplayBlockClear( arg1, arg2, arg3, arg4 ) \
					SYSCALL4( DS_DISP_BLOCK_CLEAR, arg1, arg2, arg3, arg4 )
					
#if 0
#define DsClearScreen() 			SYSCALL4( DS_DISP_BLOCK_CLEAR, 0, 0, 240, 120 )
#endif
					
#define DsDisplayBlockReverse( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5( DS_DISP_BLOCK_REV, arg1, arg2, arg3, arg4, arg5 )
					
#define DsDisplayBlock( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5( DS_DISP_BLOCK, arg1, arg2, arg3, arg4, arg5 )
					
#define DsDisplayBlockStore( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5( DS_DISP_BLOCK_STORE, arg1, arg2, arg3, arg4, arg5 )
					
#define DsDisplayBlockRestore( arg1, arg2 ) 	SYSCALL2( DS_DISP_BLOCK_RESTORE, arg1, arg2 )
#define DsDisplayImageDrawOr()			SYSCALL0( DS_DISP_IMAGE_OR )
#define DsDisplayWaitIconDraw( arg1 ) 		SYSCALL1( DS_DISP_WAIT_ICON_DRAW, arg1 )

#define DsTextOut( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5P( DS_TEXT_OUT, arg1, arg2, arg3, arg4, arg5 )
					
#define DsDisplayBitmapDraw( arg1, arg2, arg3, arg4 ) \
					SYSCALL4D( DS_DISPLAY_BITMAP_DRAW, arg1, arg2, arg3, arg4 )					

#define DsDialogEditShow( arg1 )		SYSCALL1( DS_DIALOG_EDIT_SHOW, arg1 )

#define DsDialogScrollBarDraw( arg1, arg2, arg3, arg4 ) \
					SYSCALL4( DS_DIALOG_SCROLL_DRAW, arg1, arg2, arg3, arg4 )
					
#define DsDialogEventSet( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5( DS_DIALOG_EVENT_SET, arg1, arg2, arg3, arg4, arg5 )
					
#define DsDialogEventDraw( arg1, arg2, arg3, arg4 )	\
					SYSCALL4D( DS_DIALOG_EVENT_DRAW, arg1, arg2, arg3, arg4 )
					
#define DsDialogCheckBoxSet( arg1, arg2, arg3, arg4 ) \
					SYSCALL4( DS_DIALOG_CHECK_BOX_SET, arg1, arg2, arg3, arg4 )
					
#define DsDialogCheckBoxDraw( arg1, arg2, arg3, arg4 ) \
					SYSCALL4( DS_DIALOG_CHECK_BOX_DRAW, arg1, arg2, arg3, arg4 )
					
#define DsDialogComponentDraw( arg1, arg2, arg3, arg4 ) \
					SYSCALL4( DS_DIALOG_COMPONENT_DRAW, arg1, arg2, arg3, arg4 )
					
#define DsResourceGet( arg1 )			SYSCALL1( DS_RESOURCE_GET, arg1 )
#define DsResourceChange( arg1 )		SYSCALL1( DS_RESOURCE_CHANGE, arg1 )
#define DsIconDraw( arg1, arg2, arg3, arg4 ) 	SYSCALL4D( DS_ICON_DRAW, arg1, arg2, arg3, arg4 )
#define DsIconMove( arg1, arg2, arg3, arg4 ) 	SYSCALL4( DS_ICON_MOVE, arg1, arg2, arg3, arg4 )
#define DsIConReverse( arg1 )			SYSCALL1( DS_ICON_REVERSE, arg1 )

#define DsDialogTextButton( arg1, arg2, arg3, arg4, arg5, arg6 ) \
					SYSCALL6P( DS_DIALOG_TEXT_BUTTON, arg1, arg2, arg3, arg4, arg5, arg6 )



#define DsPowerIdleModeEntry()			SYSCALL0( DS_POWER_IDLE_MODE_ENTRY )
#define DsPowerStopModeEntry()			SYSCALL0( DS_POWER_STOP_MODE_ENTRY )
#define DsPowerModeGet()			SYSCALL0( DS_POWER_MODE_GET )
#define DsPowerModeSet()			SYSCALL0( DS_POWER_MODE_SET	)
#define DsPowerBatteryInfoGet()			SYSCALL0( DS_POWER_BAT_INFO	)
#define DsPowerLineCheck()			SYSCALL0( DS_POWER_LINE_CHECK )
#define DsPowerOffTimeSet( arg1 )		SYSCALL1( DS_POWER_OFF_TIME_SET, arg1 )
#define DsPowerHaltEnable()			SYSCALL0( DS_POWER_HALT_ENABLE )



#define DsKeyCodeGet()				SYSCALL0( DS_KEY_CODE_GET )
#define DsKeyRepeatSet( arg1 )			SYSCALL1( DS_KEY_REPEAT_SET, arg1 )
#define DsKeyClickSet( arg1 )			SYSCALL1( DS_KEY_CLICK_SET, arg1 )
#define DsSoftKeyClose()			SYSCALL0( DS_SOFT_KEY_CLOSE	)
#define DsTouchCalibration( arg1 )		SYSCALL1( DS_TOUCH_CALIBRATION, arg1 )
#define DsTouchClickSet( arg1 )			SYSCALL1( DS_TOUCH_CLICK_SET, arg1 )
#define DsTouchDataGet( arg1 )			SYSCALL1P( DS_TOUCH_DATA_GET, arg1 )


#define DsFepExecute()				SYSCALL0( DS_FEP_EXECUTE )


#define DsJStrCmp( arg1, arg2, arg3, arg4, arg5 ) \
					SYSCALL5C( DS_JSTR_CMP, arg1, arg2, arg3, arg4, arg5 )
					
#define DsMalloc( arg1 )			(void *)SYSCALL1( DS_MALLOC, arg1 )
#define DsRealloc( arg1, arg2 )			(void *)SYSCALL2( DS_REALLOC, arg1, arg2 )
#define DsFree( arg1 )				SYSCALL1( DS_FREE, arg1 )


#define DsVersionGet()				SYSCALL0( DS_VERSION_GET )


#define DsAddinPrevGet()			SYSCALL0( DS_ADDIN_PREV_GET )
#define DsAddinPrevSet( arg1 )			SYSCALL1( DS_ADDIN_PREV_SET, arg1 )


#define DsDbInitialize( )			SYSCALL0( DS_DB_INITIALIZE )
#define DsDbCreate( arg1, arg2, arg3 ) 		SYSCALL3( DS_DB_CREATE, arg1, arg2, arg3 )
#define DsDbOpen( arg1 )			SYSCALL1( DS_DB_OPEN, arg1 )
#define DsDbClose( arg1 )			SYSCALL1( DS_DB_CLOSE, arg1 )
#define DsDbInsertRecord( arg1, arg2 ) 		SYSCALL2( DS_DB_INSERT_RECORD, arg1, arg2 )
#define DsDbDeleteRecord( arg1 )		SYSCALL1( DS_DB_DELETE_RECORD, arg1 )
#define DsDbReadRecord( arg1, arg2 ) 		SYSCALL2( DS_DB_READ_RECORD, arg1, arg2 )
#define DsDbReadField( arg1, arg2, arg3 ) 	SYSCALL3( DS_DB_READ_FIELD, arg1, arg2, arg3 )

#define DsDbFindRecord( arg1, arg2, arg3, arg4 ) \
					SYSCALL4( DS_DB_FIND_RECORD, arg1, arg2, arg3, arg4 )
					
#define DsDbNextRecord( arg1 )			SYSCALL1( DS_DB_NEXT_RECORD, arg1 )
#define DsDbPreviousRecord( arg1 )		SYSCALL1( DS_DB_PREVIOUS_RECORD, arg1 )
#define DsDbUpdateRecord( arg1, arg2 ) 		SYSCALL2( DS_DB_UPDATE_RECORD, arg1, arg2 )
#define DsDbUpdateField( arg1, arg2, arg3 ) 	SYSCALL3( DS_DB_UPDATE_FIELD, arg1, arg2, arg3 )
#define DsDbTextOp()				SYSCALL0( DS_DB_TEXT_OP )
#define DsDbFlush()				SYSCALL0( DS_DB_FLUSH )



#endif /* _SYSTEMCALL_ */