proto.h

来自「db.* (pronounced dee-be star) is an adva」· C头文件 代码 · 共 498 行 · 第 1/2 页

H
498
字号
void   EXTERNAL_FCN commit_file(PSP_FH, DB_TASK *);int    INTERNAL_FCN vnap(long);int  INTERNAL_FCN RelinquishControl(void);#define BY_NAP_SUCCESS 1#define BY_NAP_FAILURE 0/* apply some randomness */#define SUCCESS_FACTOR  0.100#define FAILURE_FACTOR  1.300#define MAX_FACTOR      2.000#define DEF_FACTOR      0.010#define MIN_FACTOR      0.005#define ONE_FACTOR      0.001    /* if (2 * ONE_USER_NAP) >= MIN_FACTOR then change naptime() */void INTERNAL_FCN adjust_naptime (int, DB_TASK *);void INTERNAL_FCN naptime (DB_TASK *);/* From ovfcns.c: */int  EXTERNAL_FCN o_setup(DB_TASK *);int  INTERNAL_FCN o_init(DB_TASK *);int  INTERNAL_FCN o_fileinit(FILE_NO, DB_TASK *);int  INTERNAL_FCN o_search(FILE_NO, F_ADDR, F_ADDR *, DB_TASK *);int  INTERNAL_FCN o_pzwrite(FILE_NO, DB_TASK *);int  INTERNAL_FCN o_flush(DB_TASK *);int  INTERNAL_FCN o_update(DB_TASK *);long INTERNAL_FCN o_pages(FILE_NO, DB_TASK *);void INTERNAL_FCN o_free(int, DB_TASK *);int  INTERNAL_FCN o_close(DB_TASK *);int  INTERNAL_FCN o_write(PAGE_ENTRY *, DB_TASK *);/* From recfcns.c: */int INTERNAL_FCN r_chkfld(short, FIELD_ENTRY *, char *, const char *, DB_TASK *);int INTERNAL_FCN r_delrec(short, DB_ADDR, DB_TASK *);int INTERNAL_FCN r_gfld(FIELD_ENTRY *, char *, char *, DB_TASK *);int INTERNAL_FCN r_gmem(int, char *, MEM_PTR *, DB_TASK *);int INTERNAL_FCN r_gset(int, char *, SET_PTR *, DB_TASK *);int INTERNAL_FCN r_pfld(short, FIELD_ENTRY *, char *, const char *, DB_ADDR *, DB_TASK *);int INTERNAL_FCN r_pmem(int, char *, char *, DB_TASK *);int INTERNAL_FCN r_pset(int, char *, char *, DB_TASK *);int INTERNAL_FCN r_smem(DB_ADDR *, int, DB_TASK *);int INTERNAL_FCN r_setopt(FIELD_ENTRY *, char *, DB_TASK *);int INTERNAL_FCN r_clropt(FIELD_ENTRY *, char *, DB_TASK *);int EXTERNAL_FCN r_tstopt(FIELD_ENTRY *, char *, DB_TASK *);/* From pathfcns.c */int INTERNAL_FCN con_dbd(DB_TCHAR *, DB_TCHAR *, DB_TCHAR *, DB_TASK *);int EXTERNAL_FCN con_dbf(DB_TCHAR *, DB_TCHAR *, DB_TCHAR *, DB_TCHAR *, DB_TASK *);DB_TCHAR *EXTERNAL_FCN get_element(const DB_TCHAR *, int);/* From renfile.c: */int INTERNAL_FCN renfiles(DB_TASK *);/* From enter.c: */int INTERNAL_FCN db_enter(int, int, DB_TASK *);int INTERNAL_FCN db_exit(int, DB_TASK *);#ifdef DB_TRACEint INTERNAL_FCN api_enter(int, DB_TASK *);int INTERNAL_FCN api_exit(DB_TASK *);int INTERNAL_FCN fn_enter(DB_TCHAR *, DB_TASK *);int INTERNAL_FCN fn_exit(DB_TASK *);int   db_printf(DB_TASK *, DB_TCHAR *fmt, ...);int INTERNAL_FCN db_indent(DB_TASK *);int INTERNAL_FCN db_undent(DB_TASK *);#endif /* DB_TRACE *//* From taffcns.c: */int INTERNAL_FCN taf_open(DB_TASK *);int INTERNAL_FCN taf_close(DB_TASK *);int INTERNAL_FCN taf_access(int, DB_TASK *);int INTERNAL_FCN taf_release(int, DB_TASK *);int INTERNAL_FCN taf_add(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN taf_del(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN taf_login(DB_TASK *);int INTERNAL_FCN taf_logout(DB_TASK *);int INTERNAL_FCN taf_locking(int, int, long, DB_TASK *);/* From truename.c *//* From task.c */int INTERNAL_FCN task_switch(DB_TASK *);int INTERNAL_FCN create_cache(DB_TASK *);int INTERNAL_FCN remove_cache(DB_TASK *);int INTERNAL_FCN ntask_check(DB_TASK *);/* From mapchar.c */int  INTERNAL_FCN ctb_init(DB_TASK *);int  INTERNAL_FCN ctbl_alloc(DB_TASK *);void EXTERNAL_FCN ctbl_free(DB_TASK *);int  INTERNAL_FCN ctbl_ignorecase(DB_TASK *);int  INTERNAL_FCN ctbl_usecase(DB_TASK *);/* From alloc.c */DB_BOOLEAN  INTERNAL_FCN ll_access(llist *);int         INTERNAL_FCN ll_append(llist *, char *, DB_TASK *);void        INTERNAL_FCN ll_deaccess(llist *);void        INTERNAL_FCN ll_free(llist *, DB_TASK *);int         INTERNAL_FCN ll_prepend(llist *, char *, DB_TASK *);char       *INTERNAL_FCN ll_first(llist *);char       *INTERNAL_FCN ll_next(llist *);/* Internal functions called by d_ functions */int INTERNAL_FCN dcheckid(DB_TCHAR *, DB_TASK *);int INTERNAL_FCN dcloseall(DB_TASK *);int INTERNAL_FCN dcmstat(int, DB_TASK *, int);int INTERNAL_FCN dcmtype(int, int *, DB_TASK *, int);int INTERNAL_FCN dconnect(int, DB_TASK *, int);int INTERNAL_FCN dcostat(int, DB_TASK *, int);int INTERNAL_FCN dcotype(int, int *, DB_TASK *, int);int INTERNAL_FCN dcrget(DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dcrread(long, void *, DB_TASK *, int);int INTERNAL_FCN dcrset(DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dcrstat(DB_TASK *, int);int INTERNAL_FCN dcrtype(int *, DB_TASK *, int);int INTERNAL_FCN dcrwrite(long, void *, DB_TASK *, int);int INTERNAL_FCN dcsmget(int, DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dcsmread(int, long, void *, DB_TASK *, int);int INTERNAL_FCN dcsmset(int, DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dcsmwrite(int, long, const void *, DB_TASK *, int);int INTERNAL_FCN dcsoget(int, DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dcsoread(int, long, void *, DB_TASK *, int);int INTERNAL_FCN dcsoset(int, DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dcsowrite(int, long, const void *, DB_TASK *, int);int INTERNAL_FCN dcsstat(int, DB_TASK *, int);int INTERNAL_FCN dctbpath(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN dctscm(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dctsco(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dctscr(DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dcurkey(DB_TASK *, int);int INTERNAL_FCN ddbdpath(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddbfpath(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddblog(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddbnum(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddbstat(int, int, void *, int, DB_TASK *);int INTERNAL_FCN ddbtaf(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddbtmp(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddbuserid(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddef_opt(unsigned long, DB_TASK *);int INTERNAL_FCN ddelete(DB_TASK *, int);int INTERNAL_FCN ddestroy(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddiscon(int, DB_TASK *, int);int INTERNAL_FCN ddisdel(DB_TASK *, int);int INTERNAL_FCN dfillnew(int, const void *, DB_TASK *, int);int INTERNAL_FCN dfindco(int, DB_TASK *, int);int INTERNAL_FCN dfindfm(int, DB_TASK *, int);int INTERNAL_FCN dfindlm(int, DB_TASK *, int);int INTERNAL_FCN dfindnm(int, DB_TASK *, int);int INTERNAL_FCN dfindpm(int, DB_TASK *, int);int INTERNAL_FCN dfldnum(int *, long, DB_TASK *, int);int INTERNAL_FCN dfreeall(DB_TASK *);int INTERNAL_FCN dgtscm(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dgtsco(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dgtscr(DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dgtscs(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN diclose(DB_TASK *, int);int INTERNAL_FCN dinitfile(FILE_NO, DB_TASK *, int);int INTERNAL_FCN dinitialize(DB_TASK *, int);int INTERNAL_FCN dinternals(DB_TASK *, int, int, int, void *, unsigned);int INTERNAL_FCN dismember(int, DB_TASK *, int);int INTERNAL_FCN disowner(int, DB_TASK *, int);int INTERNAL_FCN dkeybuild(DB_TASK *, int);int INTERNAL_FCN dkeydel(long, DB_TASK *, int);int INTERNAL_FCN dkeyexist(long, DB_TASK *, int);int INTERNAL_FCN dkeyfind(long, const void *, DB_TASK *, int);int INTERNAL_FCN dkeyfree(long, DB_TASK *, int);int INTERNAL_FCN dkeyfrst(long, DB_TASK *, int);int INTERNAL_FCN dkeylast(long, DB_TASK *, int);int INTERNAL_FCN dkeylock(long, DB_TCHAR *, DB_TASK *, int);int INTERNAL_FCN dkeylstat(long, DB_TCHAR *, DB_TASK *, int);int INTERNAL_FCN dkeynext(long, DB_TASK *, int);int INTERNAL_FCN dkeyprev(long, DB_TASK *, int);int INTERNAL_FCN dkeyread(void *, DB_TASK *);int INTERNAL_FCN dkeystore(long, DB_TASK *, int);int INTERNAL_FCN dlmclear(const DB_TCHAR *, const DB_TCHAR *, LMC_AVAIL_FCN *, DB_TASK *);int INTERNAL_FCN dlmstat(DB_TCHAR *, int *, DB_TASK *);int INTERNAL_FCN dlock(int, LOCK_REQUEST *, DB_TASK *, int);int INTERNAL_FCN dlockcomm(LMC_AVAIL_FCN *, DB_TASK *);int INTERNAL_FCN dlockmgr(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN dlocktimeout(int, int, DB_TASK *);int INTERNAL_FCN dmakenew(int, DB_TASK *, int);int INTERNAL_FCN dmapchar(unsigned char, unsigned char, const char *, unsigned char, DB_TASK *);int INTERNAL_FCN dmembers(int, long *, DB_TASK *, int);int INTERNAL_FCN doff_opt(unsigned long, DB_TASK *);int INTERNAL_FCN don_opt(unsigned long, DB_TASK *);int INTERNAL_FCN dopen(const DB_TCHAR *, const DB_TCHAR *, int, const SG *, const DB_SCHEMA *, DB_TASK *);int INTERNAL_FCN dopentask(DB_TASK **);int INTERNAL_FCN drdcurr(DB_ADDR * *, int *, DB_TASK *, int);int INTERNAL_FCN ddbini(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN ddbver(DB_TCHAR *, DB_TCHAR *, int);int INTERNAL_FCN drecfree(int, DB_TASK *, int);int INTERNAL_FCN drecfrst(int, DB_TASK *, int);int INTERNAL_FCN dreclast(int, DB_TASK *, int);int INTERNAL_FCN dreclock(int, DB_TCHAR *, DB_TASK *, int);int INTERNAL_FCN dreclstat(int, DB_TCHAR *, DB_TASK *, int);int INTERNAL_FCN drecnext(DB_TASK *, int);int INTERNAL_FCN drecnum(int *, int , DB_TASK *, int);int INTERNAL_FCN drecover(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN drecprev(DB_TASK *, int);int INTERNAL_FCN drecread(void *, DB_TASK *, int);int INTERNAL_FCN drecset(int, DB_TASK *, int);int INTERNAL_FCN drecstat(DB_ADDR, DB_ULONG, DB_TASK *, int);int INTERNAL_FCN drecwrite(const void *, DB_TASK *, int);int INTERNAL_FCN drenclean(DB_TASK *);int INTERNAL_FCN drenfile(const DB_TCHAR *, FILE_NO, const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN drerdcurr(DB_ADDR * *, DB_TASK *, int);int INTERNAL_FCN drlbclr(DB_TASK *, int);int INTERNAL_FCN drlbset(DB_TASK *, int);int INTERNAL_FCN drlbtst(DB_TASK *, int);int INTERNAL_FCN dsetdb(int, DB_TASK *);int INTERNAL_FCN dsetfiles(int, DB_TASK *);int INTERNAL_FCN dsetfree(int, DB_TASK *, int);int INTERNAL_FCN dsetkey(long, const void *, DB_TASK *, int);int INTERNAL_FCN dsetlock(int, DB_TCHAR *, DB_TASK *, int);int INTERNAL_FCN dsetlstat(int, DB_TCHAR *, DB_TASK *, int);int INTERNAL_FCN dsetmm(int, int, DB_TASK *, int);int INTERNAL_FCN dsetmo(int, int, DB_TASK *, int);int INTERNAL_FCN dsetmr(int, DB_TASK *, int);int INTERNAL_FCN dsetnum(int *, int , DB_TASK *, int);int INTERNAL_FCN dsetom(int, int, DB_TASK *, int);int INTERNAL_FCN dsetoo(int, int, DB_TASK *, int);int INTERNAL_FCN dsetor(int, DB_TASK *, int);int INTERNAL_FCN dsetpages(int, int, DB_TASK *);int INTERNAL_FCN dsetrm(int, DB_TASK *, int);int INTERNAL_FCN dsetro(int, DB_TASK *, int);int INTERNAL_FCN dstscm(int, DB_ULONG, DB_TASK *, int);int INTERNAL_FCN dstsco(int, DB_ULONG, DB_TASK *, int);int INTERNAL_FCN dstscr(DB_ULONG, DB_TASK *, int);int INTERNAL_FCN dstscs(int, DB_ULONG, DB_TASK *, int);int INTERNAL_FCN dtimeout(int, DB_TASK *);int INTERNAL_FCN dtrabort(DB_TASK *);/* dblfcns.c */int INTERNAL_FCN dtrbegin(const DB_TCHAR *, DB_TASK *);int INTERNAL_FCN dtrbound(DB_TASK *);int INTERNAL_FCN dtrend(DB_TASK *);int INTERNAL_FCN dtrlog(int, long, const char *, int, DB_TASK *);int INTERNAL_FCN dtrmark(DB_TASK *);int INTERNAL_FCN dutscm(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dutsco(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dutscr(DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dutscs(int, DB_ULONG *, DB_TASK *, int);int INTERNAL_FCN dwrcurr(DB_ADDR *, DB_TASK *, int);int INTERNAL_FCN dbuild_dbd(const DB_SCHEMA *db, DB_TASK *task);#endif /* PROTO_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?