2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $TOG: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */
25 * COMPONENT_NAME: austext
127 /*----------------------------------------------------------------------------
128 proto.h: db_VISTA function declaration header file
130 (This file must be included after dbtype.h)
132 (C) Copyright 1988 by Raima Corporation.
133 ----------------------------------------------------------------------------*/
135 /* ********************** EDIT HISTORY *******************************
137 SCR DATE INI DESCRIPTION
138 ----- --------- --- -----------------------------------------------------
139 03-AUG-88 RTK Added internal MULTI_TASKing function prototypes
140 310 10-Aug-88 RSC Cleanup of function prototypes
147 /* From dblfcns.c: */
148 int taskinit(P1(TASK FAR *));
149 int initdbt(P1(CONST char FAR *));
150 int alloc_table(P1(CHAR_P FAR *) Pi(unsigned) Pi(unsigned));
151 #define ALLOC_TABLE(t, n, o, v) alloc_table((CHAR_P FAR *)(t), n, o)
161 int dio_open(P1(FILE_NO));
162 int dio_close(P1(FILE_NO));
165 int dio_clrfile(P1(FILE_NO));
168 void dio_setdef(P1(FILE_NO));
169 int dio_get(P1(F_ADDR) Pi(char FAR * FAR *) Pi(int));
170 int dio_touch(P1(F_ADDR));
171 int dio_read(P1(DB_ADDR) Pi(char FAR * FAR *) Pi(int));
172 int dio_write(P1(DB_ADDR) Pi(CONST char FAR *) Pi(int));
173 int dio_release(P1(DB_ADDR));
174 int dio_rrlb(P1(DB_ADDR) Pi(INT *));
175 int dio_wrlb(P1(DB_ADDR) Pi(INT));
176 int dio_findpg(P1(FILE_NO) Pi(F_ADDR) Pi(PAGE_ENTRY FAR *)
177 Pi(PAGE_ENTRY FAR * FAR *)
178 Pi(LOOKUP_ENTRY FAR * FAR *));
180 int dio_out(P1(PAGE_ENTRY FAR *) Pi(LOOKUP_ENTRY FAR *));
182 int dio_out(P1(PAGE_ENTRY FAR *) Pi(LOOKUP_ENTRY FAR *)
186 ULONG dio_pzsetts(P1(FILE_NO));
187 ULONG dio_pzgetts(P1(FILE_NO));
189 int dio_pzread(P1(FILE_NO));
190 int dio_pzalloc(P1(FILE_NO) Pi(F_ADDR *));
191 int dio_pzdel(P1(FILE_NO) Pi(F_ADDR));
192 F_ADDR dio_pznext(P1(FILE_NO));
195 /* From initenv.c: */
198 /* From inittab.c: */
201 /* From keyfcns.c: */
204 int key_init(P1(int));
205 int key_reset(P1(FILE_NO));
206 int key_locpos(P1(CONST char FAR *) Pi(DB_ADDR FAR *));
207 int key_scan(P1(int) Pi(DB_ADDR *));
208 int key_boundary(P1(int) Pi(DB_ADDR *));
209 int key_insert(P1(int) Pi(CONST char FAR *) Pi(DB_ADDR));
210 int key_delete(P1(int) Pi(CONST char FAR *) Pi(DB_ADDR));
211 /* Due to a problem with MSC 5.1, we couldn't declare the 2nd parm
212 of key_bldcom as const (see keyfcns.c) */
213 int key_bldcom(P1(int) Pi(char FAR *) Pi(char FAR *) Pi(int));
214 /* Because of a "problem" with the MSC 5.1 compiler, we couldn't declare
215 the second argument to key_cmpcpy with a const attribute. Hence we
216 were not able to define the 2nd argument of key_bldcom as const. */
217 void key_cmpcpy(P1(char FAR *) Pi(char FAR *) Pi(INT));
219 /* From libfcns.c: */
221 int dbn_check(P1(int));
223 int nset_check(P1(int) Pi(int *) Pi(SET_ENTRY FAR * FAR *));
224 int nfld_check(P1(long) Pi(int *) Pi(int *)
225 Pi(RECORD_ENTRY FAR * FAR *)
226 Pi(FIELD_ENTRY FAR * FAR *));
227 int nrec_check(P1(int) Pi(int *) Pi(RECORD_ENTRY FAR * FAR *));
228 int fldcmp(P1(FIELD_ENTRY FAR *) Pi(CONST char FAR *)
229 Pi(CONST char FAR *));
230 int INTcmp(P1(CONST char FAR *) Pi(CONST char FAR *));
231 int ADDRcmp(P1(CONST DB_ADDR FAR *) Pi(CONST DB_ADDR FAR *));
232 int null_dba(P1(CONST char FAR *));
233 int check_dba(P1(DB_ADDR));
235 /* From makenew.c: */
238 /* From netwdos.c: */
240 int nw_reset(P1(int) Pi(int));
241 int nw_addnm(P1(char FAR *) Pi(int *));
242 int nw_cleanup(P1(char FAR *));
244 int nw_delnm(P1(char FAR *));
245 int nw_call(P1(char FAR *) Pi(char FAR *) Pi(int *));
246 int nw_hangup(P1(int));
247 int nw_send(P1(int) Pi(MESSAGE FAR *) Pi(int));
248 int nw_rcvmsg(P1(int) Pi(MESSAGE FAR *) Pi(int) Pi(int *));
251 int open_b(P1(CONST char FAR *) Pi(int));
256 int o_fileinit(P1(FILE_NO));
257 int o_search(P1(FILE_NO) Pi(F_ADDR) Pi(F_ADDR *));
258 int o_write(P1(PAGE_ENTRY FAR *) Pi(LOOKUP_ENTRY FAR *));
259 int o_pzwrite(P1(FILE_NO));
262 long o_pages(P1(FILE_NO));
265 /* From recfcns.c: */
266 int r_chkfld(P1(INT) Pi(FIELD_ENTRY FAR *) Pi(char FAR *)
267 Pi(CONST char FAR *));
268 int r_delrec(P1(INT) Pi(DB_ADDR));
269 int r_gfld(P1(FIELD_ENTRY FAR *) Pi(char FAR *) Pi(char FAR *));
270 int r_gmem(P1(int) Pi(char FAR *) Pi(char FAR *));
271 int r_gset(P1(int) Pi(char FAR *) Pi(char FAR *));
272 int r_pfld(P1(INT) Pi(FIELD_ENTRY FAR *) Pi(char FAR *)
273 Pi(CONST char FAR *) Pi(DB_ADDR FAR *));
274 int r_pmem(P1(int) Pi(char FAR *) Pi(char FAR *));
275 int r_pset(P1(int) Pi(char FAR *) Pi(char FAR *));
276 int r_smem(P1(DB_ADDR FAR *) Pi(INT));
277 int r_setopt(P1(FIELD_ENTRY FAR *) Pi(char FAR *));
278 int r_clropt(P1(FIELD_ENTRY FAR *) Pi(char FAR *));
279 int r_tstopt(P1(FIELD_ENTRY FAR *) Pi(char FAR *));
281 /* From pathfcns.c */
282 int con_dbd(P1(char FAR *) Pi(char FAR *) Pi(char FAR *));
283 int con_dbf(P1(char FAR *) Pi(char FAR *) Pi(char FAR *)
285 char FAR * get_element(P1(char FAR *) Pi(int));
287 /* From renfile.c: */
290 /* From startup.c: */
292 int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di);
295 int startup(TASK_PTR_D1 LOCK_Di);
297 #define startup() S_OKAY
301 /* From taffcns.c: */
306 int taf_add(P1(CONST char FAR *));
307 int taf_del(P1(CONST char FAR *) );
311 void task_switch(P1(DB_TASK FAR *));
319 /* System functions */
322 void CDECL memcpy(P1(char *) Pi(char *) Pi(int));
324 int CDECL memcmp(P1(char *) Pi(char *) Pi(int));
325 void CDECL memset(P1(char *) Pi(char) Pi(int));
327 int CDECL strcmp(P1(CONST char *) Pi(CONST char *));
328 char * CDECL strcpy(P1(char *) Pi(CONST char *));
329 char * CDECL strcat(P1(char *) Pi(CONST char *));
330 int CDECL strlen(P1(CONST char *));
331 int CDECL strncmp(P1(CONST char *) Pi(CONST char *) Pi(int));
332 char * CDECL strncpy(P1(char *) Pi(CONST char *) Pi(int));
333 char * CDECL strchr(P1(CONST char *) Pi(int));
334 char * CDECL strrchr(P1(CONST char *) Pi(int));
337 void CDECL free(P1(void FAR *)); /* AIXV3 - DPG 07/05/90 */
338 time_t CDECL time(P1(long *));
339 int CDECL write(P1(int) Pi(char *) Pi(unsigned int));
340 int CDECL read(P1(int) Pi(char *) Pi(unsigned int));
341 long CDECL lseek(P1(int) Pi(long) Pi(int));
342 int CDECL close(P1(int));
343 void CDECL exit(P1(int));
344 char * CDECL getenv(P1(CONST char *));
345 int CDECL locking(P1(int) Pi(int) Pi(long));
346 int CDECL unlink(P1(CONST char *));
347 /* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin proto.h */