Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtSearch / raima / proto.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $TOG: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */
24 /*
25  *   COMPONENT_NAME: austext
26  *
27  *   FUNCTIONS: ADDRcmp
28  *              ALLOC_TABLE
29  *              INTcmp
30  *              Pi
31  *              alloc_table
32  *              check_dba
33  *              close
34  *              con_dbd
35  *              con_dbf
36  *              dbn_check
37  *              dio_close
38  *              dio_clrfile
39  *              dio_findpg
40  *              dio_get
41  *              dio_open
42  *              dio_out
43  *              dio_pzalloc
44  *              dio_pzdel
45  *              dio_pzgetts
46  *              dio_pznext
47  *              dio_pzread
48  *              dio_pzsetts
49  *              dio_read
50  *              dio_release
51  *              dio_rrlb
52  *              dio_setdef
53  *              dio_touch
54  *              dio_write
55  *              dio_wrlb
56  *              exit
57  *              fldcmp
58  *              free
59  *              get_element
60  *              getenv
61  *              initdbt
62  *              key_bldcom
63  *              key_boundary
64  *              key_cmpcpy
65  *              key_delete
66  *              key_init
67  *              key_insert
68  *              key_locpos
69  *              key_reset
70  *              key_scan
71  *              locking
72  *              lseek
73  *              memcmp
74  *              memcpy
75  *              memset
76  *              nfld_check
77  *              nrec_check
78  *              nset_check
79  *              null_dba
80  *              nw_addnm
81  *              nw_call
82  *              nw_cleanup
83  *              nw_delnm
84  *              nw_hangup
85  *              nw_rcvmsg
86  *              nw_reset
87  *              nw_send
88  *              o_fileinit
89  *              o_pages
90  *              o_pzwrite
91  *              o_search
92  *              o_write
93  *              open_b
94  *              r_chkfld
95  *              r_clropt
96  *              r_delrec
97  *              r_gfld
98  *              r_gmem
99  *              r_gset
100  *              r_pfld
101  *              r_pmem
102  *              r_pset
103  *              r_setopt
104  *              r_smem
105  *              r_tstopt
106  *              read
107  *              startup
108  *              strcat
109  *              strchr
110  *              strcmp
111  *              strcpy
112  *              strlen
113  *              strncmp
114  *              strncpy
115  *              strrchr
116  *              taf_add
117  *              taf_del
118  *              task_switch
119  *              taskinit
120  *              time
121  *              unlink
122  *              write
123  *
124  *   ORIGINS: 157
125  *
126  */
127 /*----------------------------------------------------------------------------
128    proto.h: db_VISTA function declaration header file
129
130    (This file must be included after dbtype.h)
131
132    (C) Copyright 1988 by Raima Corporation.
133 ----------------------------------------------------------------------------*/
134
135 /* ********************** EDIT HISTORY *******************************
136
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
141
142 */
143
144 /* From dberr.c: */
145 void dbautorec(P0);
146
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)
152 #ifndef SINGLE_USER
153 int  termses(P0);
154 #endif
155 void termfree(P0);
156 #ifndef SINGLE_USER
157 int neterr(P0);
158 #endif
159
160 /* From dio.c: */
161 int dio_open(P1(FILE_NO));
162 int dio_close(P1(FILE_NO));
163 int dio_init(P0);
164 void dio_free(P0);
165 int dio_clrfile(P1(FILE_NO));
166 int dio_clear(P0);
167 int dio_flush(P0);
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 *));
179 #ifdef NO_TRANS
180 int dio_out(P1(PAGE_ENTRY FAR *) Pi(LOOKUP_ENTRY FAR *));
181 #else
182 int dio_out(P1(PAGE_ENTRY FAR *) Pi(LOOKUP_ENTRY FAR *) 
183                            Pi(BOOLEAN));
184 #endif
185 #ifndef  NO_TIMESTAMP
186 ULONG dio_pzsetts(P1(FILE_NO));
187 ULONG dio_pzgetts(P1(FILE_NO));
188 #endif
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));
193 void dio_pzclr(P0);
194
195 /* From initenv.c: */
196 int initenv(P0);
197
198 /* From inittab.c: */
199 int inittab(P0);
200
201 /* From keyfcns.c: */
202 int key_open(P0);
203 void key_close(P0);
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));
218
219 /* From libfcns.c: */
220 #ifndef ONE_DB
221 int dbn_check(P1(int));
222 #endif
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));
234
235 /* From makenew.c: */
236 int sk_free(P0);
237
238 /* From netwdos.c: */
239 int netbios_chk(P0);
240 int nw_reset(P1(int) Pi(int));
241 int nw_addnm(P1(char FAR *) Pi(int *));
242 int nw_cleanup(P1(char FAR *));
243 int nw_sestat(P0);
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 *));
249
250 /* From opens.c: */
251 int open_b(P1(CONST char FAR *) Pi(int));
252
253 /* From ovfcns.c: */
254 int o_setup(P0);
255 int o_init(P0);
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));
260 int o_flush(P0);
261 int o_update(P0);
262 long o_pages(P1(FILE_NO));
263 void o_free(P0);
264
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 *));
280
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 *) 
284                            Pi(char FAR *));
285 char FAR * get_element(P1(char FAR *) Pi(int));
286
287 /* From renfile.c: */
288 int renfiles(P0);
289
290 /* From startup.c: */
291 #ifndef NO_DBN_PARM
292 int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di);
293 #else
294 #ifdef MULTI_TASK
295 int startup(TASK_PTR_D1 LOCK_Di);
296 #else
297 #define startup() S_OKAY
298 #endif
299 #endif
300
301 /* From taffcns.c: */
302 int taf_open(P0);
303 int taf_close(P0);
304 int taf_access(P0);
305 int taf_release(P0);
306 int taf_add(P1(CONST char FAR *));
307 int taf_del(P1(CONST char FAR *) );
308
309 /* From task.c */
310 #ifdef MULTI_TASK
311 void task_switch(P1(DB_TASK FAR *));
312 #endif
313
314 /* From mapchar.c */
315 int  ctb_init(P0);
316 int  ctbl_alloc(P0);
317 void ctbl_free(P0);
318
319 /* System functions */
320 #ifndef _STRING_H
321 #ifndef linux
322   void CDECL memcpy(P1(char *) Pi(char *) Pi(int));
323 #endif
324   int  CDECL memcmp(P1(char *) Pi(char *) Pi(int));
325   void CDECL memset(P1(char *) Pi(char) Pi(int));
326
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));
335 #endif
336
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 */