Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtSearch / dproto.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 /* $XConsortium: dproto.h /main/2 1996/05/09 03:55:20 drk $ */
24 /*----------------------------------------------------------------------------
25    dproto.h: db_VISTA (user) function declaration header file
26
27    (C) Copyright 1988 by Raima Corporation.
28 ----------------------------------------------------------------------------*/
29
30 /* ********************** EDIT HISTORY *******************************
31
32  SCR    DATE    INI                   DESCRIPTION
33 ----- --------- --- -----------------------------------------------------
34   571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
35 */
36
37
38 int d_setfiles(P1(int));                                /* dio.c */
39 int d_setpages(P1(int) Pi(int));                        /* dio.c */
40 int d_trbound(P0);                              /* trlog.c */
41 int d_trlog(P1(int) Pi(int) Pi(CONST char FAR *) Pi(int)); 
42                                                                 /* trlog.c */
43 int d_trmark(P0);                               /* trlog.c */
44 int d_tron(P0);                                 /* trlog.c */
45 int d_troff(P0);                                        /* trlog.c */
46 int d_decode_dba(P1(DB_ADDR) Pi(int FAR *) Pi(long FAR *)); 
47                                                                 /* dbacode.c */
48 int d_encode_dba(P1(int) Pi(long) Pi(DB_ADDR FAR *)); 
49                                                                 /* dbacode.c */
50
51 #define d_memlock(p)            /**/
52 #define d_memlock_group(lg)     S_OKAY
53 #define d_memunlock(p)          /**/
54 #define d_memunlock_group(lg)   /**/
55 char FAR * d_alloc(P1(unsigned));               /* alloc.c */
56 char FAR * d_calloc(P1(unsigned) Pi(unsigned)); /* alloc.c */
57 void d_free(P1(CHAR_P FAR *));                  /* alloc.c */
58
59 #ifndef MULTI_TASK                      /* MULTI_TASK */
60 #define dt_opentask(a) S_OKAY
61 #define dt_closetask(a) S_OKAY
62
63 int d_close(P0);                                        /* dblfcns.c */
64 int d_cmstat(P1(int) DBN_Dn);                   /* cmstat.c */
65 int d_cmtype(P1(int) Pi(int FAR *) DBN_Dn);     /* cmtype.c */
66 int d_connect(P1(int) DBN_Dn);                  /* connect.c */
67 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
68 int d_costat(P1(int) DBN_Dn);                   /* costat.c */
69 #endif                                     /* NO_TIMESTAMP */
70 int d_cotype(P1(int) Pi(int FAR *) DBN_Dn);     /* cotype.c */
71 int d_crget(P1(DB_ADDR FAR *) DBN_Dn);          /* crget.c */
72 int d_crread(P1(long) Pi(char FAR *) DBN_Dn);   /* crread.c */
73 int d_crset(P1(DB_ADDR FAR *) DBN_Dn);          /* crset.c */
74 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
75 int d_crstat(P0);                               /* crstat.c */
76 #endif                                     /* NO_TIMESTAMP */
77 int d_crtype(P1(int FAR *) DBN_Dn);             /* crtype.c */
78 int d_crwrite(P1(long) Pi(char FAR *) DBN_Dn);  /* crwrite.c */
79 int d_csmget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);         /* csmget.c */
80 int d_csmread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); 
81                                                                 /* csmread.c */
82 int d_csmset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);         /* csmset.c */
83 int d_csmwrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); 
84                                                                 /* csmwrite.c */
85 int d_csoget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);         /* csoget.c */
86 int d_csoread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); 
87                                                                 /* csoread.c */
88 int d_csoset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);         /* csoset.c */
89 int d_csowrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); 
90                                                                 /* csowrite.c */
91 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
92 int d_csstat(P1(int) DBN_Dn);                   /* csstat.c */
93 int d_ctscm(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* ctscm.c */
94 int d_ctsco(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* ctsco.c */
95 int d_ctscr(P1(ULONG FAR *));                   /* ctscr.c */
96 #endif                                     /* NO_TIMESTAMP */
97 #ifndef NO_COUNTRY
98 int d_ctbpath(P1(CONST char FAR *));            /* pathfcns.c */
99 #endif                                     /* NO_COUNTRY */
100 int d_dbdpath(P1(CONST char FAR *));            /* dbdpath.c */
101 int d_dbfpath(P1(CONST char FAR *));            /* dbfpath.c */
102 int d_dblog(P1(CONST char FAR *));              /* dblog.c */
103 int d_dbtaf(P1(CONST char FAR *));              /* dbtaf.c */
104 int d_dbuserid(P1(CONST char FAR *));           /* dbuserid.c */
105 int d_delete(DBN_D1);                           /* delete.c */
106 int d_disdel(DBN_D1);                           /* disdel.c */
107 int d_recnext(DBN_D1);                          /* recnext.c */
108 int d_recprev(DBN_D1);                          /* recprev.c */
109 int d_destroy(P1(CONST char FAR *));            /* destroy.c */
110 int d_discon(P1(int) DBN_Dn);                   /* discon.c */
111 int d_fillnew(P1(int) Pi(CONST char FAR *) DBN_Dn); /* fillnew.c */
112 int d_findco(P1(int) DBN_Dn);                   /* findco.c */
113 int d_findfm(P1(int) DBN_Dn);                   /* findfm.c */
114 int d_findlm(P1(int) DBN_Dn);                   /* findlm.c */
115 int d_findnm(P1(int) DBN_Dn);                   /* findnm.c */
116 int d_findpm(P1(int) DBN_Dn);                   /* findpm.c */
117 int d_freeall(P0);                              /* dblfcns.c */
118 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
119 int d_gtscm(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* gtscm.c */
120 int d_gtsco(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* gtsco.c */
121 int d_gtscr(P1(ULONG FAR *));                   /* gtscr.c */
122 int d_gtscs(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* gtscs.c */
123 #endif                                     /* NO_TIMESTAMP */
124 int d_initialize(DBN_D1);                               /* initial.c */
125 int d_initfile(P1(FILE_NO) DBN_Dn);             /* initial.c */
126 int d_ismember(P1(int) DBN_Dn);                 /* ismember.c */
127 int d_isowner(P1(int) DBN_Dn);                  /* isowner.c */
128 int d_keydel(P1(long) DBN_Dn);                  /* keydel.c */
129 int d_keyexist(P1(long) DBN_Dn);                        /* keyexist.c */
130 int d_keyfind(P1(long) Pi(CONST char FAR *) DBN_Dn); 
131                                                                 /* keyfind.c */
132 int d_keyfree(P1(long) DBN_Dn);                 /* dblfcns.c */
133 int d_keyfrst(P1(long) DBN_Dn);                 /* keyfrst.c */
134 int d_keylast(P1(long) DBN_Dn);                 /* keylast.c */
135 int d_keylock(P1(long) Pi(char FAR *) DBN_Dn);  /* dblfcns.c */
136 int d_keylstat(P1(long) Pi(char FAR *) DBN_Dn);         /* dblfcns.c */
137 int d_keynext(P1(long) DBN_Dn);                 /* keynext.c */
138 int d_keyprev(P1(long) DBN_Dn);                 /* keyprev.c */
139 int d_keyread(P1(char FAR *));                  /* keyfcns.c */
140 int d_keystore(P1(long) DBN_Dn);                        /* keystore.c */
141 int d_lock(P1(int) Pi(LOCK_REQUEST FAR *) DBN_Dn); /* dblfcns.c */
142 int d_makenew(P1(int) DBN_Dn);                  /* makenew.c */
143 int d_mapchar(P1(unsigned char) Pi(unsigned char) 
144                       Pi(CONST char FAR *) Pi(unsigned char));  /* mapchar.c */
145 int d_members(P1(int) Pi(LONG FAR *) DBN_Dn);   /* members.c */
146 int d_off_opt(P1(int));                         /* options.c */
147 int d_on_opt(P1(int));                          /* options.c */
148 int d_open(P1(CONST char FAR *) Pi(CONST char FAR *)); 
149                                                                 /* dblfcns.c */
150 int d_rerdcurr(P1(DB_ADDR FAR **));             /* rwcurr.c */
151 int d_rdcurr(P1(DB_ADDR FAR **) Pi(int FAR *)); /* rwcurr.c */
152 int d_wrcurr(P1(DB_ADDR FAR *));                        /* rwcurr.c */
153 int d_recfree(P1(int) DBN_Dn);                  /* dblfcns.c */
154 int d_recfrst(P1(int) DBN_Dn);                  /* recfrst.c */
155 int d_reclast(P1(int) DBN_Dn);                  /* reclast.c */
156 int d_reclock(P1(int) Pi(char FAR *) DBN_Dn);   /* dblfcns.c */
157 int d_reclstat(P1(int) Pi(char FAR *) DBN_Dn);  /* dblfcns.c */
158 int d_recover(P1(CONST char FAR *));            /* recover.c */
159 int d_recread(P1(char FAR *) DBN_Dn);           /* recread.c */
160 int d_recset(P1(int) DBN_Dn);                           /* recset.c */
161 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
162 int d_recstat(P1(DB_ADDR) Pi(ULONG));           /* recstat.c */
163 #endif                                     /* NO_TIMESTAMP */
164 int d_recwrite(P1(CONST char FAR *) DBN_Dn);    /* recwrite.c */
165 int d_renfile(P1(CONST char FAR *) Pi(FILE_NO) 
166                                 Pi(CONST char FAR *));          /* renfile.c */
167 int d_retries(P1(int));                         /* dblfcns.c */
168 int d_rlbclr(P0);                               /* dblfcns.c */
169 int d_rlbset(P0);                               /* dblfcns.c */
170 int d_rlbtst(P0);                               /* dblfcns.c */
171 int d_set_dberr(P1(FARPROC));                   /* dberr.c */
172 #ifndef ONE_DB                             /* ONE_DB */
173 int d_setdb(P1(int));                           /* setdb.c */
174 #endif                                     /* ONE_DB */
175 int d_setfree(P1(int) DBN_Dn);                  /* dblfcns.c */
176 int d_setkey(P1(long) Pi(CONST char FAR *) DBN_Dn); /* makenew.c */
177 int d_setlock(P1(int) Pi(char FAR *) DBN_Dn);   /* dblfcns.c */
178 int d_setlstat(P1(int) Pi(char FAR *) DBN_Dn);  /* dblfcns.c */
179 int d_setmm(P1(int) Pi(int) DBN_Dn);            /* setmm.c */
180 int d_setmo(P1(int) Pi(int) DBN_Dn);            /* setmo.c */
181 int d_setmr(P1(int) DBN_Dn);                    /* setmr.c */
182 int d_setom(P1(int) Pi(int) DBN_Dn);            /* setom.c */
183 int d_setoo(P1(int) Pi(int) DBN_Dn);            /* setoo.c */
184 int d_setor(P1(int) DBN_Dn);                    /* setor.c */
185 int d_setrm(P1(int) DBN_Dn);                    /* setrm.c */
186 int d_setro(P1(int) DBN_Dn);                    /* setro.c */
187 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
188 int d_stscm(P1(int) Pi(ULONG) DBN_Dn);          /* stscm.c */
189 int d_stsco(P1(int) Pi(ULONG) DBN_Dn);          /* stsco.c */
190 int d_stscr(P1(ULONG));                         /* stscr.c */
191 int d_stscs(P1(int) Pi(ULONG) DBN_Dn);          /* stscs.c */
192 #endif                                     /* NO_TIMESTAMP */
193 int d_timeout(P1(int));                         /* dblfcns.c */
194 int d_trabort(P0);                              /* dblfcns.c */
195 int d_trbegin(P1(CONST char FAR *));            /* dblfcns.c */
196 int d_trend(P0);                                        /* dblfcns.c */
197 #ifndef NO_TIMESTAMP                       /* NO_TIMESTAMP */
198 int d_utscm(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* utscm.c */
199 int d_utsco(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* utsco.c */
200 int d_utscr(P1(ULONG FAR *));                   /* utscr.c */
201 int d_utscs(P1(int) Pi(ULONG FAR *) DBN_Dn);    /* utscs.c */
202 #endif                                     /* NO_TIMESTAMP */
203
204 #endif                                  /* MULTI_TASK */
205
206 int dberr(P1(int));                             /* dberr.c */
207
208 #define D_FUNCTIONS_H
209 /* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dproto.h */