mariadb/bdb/rpc_server/rpc.src

719 lines
16 KiB
Text
Raw Normal View History

2002-10-30 15:57:05 +04:00
# See the file LICENSE for redistribution information.
#
# Copyright (c) 1999-2002
# Sleepycat Software. All rights reserved.
#
# $Id: rpc.src,v 1.75 2002/07/18 02:57:19 margo Exp $
2001-03-04 19:42:05 -05:00
#
# Syntax:
2002-10-30 15:57:05 +04:00
# BEGIN function_name {CODE | RETCODE | NOFUNC}
2001-03-04 19:42:05 -05:00
# CODE: generate XDR and client code, return status
# Used for functions that just return a status and nothing else.
# RETCODE:generate XDR and client code, call return function
# (generate template return function)
# Used for functions that returns data.
# NOFUNC: generate a client "unsupported function" with right args
# Used for unsupported functions.
#
# ARG {IGNORE | STRING | INT | DBT | LIST | ID | CONST} C-type varname
# IGNORE: not passed to server
# STRING: string passed to server
# DBT: DBT arg passed to server
2002-10-30 15:57:05 +04:00
# LIST: list passed to server (NULL-terminated list of something)
2001-03-04 19:42:05 -05:00
# INT: integer passed to server
# ID: cl_id from arg passed to server
2002-10-30 15:57:05 +04:00
# GID: global id passed to server
2001-03-04 19:42:05 -05:00
# CONST: do not generate COMPQUIET (for NOFUNC only)
# FUNCPROT prototype
# FUNCARG functiontype
# These two *MUST* go together and FUNCPROT *MUST* be first. These
# are for the tricky user-supplied functions to some methods. They
# are not supported in RPC, so will be ignored, but the complicated
# syntax of their argument requires we have a special flag for them
# that contains the verbatim text to use in the prototype and the
# c-type, respectively. The FUNCARG must include the function, and
# must call it 'funcN', where N is the count of functions. Almost
# always it must be func0. A *very* few methods have more than one
# user-supplied functions, in those cases, it must be func0, func1, etc.
#
# All messages automatically return "status" and return that from
# the call to the function. RET's are additional things the server
# may return. RET is like ARG but does not need the IGNORE option.
2002-10-30 15:57:05 +04:00
# RET {STRING | INT | DBT | LIST | ID} varname [GID | INT | ID]
2001-03-04 19:42:05 -05:00
# STRING: string from server
# DBT: DBT arg from server
2002-10-30 15:57:05 +04:00
# LIST: list from server (NULL-terminated list)
# Must have list type of GID, ID or INT specified
2001-03-04 19:42:05 -05:00
# INT: integer from server
# ID: id from server stored in cl_id
# END function end.
#
# Environment functions
#
2002-10-30 15:57:05 +04:00
BEGIN env_alloc NOFUNC
ARG ID DB_ENV * dbenv
FUNCPROT void *(*)(size_t)
FUNCARG void *(*func0) __P((size_t))
FUNCPROT void *(*)(void *, size_t)
FUNCARG void *(*func1) __P((void *, size_t))
FUNCPROT void (*)(void *)
FUNCARG void (*func2) __P((void *))
END
BEGIN set_app_dispatch NOFUNC
ARG ID DB_ENV * dbenv
FUNCPROT int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops)
FUNCARG int (*func0) __P((DB_ENV *, DBT *, DB_LSN *, db_recops))
END
BEGIN env_cachesize CODE
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t gbytes
ARG INT u_int32_t bytes
ARG INT int ncache
END
2002-10-30 15:57:05 +04:00
BEGIN env_close RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN env_create RETCODE
ARG IGNORE DB_ENV * dbenv
2001-03-04 19:42:05 -05:00
ARG INT long timeout
RET ID long env
END
2002-10-30 15:57:05 +04:00
BEGIN set_data_dir NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG STRING const char * dir
END
2002-10-30 15:57:05 +04:00
BEGIN env_dbremove CODE
ARG ID DB_ENV * dbenv
ARG ID DB_TXN * txnp
ARG STRING const char * name
ARG STRING const char * subdb
ARG INT u_int32_t flags
END
BEGIN env_dbrename CODE
ARG ID DB_ENV * dbenv
ARG ID DB_TXN * txnp
ARG STRING const char * name
ARG STRING const char * subdb
ARG STRING const char * newname
ARG INT u_int32_t flags
END
BEGIN env_encrypt CODE
ARG ID DB_ENV * dbenv
ARG STRING const char * passwd
ARG INT u_int32_t flags
END
BEGIN env_set_feedback NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
FUNCPROT void (*)(DB_ENV *, int, int)
FUNCARG void (*func0) __P((DB_ENV *, int, int))
END
2002-10-30 15:57:05 +04:00
BEGIN env_flags CODE
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t flags
ARG INT int onoff
END
2002-10-30 15:57:05 +04:00
BEGIN set_lg_bsize NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t bsize
END
2002-10-30 15:57:05 +04:00
BEGIN set_lg_dir NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG STRING const char * dir
END
2002-10-30 15:57:05 +04:00
BEGIN set_lg_max NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
2002-10-30 15:57:05 +04:00
BEGIN set_lg_regionmax NOFUNC
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
BEGIN set_lk_conflict NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int8_t * conflicts
ARG INT int modes
END
2002-10-30 15:57:05 +04:00
BEGIN set_lk_detect NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t detect
END
2002-10-30 15:57:05 +04:00
BEGIN set_lk_max NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
2002-10-30 15:57:05 +04:00
BEGIN set_lk_max_locks NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
2002-10-30 15:57:05 +04:00
BEGIN set_lk_max_lockers NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
2002-10-30 15:57:05 +04:00
BEGIN set_lk_max_objects NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
2002-10-30 15:57:05 +04:00
BEGIN set_mp_mmapsize NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT size_t mmapsize
END
2002-10-30 15:57:05 +04:00
BEGIN env_open RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG STRING const char * home
ARG INT u_int32_t flags
ARG INT int mode
2002-10-30 15:57:05 +04:00
RET ID long env
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN env_paniccall NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
FUNCPROT void (*)(DB_ENV *, int)
FUNCARG void (*func0) __P((DB_ENV *, int))
END
2002-10-30 15:57:05 +04:00
BEGIN env_remove RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG STRING const char * home
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN set_shm_key NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT long shm_key
END
2002-10-30 15:57:05 +04:00
BEGIN set_tas_spins NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t tas_spins
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN set_timeout NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t timeout
ARG INT u_int32_t flags
END
BEGIN set_tmp_dir NOFUNC
ARG ID DB_ENV * dbenv
ARG STRING const char * dir
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN set_tx_max NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t max
END
2002-10-30 15:57:05 +04:00
BEGIN set_tx_timestamp NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT time_t * max
END
2002-10-30 15:57:05 +04:00
BEGIN set_verbose NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t which
ARG INT int onoff
END
#
# Transaction functions
#
2002-10-30 15:57:05 +04:00
BEGIN txn_abort RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB_TXN * txnp
END
2002-10-30 15:57:05 +04:00
BEGIN txn_begin RETCODE
ARG ID DB_ENV * dbenv
2001-03-04 19:42:05 -05:00
ARG ID DB_TXN * parent
ARG IGNORE DB_TXN ** txnpp
ARG INT u_int32_t flags
RET ID long txnid
END
2002-10-30 15:57:05 +04:00
BEGIN txn_checkpoint NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t kbyte
ARG INT u_int32_t min
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t flags
END
BEGIN txn_commit RETCODE
ARG ID DB_TXN * txnp
ARG INT u_int32_t flags
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN txn_discard RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB_TXN * txnp
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN txn_prepare CODE
2001-03-04 19:42:05 -05:00
ARG ID DB_TXN * txnp
2002-10-30 15:57:05 +04:00
ARG GID u_int8_t * gid
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN txn_recover RETCODE
ARG ID DB_ENV * dbenv
ARG IGNORE DB_PREPLIST * preplist
ARG INT long count
ARG IGNORE long * retp
ARG INT u_int32_t flags
RET LIST DB_TXN * txn ID
RET LIST u_int8_t * gid GID
RET INT long retcount
END
BEGIN txn_stat NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_TXN_STAT ** statp
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t flags
END
BEGIN txn_timeout NOFUNC
ARG ID DB_TXN * txnp
ARG INT u_int32_t timeout
ARG INT u_int32_t flags
END
#
# Replication functions
#
BEGIN rep_elect NOFUNC
ARG ID DB_ENV * dbenv
ARG INT int nsites
ARG INT int pri
ARG INT u_int32_t timeout
ARG IGNORE int * idp
END
BEGIN rep_flush NOFUNC
ARG ID DB_ENV * dbenv
END
BEGIN rep_process_message NOFUNC
ARG ID DB_ENV * dbenv
ARG DBT DBT * rec
ARG DBT DBT * control
ARG IGNORE int * idp
END
BEGIN rep_set_limit NOFUNC
ARG ID DB_ENV * dbenv
ARG INT u_int32_t mbytes
ARG INT u_int32_t bytes
END
BEGIN rep_set_request NOFUNC
ARG ID DB_ENV * dbenv
ARG INT u_int32_t min
ARG INT u_int32_t max
END
BEGIN rep_set_rep_transport NOFUNC
ARG ID DB_ENV * dbenv
ARG INT int id
FUNCPROT int (*)(DB_ENV *, const DBT *, const DBT *, int, u_int32_t)
FUNCARG int (*func0) __P((DB_ENV *, const DBT *, const DBT *, int, u_int32_t))
END
BEGIN rep_start NOFUNC
ARG ID DB_ENV * dbenv
ARG DBT DBT * cdata
ARG INT u_int32_t flags
END
BEGIN rep_stat NOFUNC
ARG ID DB_ENV * dbenv
ARG IGNORE DB_REP_STAT ** statp
ARG INT u_int32_t flags
2001-03-04 19:42:05 -05:00
END
#
# Database functions
#
2002-10-30 15:57:05 +04:00
BEGIN db_alloc NOFUNC
ARG ID DB * dbp
FUNCPROT void *(*)(size_t)
FUNCARG void *(*func0) __P((size_t))
FUNCPROT void *(*)(void *, size_t)
FUNCARG void *(*func1) __P((void *, size_t))
FUNCPROT void (*)(void *)
FUNCARG void (*func2) __P((void *))
END
BEGIN db_associate CODE
ARG ID DB * dbp
ARG ID DB_TXN * txnp
ARG ID DB * sdbp
FUNCPROT int (*)(DB *, const DBT *, const DBT *, DBT *)
FUNCARG int (*func0) __P((DB *, const DBT *, const DBT *, DBT *))
ARG INT u_int32_t flags
END
BEGIN db_bt_compare NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
FUNCPROT int (*)(DB *, const DBT *, const DBT *)
FUNCARG int (*func0) __P((DB *, const DBT *, const DBT *))
END
2002-10-30 15:57:05 +04:00
BEGIN db_bt_maxkey CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t maxkey
END
2002-10-30 15:57:05 +04:00
BEGIN db_bt_minkey CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t minkey
END
2002-10-30 15:57:05 +04:00
BEGIN db_bt_prefix NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
FUNCPROT size_t(*)(DB *, const DBT *, const DBT *)
FUNCARG size_t (*func0) __P((DB *, const DBT *, const DBT *))
END
2002-10-30 15:57:05 +04:00
BEGIN db_set_append_recno NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
FUNCPROT int (*)(DB *, DBT *, db_recno_t)
FUNCARG int (*func0) __P((DB *, DBT *, db_recno_t))
END
2002-10-30 15:57:05 +04:00
BEGIN db_cache_priority NOFUNC
ARG ID DB * dbp
ARG INT DB_CACHE_PRIORITY priority
END
BEGIN db_cachesize NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t gbytes
ARG INT u_int32_t bytes
ARG INT int ncache
END
2002-10-30 15:57:05 +04:00
BEGIN db_close RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN db_create RETCODE
ARG IGNORE DB * dbp
ARG ID DB_ENV * dbenv
2001-03-04 19:42:05 -05:00
ARG INT u_int32_t flags
2002-10-30 15:57:05 +04:00
RET ID long db
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN db_del CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG ID DB_TXN * txnp
ARG DBT DBT * key
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN db_dup_compare NOFUNC
ARG ID DB * dbp
FUNCPROT int (*)(DB *, const DBT *, const DBT *)
FUNCARG int (*func0) __P((DB *, const DBT *, const DBT *))
END
BEGIN db_encrypt CODE
ARG ID DB * dbp
ARG STRING const char * passwd
ARG INT u_int32_t flags
END
BEGIN db_extentsize CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t extentsize
END
2002-10-30 15:57:05 +04:00
BEGIN db_fd NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG IGNORE int * fdp
END
2002-10-30 15:57:05 +04:00
BEGIN db_feedback NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
FUNCPROT void (*)(DB *, int, int)
FUNCARG void (*func0) __P((DB *, int, int))
END
2002-10-30 15:57:05 +04:00
BEGIN db_flags CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN db_get RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG ID DB_TXN * txnp
ARG DBT DBT * key
ARG DBT DBT * data
ARG INT u_int32_t flags
RET DBT DBT * key
RET DBT DBT * data
END
2002-10-30 15:57:05 +04:00
BEGIN db_h_ffactor CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t ffactor
END
2002-10-30 15:57:05 +04:00
BEGIN db_h_hash NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
FUNCPROT u_int32_t(*)(DB *, const void *, u_int32_t)
FUNCARG u_int32_t (*func0) __P((DB *, const void *, u_int32_t))
END
2002-10-30 15:57:05 +04:00
BEGIN db_h_nelem CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t nelem
END
2002-10-30 15:57:05 +04:00
BEGIN db_key_range RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG ID DB_TXN * txnp
ARG DBT DBT * key
ARG IGNORE DB_KEY_RANGE * range
ARG INT u_int32_t flags
RET DBL double less
RET DBL double equal
RET DBL double greater
END
2002-10-30 15:57:05 +04:00
BEGIN db_lorder CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT int lorder
END
# XXX
# The line:
# RET INT u_int32_t dbflags
# should go away when a get_flags method exists. It is
# needed now because Tcl looks at dbp->flags.
#
2002-10-30 15:57:05 +04:00
BEGIN db_open RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
2002-10-30 15:57:05 +04:00
ARG ID DB_TXN * txnp
2001-03-04 19:42:05 -05:00
ARG STRING const char * name
ARG STRING const char * subdb
ARG INT DBTYPE type
ARG INT u_int32_t flags
ARG INT int mode
2002-10-30 15:57:05 +04:00
RET ID long db
2001-03-04 19:42:05 -05:00
RET INT DBTYPE type
RET INT u_int32_t dbflags
2002-10-30 15:57:05 +04:00
RET INT int lorder
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN db_pagesize CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t pagesize
END
2002-10-30 15:57:05 +04:00
BEGIN db_panic NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
FUNCPROT void (*)(DB_ENV *, int)
FUNCARG void (*func0) __P((DB_ENV *, int))
END
2002-10-30 15:57:05 +04:00
BEGIN db_pget RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG ID DB_TXN * txnp
2002-10-30 15:57:05 +04:00
ARG DBT DBT * skey
ARG DBT DBT * pkey
2001-03-04 19:42:05 -05:00
ARG DBT DBT * data
ARG INT u_int32_t flags
2002-10-30 15:57:05 +04:00
RET DBT DBT * skey
RET DBT DBT * pkey
RET DBT DBT * data
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN db_put RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
2002-10-30 15:57:05 +04:00
ARG ID DB_TXN * txnp
ARG DBT DBT * key
ARG DBT DBT * data
ARG INT u_int32_t flags
RET DBT DBT * key
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN db_re_delim CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT int delim
END
2002-10-30 15:57:05 +04:00
BEGIN db_re_len CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT u_int32_t len
END
2002-10-30 15:57:05 +04:00
BEGIN db_re_pad CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG INT int pad
END
2002-10-30 15:57:05 +04:00
BEGIN db_re_source NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG STRING const char * re_source
END
2002-10-30 15:57:05 +04:00
BEGIN db_remove RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG STRING const char * name
ARG STRING const char * subdb
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN db_rename RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG STRING const char * name
ARG STRING const char * subdb
ARG STRING const char * newname
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN db_stat RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG IGNORE void * sp
ARG INT u_int32_t flags
RET LIST u_int32_t * stats INT
END
2002-10-30 15:57:05 +04:00
BEGIN db_sync CODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t flags
END
BEGIN db_truncate RETCODE
ARG ID DB * dbp
ARG ID DB_TXN * txnp
ARG IGNORE u_int32_t * countp
ARG INT u_int32_t flags
RET INT u_int32_t count
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN db_upgrade NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
2002-10-30 15:57:05 +04:00
ARG STRING const char * fname
2001-03-04 19:42:05 -05:00
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN db_verify NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG STRING const char * fname
2002-10-30 15:57:05 +04:00
ARG STRING const char * subdb
ARG IGNORE FILE * outfile
2001-03-04 19:42:05 -05:00
ARG INT u_int32_t flags
END
#
# Cursor functions
#
2002-10-30 15:57:05 +04:00
BEGIN db_cursor RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG ID DB_TXN * txnp
ARG IGNORE DBC ** dbcpp
ARG INT u_int32_t flags
RET ID long dbcid
END
2002-10-30 15:57:05 +04:00
BEGIN db_join RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DB * dbp
ARG LIST DBC ** curs ID
ARG IGNORE DBC ** dbcp
ARG INT u_int32_t flags
RET ID long dbcid
END
2002-10-30 15:57:05 +04:00
BEGIN dbc_close RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DBC * dbc
END
2002-10-30 15:57:05 +04:00
BEGIN dbc_count RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DBC * dbc
ARG IGNORE db_recno_t * countp
ARG INT u_int32_t flags
RET INT db_recno_t dupcount
END
2002-10-30 15:57:05 +04:00
BEGIN dbc_del CODE
2001-03-04 19:42:05 -05:00
ARG ID DBC * dbc
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN dbc_dup RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DBC * dbc
ARG IGNORE DBC ** dbcp
ARG INT u_int32_t flags
RET ID long dbcid
END
2002-10-30 15:57:05 +04:00
BEGIN dbc_get RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DBC * dbc
ARG DBT DBT * key
ARG DBT DBT * data
ARG INT u_int32_t flags
RET DBT DBT * key
RET DBT DBT * data
END
2002-10-30 15:57:05 +04:00
BEGIN dbc_pget RETCODE
ARG ID DBC * dbc
ARG DBT DBT * skey
ARG DBT DBT * pkey
ARG DBT DBT * data
ARG INT u_int32_t flags
RET DBT DBT * skey
RET DBT DBT * pkey
RET DBT DBT * data
END
BEGIN dbc_put RETCODE
2001-03-04 19:42:05 -05:00
ARG ID DBC * dbc
ARG DBT DBT * key
ARG DBT DBT * data
ARG INT u_int32_t flags
RET DBT DBT * key
END
#
# Unsupported environment subsystems
#
#
# Locking subsystem
#
2002-10-30 15:57:05 +04:00
BEGIN lock_detect NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t flags
ARG INT u_int32_t atype
ARG IGNORE int * aborted
END
2002-10-30 15:57:05 +04:00
BEGIN lock_get NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t locker
ARG INT u_int32_t flags
ARG CONST const DBT * obj
ARG INT db_lockmode_t mode
ARG IGNORE DB_LOCK * lock
END
2002-10-30 15:57:05 +04:00
BEGIN lock_id NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t * idp
END
2002-10-30 15:57:05 +04:00
BEGIN lock_id_free NOFUNC
ARG ID DB_ENV * dbenv
ARG INT u_int32_t id
END
BEGIN lock_put NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG ID DB_LOCK * lock
END
2002-10-30 15:57:05 +04:00
BEGIN lock_stat NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_LOCK_STAT ** statp
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t flags
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN lock_vec NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT u_int32_t locker
ARG INT u_int32_t flags
ARG IGNORE DB_LOCKREQ * list
ARG INT int nlist
ARG IGNORE DB_LOCKREQ ** elistp
END
#
# Logging subsystem
#
2002-10-30 15:57:05 +04:00
BEGIN log_archive NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE char *** listp
ARG INT u_int32_t flags
2002-10-30 15:57:05 +04:00
END
BEGIN log_cursor NOFUNC
ARG ID DB_ENV * dbenv
ARG IGNORE DB_LOGC ** logcp
ARG INT u_int32_t flags
2001-03-04 19:42:05 -05:00
END
#
# Don't do log_compare. It doesn't have an env we can get at,
# and it doesn't manipulate DB internal information.
#
2002-10-30 15:57:05 +04:00
BEGIN log_file NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG CONST const DB_LSN * lsn
ARG STRING char * namep
ARG INT size_t len
END
2002-10-30 15:57:05 +04:00
BEGIN log_flush NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG CONST const DB_LSN * lsn
END
2002-10-30 15:57:05 +04:00
BEGIN log_put NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_LSN * lsn
2002-10-30 15:57:05 +04:00
ARG DBT const DBT * data
2001-03-04 19:42:05 -05:00
ARG INT u_int32_t flags
END
2002-10-30 15:57:05 +04:00
BEGIN log_stat NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_LOG_STAT ** statp
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t flags
2001-03-04 19:42:05 -05:00
END
#
# Mpool Subsystem
#
2002-10-30 15:57:05 +04:00
BEGIN memp_fcreate NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_MPOOLFILE ** mpf
2002-10-30 15:57:05 +04:00
ARG IGNORE u_int32_t flags
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN memp_register NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT int ftype
FUNCPROT int (*)(DB_ENV *, db_pgno_t, void *, DBT *)
FUNCARG int (*func0) __P((DB_ENV *, db_pgno_t, void *, DBT *))
FUNCPROT int (*)(DB_ENV *, db_pgno_t, void *, DBT *)
FUNCARG int (*func1) __P((DB_ENV *, db_pgno_t, void *, DBT *))
END
2002-10-30 15:57:05 +04:00
BEGIN memp_stat NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_MPOOL_STAT ** gstatp
ARG IGNORE DB_MPOOL_FSTAT *** fstatp
2002-10-30 15:57:05 +04:00
ARG INT u_int32_t flags
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
BEGIN memp_sync NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG IGNORE DB_LSN * lsn
END
2002-10-30 15:57:05 +04:00
BEGIN memp_trickle NOFUNC
2001-03-04 19:42:05 -05:00
ARG ID DB_ENV * dbenv
ARG INT int pct
ARG IGNORE int * nwrotep
END