diff options
author | unknown <serg@serg.mysql.com> | 2002-11-11 00:08:42 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-11-11 00:08:42 +0100 |
commit | 2d14fa5b39694a347c2ac97f16fc2c68a2f741a4 (patch) | |
tree | 44e79b5af6f6d89587d43bdde9c3223f7b817070 /bdb/rpc_server/c | |
parent | 446a5b0ad584bca06a83f96acc15a2e085d93f75 (diff) | |
download | mariadb-git-2d14fa5b39694a347c2ac97f16fc2c68a2f741a4.tar.gz |
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
delete auto-generated files
remove in-place editing
BitKeeper/deleted/.del-ex_apprec_auto.c~6e4c8882b1f0fe9d:
Delete: bdb/examples_c/ex_apprec/ex_apprec_auto.c
BitKeeper/deleted/.del-ex_apprec_auto.h~d01f1e472bf1b59f:
Delete: bdb/examples_c/ex_apprec/ex_apprec_auto.h
BitKeeper/deleted/.del-ex_apprec_template~4157a705d73c1209:
Delete: bdb/examples_c/ex_apprec/ex_apprec_template
bdb/rpc_server/c/db_server_proc.c.in:
Rename: bdb/rpc_server/c/db_server_proc.c -> bdb/rpc_server/c/db_server_proc.c.in
BitKeeper/deleted/.del-rpc_defs.in~bfc9820a618d5926:
Delete: bdb/dbinc_auto/rpc_defs.in
BitKeeper/deleted/.del-db_server.h~1c77cc0d19f3ecf:
Delete: bdb/dbinc_auto/db_server.h
BitKeeper/deleted/.del-db_server_proc.sed~94a351b3e31c0ad0:
Delete: bdb/rpc_server/c/db_server_proc.sed
BitKeeper/deleted/.del-db_server_svc.c~66ae3c56737e07ab:
Delete: bdb/rpc_server/c/db_server_svc.c
BitKeeper/deleted/.del-db_server_xdr.c~518231ed78b9cdcf:
Delete: bdb/rpc_server/c/db_server_xdr.c
BitKeeper/deleted/.del-gen_db_server.c~51935e227c7c23ac:
Delete: bdb/rpc_server/c/gen_db_server.c
bdb/dist/RELEASE:
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_crypto:
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_perm:
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_recover:
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_rpc:
NEVER modify files in-place!!!
bdb/dist/s_symlink:
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_tags:
disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
Diffstat (limited to 'bdb/rpc_server/c')
-rw-r--r-- | bdb/rpc_server/c/db_server_proc.c.in (renamed from bdb/rpc_server/c/db_server_proc.c) | 0 | ||||
-rw-r--r-- | bdb/rpc_server/c/db_server_proc.sed | 772 | ||||
-rw-r--r-- | bdb/rpc_server/c/db_server_svc.c | 435 | ||||
-rw-r--r-- | bdb/rpc_server/c/db_server_xdr.c | 1512 | ||||
-rw-r--r-- | bdb/rpc_server/c/gen_db_server.c | 1169 |
5 files changed, 0 insertions, 3888 deletions
diff --git a/bdb/rpc_server/c/db_server_proc.c b/bdb/rpc_server/c/db_server_proc.c.in index d5d1f49508a..d5d1f49508a 100644 --- a/bdb/rpc_server/c/db_server_proc.c +++ b/bdb/rpc_server/c/db_server_proc.c.in diff --git a/bdb/rpc_server/c/db_server_proc.sed b/bdb/rpc_server/c/db_server_proc.sed deleted file mode 100644 index e11b2c33cfe..00000000000 --- a/bdb/rpc_server/c/db_server_proc.sed +++ /dev/null @@ -1,772 +0,0 @@ -/^\/\* BEGIN __env_cachesize_proc/,/^\/\* END __env_cachesize_proc/c\ -/* BEGIN __env_cachesize_proc */\ -/*\ -\ * PUBLIC: void __env_cachesize_proc __P((long, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, __env_cachesize_reply *));\ -\ */\ -void\ -__env_cachesize_proc(dbenvcl_id, gbytes, bytes,\ -\ \ ncache, replyp)\ -\ long dbenvcl_id;\ -\ u_int32_t gbytes;\ -\ u_int32_t bytes;\ -\ u_int32_t ncache;\ -\ __env_cachesize_reply *replyp;\ -/* END __env_cachesize_proc */ -/^\/\* BEGIN __env_close_proc/,/^\/\* END __env_close_proc/c\ -/* BEGIN __env_close_proc */\ -/*\ -\ * PUBLIC: void __env_close_proc __P((long, u_int32_t, __env_close_reply *));\ -\ */\ -void\ -__env_close_proc(dbenvcl_id, flags, replyp)\ -\ long dbenvcl_id;\ -\ u_int32_t flags;\ -\ __env_close_reply *replyp;\ -/* END __env_close_proc */ -/^\/\* BEGIN __env_create_proc/,/^\/\* END __env_create_proc/c\ -/* BEGIN __env_create_proc */\ -/*\ -\ * PUBLIC: void __env_create_proc __P((u_int32_t, __env_create_reply *));\ -\ */\ -void\ -__env_create_proc(timeout, replyp)\ -\ u_int32_t timeout;\ -\ __env_create_reply *replyp;\ -/* END __env_create_proc */ -/^\/\* BEGIN __env_dbremove_proc/,/^\/\* END __env_dbremove_proc/c\ -/* BEGIN __env_dbremove_proc */\ -/*\ -\ * PUBLIC: void __env_dbremove_proc __P((long, long, char *, char *, u_int32_t,\ -\ * PUBLIC: __env_dbremove_reply *));\ -\ */\ -void\ -__env_dbremove_proc(dbenvcl_id, txnpcl_id, name,\ -\ \ subdb, flags, replyp)\ -\ long dbenvcl_id;\ -\ long txnpcl_id;\ -\ char *name;\ -\ char *subdb;\ -\ u_int32_t flags;\ -\ __env_dbremove_reply *replyp;\ -/* END __env_dbremove_proc */ -/^\/\* BEGIN __env_dbrename_proc/,/^\/\* END __env_dbrename_proc/c\ -/* BEGIN __env_dbrename_proc */\ -/*\ -\ * PUBLIC: void __env_dbrename_proc __P((long, long, char *, char *, char *,\ -\ * PUBLIC: u_int32_t, __env_dbrename_reply *));\ -\ */\ -void\ -__env_dbrename_proc(dbenvcl_id, txnpcl_id, name,\ -\ \ subdb, newname, flags, replyp)\ -\ long dbenvcl_id;\ -\ long txnpcl_id;\ -\ char *name;\ -\ char *subdb;\ -\ char *newname;\ -\ u_int32_t flags;\ -\ __env_dbrename_reply *replyp;\ -/* END __env_dbrename_proc */ -/^\/\* BEGIN __env_encrypt_proc/,/^\/\* END __env_encrypt_proc/c\ -/* BEGIN __env_encrypt_proc */\ -/*\ -\ * PUBLIC: void __env_encrypt_proc __P((long, char *, u_int32_t,\ -\ * PUBLIC: __env_encrypt_reply *));\ -\ */\ -void\ -__env_encrypt_proc(dbenvcl_id, passwd, flags, replyp)\ -\ long dbenvcl_id;\ -\ char *passwd;\ -\ u_int32_t flags;\ -\ __env_encrypt_reply *replyp;\ -/* END __env_encrypt_proc */ -/^\/\* BEGIN __env_flags_proc/,/^\/\* END __env_flags_proc/c\ -/* BEGIN __env_flags_proc */\ -/*\ -\ * PUBLIC: void __env_flags_proc __P((long, u_int32_t, u_int32_t,\ -\ * PUBLIC: __env_flags_reply *));\ -\ */\ -void\ -__env_flags_proc(dbenvcl_id, flags, onoff, replyp)\ -\ long dbenvcl_id;\ -\ u_int32_t flags;\ -\ u_int32_t onoff;\ -\ __env_flags_reply *replyp;\ -/* END __env_flags_proc */ -/^\/\* BEGIN __env_open_proc/,/^\/\* END __env_open_proc/c\ -/* BEGIN __env_open_proc */\ -/*\ -\ * PUBLIC: void __env_open_proc __P((long, char *, u_int32_t, u_int32_t,\ -\ * PUBLIC: __env_open_reply *));\ -\ */\ -void\ -__env_open_proc(dbenvcl_id, home, flags,\ -\ \ mode, replyp)\ -\ long dbenvcl_id;\ -\ char *home;\ -\ u_int32_t flags;\ -\ u_int32_t mode;\ -\ __env_open_reply *replyp;\ -/* END __env_open_proc */ -/^\/\* BEGIN __env_remove_proc/,/^\/\* END __env_remove_proc/c\ -/* BEGIN __env_remove_proc */\ -/*\ -\ * PUBLIC: void __env_remove_proc __P((long, char *, u_int32_t,\ -\ * PUBLIC: __env_remove_reply *));\ -\ */\ -void\ -__env_remove_proc(dbenvcl_id, home, flags, replyp)\ -\ long dbenvcl_id;\ -\ char *home;\ -\ u_int32_t flags;\ -\ __env_remove_reply *replyp;\ -/* END __env_remove_proc */ -/^\/\* BEGIN __txn_abort_proc/,/^\/\* END __txn_abort_proc/c\ -/* BEGIN __txn_abort_proc */\ -/*\ -\ * PUBLIC: void __txn_abort_proc __P((long, __txn_abort_reply *));\ -\ */\ -void\ -__txn_abort_proc(txnpcl_id, replyp)\ -\ long txnpcl_id;\ -\ __txn_abort_reply *replyp;\ -/* END __txn_abort_proc */ -/^\/\* BEGIN __txn_begin_proc/,/^\/\* END __txn_begin_proc/c\ -/* BEGIN __txn_begin_proc */\ -/*\ -\ * PUBLIC: void __txn_begin_proc __P((long, long, u_int32_t,\ -\ * PUBLIC: __txn_begin_reply *));\ -\ */\ -void\ -__txn_begin_proc(dbenvcl_id, parentcl_id,\ -\ \ flags, replyp)\ -\ long dbenvcl_id;\ -\ long parentcl_id;\ -\ u_int32_t flags;\ -\ __txn_begin_reply *replyp;\ -/* END __txn_begin_proc */ -/^\/\* BEGIN __txn_commit_proc/,/^\/\* END __txn_commit_proc/c\ -/* BEGIN __txn_commit_proc */\ -/*\ -\ * PUBLIC: void __txn_commit_proc __P((long, u_int32_t,\ -\ * PUBLIC: __txn_commit_reply *));\ -\ */\ -void\ -__txn_commit_proc(txnpcl_id, flags, replyp)\ -\ long txnpcl_id;\ -\ u_int32_t flags;\ -\ __txn_commit_reply *replyp;\ -/* END __txn_commit_proc */ -/^\/\* BEGIN __txn_discard_proc/,/^\/\* END __txn_discard_proc/c\ -/* BEGIN __txn_discard_proc */\ -/*\ -\ * PUBLIC: void __txn_discard_proc __P((long, u_int32_t,\ -\ * PUBLIC: __txn_discard_reply *));\ -\ */\ -void\ -__txn_discard_proc(txnpcl_id, flags, replyp)\ -\ long txnpcl_id;\ -\ u_int32_t flags;\ -\ __txn_discard_reply *replyp;\ -/* END __txn_discard_proc */ -/^\/\* BEGIN __txn_prepare_proc/,/^\/\* END __txn_prepare_proc/c\ -/* BEGIN __txn_prepare_proc */\ -/*\ -\ * PUBLIC: void __txn_prepare_proc __P((long, u_int8_t *,\ -\ * PUBLIC: __txn_prepare_reply *));\ -\ */\ -void\ -__txn_prepare_proc(txnpcl_id, gid, replyp)\ -\ long txnpcl_id;\ -\ u_int8_t *gid;\ -\ __txn_prepare_reply *replyp;\ -/* END __txn_prepare_proc */ -/^\/\* BEGIN __txn_recover_proc/,/^\/\* END __txn_recover_proc/c\ -/* BEGIN __txn_recover_proc */\ -/*\ -\ * PUBLIC: void __txn_recover_proc __P((long, u_int32_t, u_int32_t,\ -\ * PUBLIC: __txn_recover_reply *, int *));\ -\ */\ -void\ -__txn_recover_proc(dbenvcl_id, count,\ -\ \ flags, replyp, freep)\ -\ long dbenvcl_id;\ -\ u_int32_t count;\ -\ u_int32_t flags;\ -\ __txn_recover_reply *replyp;\ -\ int * freep;\ -/* END __txn_recover_proc */ -/^\/\* BEGIN __db_associate_proc/,/^\/\* END __db_associate_proc/c\ -/* BEGIN __db_associate_proc */\ -/*\ -\ * PUBLIC: void __db_associate_proc __P((long, long, long, u_int32_t,\ -\ * PUBLIC: __db_associate_reply *));\ -\ */\ -void\ -__db_associate_proc(dbpcl_id, txnpcl_id, sdbpcl_id,\ -\ \ flags, replyp)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ long sdbpcl_id;\ -\ u_int32_t flags;\ -\ __db_associate_reply *replyp;\ -/* END __db_associate_proc */ -/^\/\* BEGIN __db_bt_maxkey_proc/,/^\/\* END __db_bt_maxkey_proc/c\ -/* BEGIN __db_bt_maxkey_proc */\ -/*\ -\ * PUBLIC: void __db_bt_maxkey_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_bt_maxkey_reply *));\ -\ */\ -void\ -__db_bt_maxkey_proc(dbpcl_id, maxkey, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t maxkey;\ -\ __db_bt_maxkey_reply *replyp;\ -/* END __db_bt_maxkey_proc */ -/^\/\* BEGIN __db_bt_minkey_proc/,/^\/\* END __db_bt_minkey_proc/c\ -/* BEGIN __db_bt_minkey_proc */\ -/*\ -\ * PUBLIC: void __db_bt_minkey_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_bt_minkey_reply *));\ -\ */\ -void\ -__db_bt_minkey_proc(dbpcl_id, minkey, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t minkey;\ -\ __db_bt_minkey_reply *replyp;\ -/* END __db_bt_minkey_proc */ -/^\/\* BEGIN __db_close_proc/,/^\/\* END __db_close_proc/c\ -/* BEGIN __db_close_proc */\ -/*\ -\ * PUBLIC: void __db_close_proc __P((long, u_int32_t, __db_close_reply *));\ -\ */\ -void\ -__db_close_proc(dbpcl_id, flags, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t flags;\ -\ __db_close_reply *replyp;\ -/* END __db_close_proc */ -/^\/\* BEGIN __db_create_proc/,/^\/\* END __db_create_proc/c\ -/* BEGIN __db_create_proc */\ -/*\ -\ * PUBLIC: void __db_create_proc __P((long, u_int32_t, __db_create_reply *));\ -\ */\ -void\ -__db_create_proc(dbenvcl_id, flags, replyp)\ -\ long dbenvcl_id;\ -\ u_int32_t flags;\ -\ __db_create_reply *replyp;\ -/* END __db_create_proc */ -/^\/\* BEGIN __db_del_proc/,/^\/\* END __db_del_proc/c\ -/* BEGIN __db_del_proc */\ -/*\ -\ * PUBLIC: void __db_del_proc __P((long, long, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, __db_del_reply *));\ -\ */\ -void\ -__db_del_proc(dbpcl_id, txnpcl_id, keydlen,\ -\ \ keydoff, keyulen, keyflags, keydata,\ -\ \ keysize, flags, replyp)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t keydlen;\ -\ u_int32_t keydoff;\ -\ u_int32_t keyulen;\ -\ u_int32_t keyflags;\ -\ void *keydata;\ -\ u_int32_t keysize;\ -\ u_int32_t flags;\ -\ __db_del_reply *replyp;\ -/* END __db_del_proc */ -/^\/\* BEGIN __db_encrypt_proc/,/^\/\* END __db_encrypt_proc/c\ -/* BEGIN __db_encrypt_proc */\ -/*\ -\ * PUBLIC: void __db_encrypt_proc __P((long, char *, u_int32_t,\ -\ * PUBLIC: __db_encrypt_reply *));\ -\ */\ -void\ -__db_encrypt_proc(dbpcl_id, passwd, flags, replyp)\ -\ long dbpcl_id;\ -\ char *passwd;\ -\ u_int32_t flags;\ -\ __db_encrypt_reply *replyp;\ -/* END __db_encrypt_proc */ -/^\/\* BEGIN __db_extentsize_proc/,/^\/\* END __db_extentsize_proc/c\ -/* BEGIN __db_extentsize_proc */\ -/*\ -\ * PUBLIC: void __db_extentsize_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_extentsize_reply *));\ -\ */\ -void\ -__db_extentsize_proc(dbpcl_id, extentsize, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t extentsize;\ -\ __db_extentsize_reply *replyp;\ -/* END __db_extentsize_proc */ -/^\/\* BEGIN __db_flags_proc/,/^\/\* END __db_flags_proc/c\ -/* BEGIN __db_flags_proc */\ -/*\ -\ * PUBLIC: void __db_flags_proc __P((long, u_int32_t, __db_flags_reply *));\ -\ */\ -void\ -__db_flags_proc(dbpcl_id, flags, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t flags;\ -\ __db_flags_reply *replyp;\ -/* END __db_flags_proc */ -/^\/\* BEGIN __db_get_proc/,/^\/\* END __db_get_proc/c\ -/* BEGIN __db_get_proc */\ -/*\ -\ * PUBLIC: void __db_get_proc __P((long, long, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *,\ -\ * PUBLIC: u_int32_t, u_int32_t, __db_get_reply *, int *));\ -\ */\ -void\ -__db_get_proc(dbpcl_id, txnpcl_id, keydlen,\ -\ \ keydoff, keyulen, keyflags, keydata,\ -\ \ keysize, datadlen, datadoff, dataulen,\ -\ \ dataflags, datadata, datasize, flags, replyp, freep)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t keydlen;\ -\ u_int32_t keydoff;\ -\ u_int32_t keyulen;\ -\ u_int32_t keyflags;\ -\ void *keydata;\ -\ u_int32_t keysize;\ -\ u_int32_t datadlen;\ -\ u_int32_t datadoff;\ -\ u_int32_t dataulen;\ -\ u_int32_t dataflags;\ -\ void *datadata;\ -\ u_int32_t datasize;\ -\ u_int32_t flags;\ -\ __db_get_reply *replyp;\ -\ int * freep;\ -/* END __db_get_proc */ -/^\/\* BEGIN __db_h_ffactor_proc/,/^\/\* END __db_h_ffactor_proc/c\ -/* BEGIN __db_h_ffactor_proc */\ -/*\ -\ * PUBLIC: void __db_h_ffactor_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_h_ffactor_reply *));\ -\ */\ -void\ -__db_h_ffactor_proc(dbpcl_id, ffactor, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t ffactor;\ -\ __db_h_ffactor_reply *replyp;\ -/* END __db_h_ffactor_proc */ -/^\/\* BEGIN __db_h_nelem_proc/,/^\/\* END __db_h_nelem_proc/c\ -/* BEGIN __db_h_nelem_proc */\ -/*\ -\ * PUBLIC: void __db_h_nelem_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_h_nelem_reply *));\ -\ */\ -void\ -__db_h_nelem_proc(dbpcl_id, nelem, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t nelem;\ -\ __db_h_nelem_reply *replyp;\ -/* END __db_h_nelem_proc */ -/^\/\* BEGIN __db_key_range_proc/,/^\/\* END __db_key_range_proc/c\ -/* BEGIN __db_key_range_proc */\ -/*\ -\ * PUBLIC: void __db_key_range_proc __P((long, long, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_key_range_reply *));\ -\ */\ -void\ -__db_key_range_proc(dbpcl_id, txnpcl_id, keydlen,\ -\ \ keydoff, keyulen, keyflags, keydata,\ -\ \ keysize, flags, replyp)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t keydlen;\ -\ u_int32_t keydoff;\ -\ u_int32_t keyulen;\ -\ u_int32_t keyflags;\ -\ void *keydata;\ -\ u_int32_t keysize;\ -\ u_int32_t flags;\ -\ __db_key_range_reply *replyp;\ -/* END __db_key_range_proc */ -/^\/\* BEGIN __db_lorder_proc/,/^\/\* END __db_lorder_proc/c\ -/* BEGIN __db_lorder_proc */\ -/*\ -\ * PUBLIC: void __db_lorder_proc __P((long, u_int32_t, __db_lorder_reply *));\ -\ */\ -void\ -__db_lorder_proc(dbpcl_id, lorder, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t lorder;\ -\ __db_lorder_reply *replyp;\ -/* END __db_lorder_proc */ -/^\/\* BEGIN __db_open_proc/,/^\/\* END __db_open_proc/c\ -/* BEGIN __db_open_proc */\ -/*\ -\ * PUBLIC: void __db_open_proc __P((long, long, char *, char *, u_int32_t,\ -\ * PUBLIC: u_int32_t, u_int32_t, __db_open_reply *));\ -\ */\ -void\ -__db_open_proc(dbpcl_id, txnpcl_id, name,\ -\ \ subdb, type, flags, mode, replyp)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ char *name;\ -\ char *subdb;\ -\ u_int32_t type;\ -\ u_int32_t flags;\ -\ u_int32_t mode;\ -\ __db_open_reply *replyp;\ -/* END __db_open_proc */ -/^\/\* BEGIN __db_pagesize_proc/,/^\/\* END __db_pagesize_proc/c\ -/* BEGIN __db_pagesize_proc */\ -/*\ -\ * PUBLIC: void __db_pagesize_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_pagesize_reply *));\ -\ */\ -void\ -__db_pagesize_proc(dbpcl_id, pagesize, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t pagesize;\ -\ __db_pagesize_reply *replyp;\ -/* END __db_pagesize_proc */ -/^\/\* BEGIN __db_pget_proc/,/^\/\* END __db_pget_proc/c\ -/* BEGIN __db_pget_proc */\ -/*\ -\ * PUBLIC: void __db_pget_proc __P((long, long, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *,\ -\ * PUBLIC: u_int32_t, u_int32_t, __db_pget_reply *, int *));\ -\ */\ -void\ -__db_pget_proc(dbpcl_id, txnpcl_id, skeydlen,\ -\ \ skeydoff, skeyulen, skeyflags, skeydata,\ -\ \ skeysize, pkeydlen, pkeydoff, pkeyulen,\ -\ \ pkeyflags, pkeydata, pkeysize, datadlen,\ -\ \ datadoff, dataulen, dataflags, datadata,\ -\ \ datasize, flags, replyp, freep)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t skeydlen;\ -\ u_int32_t skeydoff;\ -\ u_int32_t skeyulen;\ -\ u_int32_t skeyflags;\ -\ void *skeydata;\ -\ u_int32_t skeysize;\ -\ u_int32_t pkeydlen;\ -\ u_int32_t pkeydoff;\ -\ u_int32_t pkeyulen;\ -\ u_int32_t pkeyflags;\ -\ void *pkeydata;\ -\ u_int32_t pkeysize;\ -\ u_int32_t datadlen;\ -\ u_int32_t datadoff;\ -\ u_int32_t dataulen;\ -\ u_int32_t dataflags;\ -\ void *datadata;\ -\ u_int32_t datasize;\ -\ u_int32_t flags;\ -\ __db_pget_reply *replyp;\ -\ int * freep;\ -/* END __db_pget_proc */ -/^\/\* BEGIN __db_put_proc/,/^\/\* END __db_put_proc/c\ -/* BEGIN __db_put_proc */\ -/*\ -\ * PUBLIC: void __db_put_proc __P((long, long, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *,\ -\ * PUBLIC: u_int32_t, u_int32_t, __db_put_reply *, int *));\ -\ */\ -void\ -__db_put_proc(dbpcl_id, txnpcl_id, keydlen,\ -\ \ keydoff, keyulen, keyflags, keydata,\ -\ \ keysize, datadlen, datadoff, dataulen,\ -\ \ dataflags, datadata, datasize, flags, replyp, freep)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t keydlen;\ -\ u_int32_t keydoff;\ -\ u_int32_t keyulen;\ -\ u_int32_t keyflags;\ -\ void *keydata;\ -\ u_int32_t keysize;\ -\ u_int32_t datadlen;\ -\ u_int32_t datadoff;\ -\ u_int32_t dataulen;\ -\ u_int32_t dataflags;\ -\ void *datadata;\ -\ u_int32_t datasize;\ -\ u_int32_t flags;\ -\ __db_put_reply *replyp;\ -\ int * freep;\ -/* END __db_put_proc */ -/^\/\* BEGIN __db_re_delim_proc/,/^\/\* END __db_re_delim_proc/c\ -/* BEGIN __db_re_delim_proc */\ -/*\ -\ * PUBLIC: void __db_re_delim_proc __P((long, u_int32_t,\ -\ * PUBLIC: __db_re_delim_reply *));\ -\ */\ -void\ -__db_re_delim_proc(dbpcl_id, delim, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t delim;\ -\ __db_re_delim_reply *replyp;\ -/* END __db_re_delim_proc */ -/^\/\* BEGIN __db_re_len_proc/,/^\/\* END __db_re_len_proc/c\ -/* BEGIN __db_re_len_proc */\ -/*\ -\ * PUBLIC: void __db_re_len_proc __P((long, u_int32_t, __db_re_len_reply *));\ -\ */\ -void\ -__db_re_len_proc(dbpcl_id, len, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t len;\ -\ __db_re_len_reply *replyp;\ -/* END __db_re_len_proc */ -/^\/\* BEGIN __db_re_pad_proc/,/^\/\* END __db_re_pad_proc/c\ -/* BEGIN __db_re_pad_proc */\ -/*\ -\ * PUBLIC: void __db_re_pad_proc __P((long, u_int32_t, __db_re_pad_reply *));\ -\ */\ -void\ -__db_re_pad_proc(dbpcl_id, pad, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t pad;\ -\ __db_re_pad_reply *replyp;\ -/* END __db_re_pad_proc */ -/^\/\* BEGIN __db_remove_proc/,/^\/\* END __db_remove_proc/c\ -/* BEGIN __db_remove_proc */\ -/*\ -\ * PUBLIC: void __db_remove_proc __P((long, char *, char *, u_int32_t,\ -\ * PUBLIC: __db_remove_reply *));\ -\ */\ -void\ -__db_remove_proc(dbpcl_id, name, subdb,\ -\ \ flags, replyp)\ -\ long dbpcl_id;\ -\ char *name;\ -\ char *subdb;\ -\ u_int32_t flags;\ -\ __db_remove_reply *replyp;\ -/* END __db_remove_proc */ -/^\/\* BEGIN __db_rename_proc/,/^\/\* END __db_rename_proc/c\ -/* BEGIN __db_rename_proc */\ -/*\ -\ * PUBLIC: void __db_rename_proc __P((long, char *, char *, char *, u_int32_t,\ -\ * PUBLIC: __db_rename_reply *));\ -\ */\ -void\ -__db_rename_proc(dbpcl_id, name, subdb,\ -\ \ newname, flags, replyp)\ -\ long dbpcl_id;\ -\ char *name;\ -\ char *subdb;\ -\ char *newname;\ -\ u_int32_t flags;\ -\ __db_rename_reply *replyp;\ -/* END __db_rename_proc */ -/^\/\* BEGIN __db_stat_proc/,/^\/\* END __db_stat_proc/c\ -/* BEGIN __db_stat_proc */\ -/*\ -\ * PUBLIC: void __db_stat_proc __P((long, u_int32_t, __db_stat_reply *,\ -\ * PUBLIC: int *));\ -\ */\ -void\ -__db_stat_proc(dbpcl_id, flags, replyp, freep)\ -\ long dbpcl_id;\ -\ u_int32_t flags;\ -\ __db_stat_reply *replyp;\ -\ int * freep;\ -/* END __db_stat_proc */ -/^\/\* BEGIN __db_sync_proc/,/^\/\* END __db_sync_proc/c\ -/* BEGIN __db_sync_proc */\ -/*\ -\ * PUBLIC: void __db_sync_proc __P((long, u_int32_t, __db_sync_reply *));\ -\ */\ -void\ -__db_sync_proc(dbpcl_id, flags, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t flags;\ -\ __db_sync_reply *replyp;\ -/* END __db_sync_proc */ -/^\/\* BEGIN __db_truncate_proc/,/^\/\* END __db_truncate_proc/c\ -/* BEGIN __db_truncate_proc */\ -/*\ -\ * PUBLIC: void __db_truncate_proc __P((long, long, u_int32_t,\ -\ * PUBLIC: __db_truncate_reply *));\ -\ */\ -void\ -__db_truncate_proc(dbpcl_id, txnpcl_id,\ -\ \ flags, replyp)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t flags;\ -\ __db_truncate_reply *replyp;\ -/* END __db_truncate_proc */ -/^\/\* BEGIN __db_cursor_proc/,/^\/\* END __db_cursor_proc/c\ -/* BEGIN __db_cursor_proc */\ -/*\ -\ * PUBLIC: void __db_cursor_proc __P((long, long, u_int32_t,\ -\ * PUBLIC: __db_cursor_reply *));\ -\ */\ -void\ -__db_cursor_proc(dbpcl_id, txnpcl_id,\ -\ \ flags, replyp)\ -\ long dbpcl_id;\ -\ long txnpcl_id;\ -\ u_int32_t flags;\ -\ __db_cursor_reply *replyp;\ -/* END __db_cursor_proc */ -/^\/\* BEGIN __db_join_proc/,/^\/\* END __db_join_proc/c\ -/* BEGIN __db_join_proc */\ -/*\ -\ * PUBLIC: void __db_join_proc __P((long, u_int32_t *, u_int32_t, u_int32_t,\ -\ * PUBLIC: __db_join_reply *));\ -\ */\ -void\ -__db_join_proc(dbpcl_id, curs, curslen,\ -\ \ flags, replyp)\ -\ long dbpcl_id;\ -\ u_int32_t * curs;\ -\ u_int32_t curslen;\ -\ u_int32_t flags;\ -\ __db_join_reply *replyp;\ -/* END __db_join_proc */ -/^\/\* BEGIN __dbc_close_proc/,/^\/\* END __dbc_close_proc/c\ -/* BEGIN __dbc_close_proc */\ -/*\ -\ * PUBLIC: void __dbc_close_proc __P((long, __dbc_close_reply *));\ -\ */\ -void\ -__dbc_close_proc(dbccl_id, replyp)\ -\ long dbccl_id;\ -\ __dbc_close_reply *replyp;\ -/* END __dbc_close_proc */ -/^\/\* BEGIN __dbc_count_proc/,/^\/\* END __dbc_count_proc/c\ -/* BEGIN __dbc_count_proc */\ -/*\ -\ * PUBLIC: void __dbc_count_proc __P((long, u_int32_t, __dbc_count_reply *));\ -\ */\ -void\ -__dbc_count_proc(dbccl_id, flags, replyp)\ -\ long dbccl_id;\ -\ u_int32_t flags;\ -\ __dbc_count_reply *replyp;\ -/* END __dbc_count_proc */ -/^\/\* BEGIN __dbc_del_proc/,/^\/\* END __dbc_del_proc/c\ -/* BEGIN __dbc_del_proc */\ -/*\ -\ * PUBLIC: void __dbc_del_proc __P((long, u_int32_t, __dbc_del_reply *));\ -\ */\ -void\ -__dbc_del_proc(dbccl_id, flags, replyp)\ -\ long dbccl_id;\ -\ u_int32_t flags;\ -\ __dbc_del_reply *replyp;\ -/* END __dbc_del_proc */ -/^\/\* BEGIN __dbc_dup_proc/,/^\/\* END __dbc_dup_proc/c\ -/* BEGIN __dbc_dup_proc */\ -/*\ -\ * PUBLIC: void __dbc_dup_proc __P((long, u_int32_t, __dbc_dup_reply *));\ -\ */\ -void\ -__dbc_dup_proc(dbccl_id, flags, replyp)\ -\ long dbccl_id;\ -\ u_int32_t flags;\ -\ __dbc_dup_reply *replyp;\ -/* END __dbc_dup_proc */ -/^\/\* BEGIN __dbc_get_proc/,/^\/\* END __dbc_get_proc/c\ -/* BEGIN __dbc_get_proc */\ -/*\ -\ * PUBLIC: void __dbc_get_proc __P((long, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *,\ -\ * PUBLIC: u_int32_t, u_int32_t, __dbc_get_reply *, int *));\ -\ */\ -void\ -__dbc_get_proc(dbccl_id, keydlen, keydoff,\ -\ \ keyulen, keyflags, keydata, keysize,\ -\ \ datadlen, datadoff, dataulen, dataflags,\ -\ \ datadata, datasize, flags, replyp, freep)\ -\ long dbccl_id;\ -\ u_int32_t keydlen;\ -\ u_int32_t keydoff;\ -\ u_int32_t keyulen;\ -\ u_int32_t keyflags;\ -\ void *keydata;\ -\ u_int32_t keysize;\ -\ u_int32_t datadlen;\ -\ u_int32_t datadoff;\ -\ u_int32_t dataulen;\ -\ u_int32_t dataflags;\ -\ void *datadata;\ -\ u_int32_t datasize;\ -\ u_int32_t flags;\ -\ __dbc_get_reply *replyp;\ -\ int * freep;\ -/* END __dbc_get_proc */ -/^\/\* BEGIN __dbc_pget_proc/,/^\/\* END __dbc_pget_proc/c\ -/* BEGIN __dbc_pget_proc */\ -/*\ -\ * PUBLIC: void __dbc_pget_proc __P((long, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *,\ -\ * PUBLIC: u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t,\ -\ * PUBLIC: u_int32_t, __dbc_pget_reply *, int *));\ -\ */\ -void\ -__dbc_pget_proc(dbccl_id, skeydlen, skeydoff,\ -\ \ skeyulen, skeyflags, skeydata, skeysize,\ -\ \ pkeydlen, pkeydoff, pkeyulen, pkeyflags,\ -\ \ pkeydata, pkeysize, datadlen, datadoff,\ -\ \ dataulen, dataflags, datadata, datasize,\ -\ \ flags, replyp, freep)\ -\ long dbccl_id;\ -\ u_int32_t skeydlen;\ -\ u_int32_t skeydoff;\ -\ u_int32_t skeyulen;\ -\ u_int32_t skeyflags;\ -\ void *skeydata;\ -\ u_int32_t skeysize;\ -\ u_int32_t pkeydlen;\ -\ u_int32_t pkeydoff;\ -\ u_int32_t pkeyulen;\ -\ u_int32_t pkeyflags;\ -\ void *pkeydata;\ -\ u_int32_t pkeysize;\ -\ u_int32_t datadlen;\ -\ u_int32_t datadoff;\ -\ u_int32_t dataulen;\ -\ u_int32_t dataflags;\ -\ void *datadata;\ -\ u_int32_t datasize;\ -\ u_int32_t flags;\ -\ __dbc_pget_reply *replyp;\ -\ int * freep;\ -/* END __dbc_pget_proc */ -/^\/\* BEGIN __dbc_put_proc/,/^\/\* END __dbc_put_proc/c\ -/* BEGIN __dbc_put_proc */\ -/*\ -\ * PUBLIC: void __dbc_put_proc __P((long, u_int32_t, u_int32_t, u_int32_t,\ -\ * PUBLIC: u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *,\ -\ * PUBLIC: u_int32_t, u_int32_t, __dbc_put_reply *, int *));\ -\ */\ -void\ -__dbc_put_proc(dbccl_id, keydlen, keydoff,\ -\ \ keyulen, keyflags, keydata, keysize,\ -\ \ datadlen, datadoff, dataulen, dataflags,\ -\ \ datadata, datasize, flags, replyp, freep)\ -\ long dbccl_id;\ -\ u_int32_t keydlen;\ -\ u_int32_t keydoff;\ -\ u_int32_t keyulen;\ -\ u_int32_t keyflags;\ -\ void *keydata;\ -\ u_int32_t keysize;\ -\ u_int32_t datadlen;\ -\ u_int32_t datadoff;\ -\ u_int32_t dataulen;\ -\ u_int32_t dataflags;\ -\ void *datadata;\ -\ u_int32_t datasize;\ -\ u_int32_t flags;\ -\ __dbc_put_reply *replyp;\ -\ int * freep;\ -/* END __dbc_put_proc */ diff --git a/bdb/rpc_server/c/db_server_svc.c b/bdb/rpc_server/c/db_server_svc.c deleted file mode 100644 index 96dd959ec8c..00000000000 --- a/bdb/rpc_server/c/db_server_svc.c +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#include "db_config.h" - -#ifndef NO_SYSTEM_INCLUDES -#include <rpc/rpc.h> -#include <rpc/pmap_clnt.h> -#include <stdio.h> -#include <stdlib.h> /* getenv, exit */ -#include <memory.h> -#include <sys/socket.h> -#include <netinet/in.h> -#endif - -#include "db_int.h" -#include "dbinc_auto/db_server.h" -#include "dbinc/db_server_int.h" -#include "dbinc_auto/rpc_server_ext.h" - -#ifdef DEBUG -#define RPC_SVC_FG -#endif - -static void -db_rpc_serverprog_4001(rqstp, transp) - struct svc_req *rqstp; - register SVCXPRT *transp; -{ - union { - __env_cachesize_msg __db_env_cachesize_4001_arg; - __env_close_msg __db_env_close_4001_arg; - __env_create_msg __db_env_create_4001_arg; - __env_dbremove_msg __db_env_dbremove_4001_arg; - __env_dbrename_msg __db_env_dbrename_4001_arg; - __env_encrypt_msg __db_env_encrypt_4001_arg; - __env_flags_msg __db_env_flags_4001_arg; - __env_open_msg __db_env_open_4001_arg; - __env_remove_msg __db_env_remove_4001_arg; - __txn_abort_msg __db_txn_abort_4001_arg; - __txn_begin_msg __db_txn_begin_4001_arg; - __txn_commit_msg __db_txn_commit_4001_arg; - __txn_discard_msg __db_txn_discard_4001_arg; - __txn_prepare_msg __db_txn_prepare_4001_arg; - __txn_recover_msg __db_txn_recover_4001_arg; - __db_associate_msg __db_db_associate_4001_arg; - __db_bt_maxkey_msg __db_db_bt_maxkey_4001_arg; - __db_bt_minkey_msg __db_db_bt_minkey_4001_arg; - __db_close_msg __db_db_close_4001_arg; - __db_create_msg __db_db_create_4001_arg; - __db_del_msg __db_db_del_4001_arg; - __db_encrypt_msg __db_db_encrypt_4001_arg; - __db_extentsize_msg __db_db_extentsize_4001_arg; - __db_flags_msg __db_db_flags_4001_arg; - __db_get_msg __db_db_get_4001_arg; - __db_h_ffactor_msg __db_db_h_ffactor_4001_arg; - __db_h_nelem_msg __db_db_h_nelem_4001_arg; - __db_key_range_msg __db_db_key_range_4001_arg; - __db_lorder_msg __db_db_lorder_4001_arg; - __db_open_msg __db_db_open_4001_arg; - __db_pagesize_msg __db_db_pagesize_4001_arg; - __db_pget_msg __db_db_pget_4001_arg; - __db_put_msg __db_db_put_4001_arg; - __db_re_delim_msg __db_db_re_delim_4001_arg; - __db_re_len_msg __db_db_re_len_4001_arg; - __db_re_pad_msg __db_db_re_pad_4001_arg; - __db_remove_msg __db_db_remove_4001_arg; - __db_rename_msg __db_db_rename_4001_arg; - __db_stat_msg __db_db_stat_4001_arg; - __db_sync_msg __db_db_sync_4001_arg; - __db_truncate_msg __db_db_truncate_4001_arg; - __db_cursor_msg __db_db_cursor_4001_arg; - __db_join_msg __db_db_join_4001_arg; - __dbc_close_msg __db_dbc_close_4001_arg; - __dbc_count_msg __db_dbc_count_4001_arg; - __dbc_del_msg __db_dbc_del_4001_arg; - __dbc_dup_msg __db_dbc_dup_4001_arg; - __dbc_get_msg __db_dbc_get_4001_arg; - __dbc_pget_msg __db_dbc_pget_4001_arg; - __dbc_put_msg __db_dbc_put_4001_arg; - } argument; - char *result; - bool_t (*xdr_argument)(), (*xdr_result)(); - char *(*local)(); - - switch (rqstp->rq_proc) { - case NULLPROC: - (void) svc_sendreply(transp, (xdrproc_t)xdr_void, - (char *)NULL); - return; - - case __DB_env_cachesize: - xdr_argument = xdr___env_cachesize_msg; - xdr_result = xdr___env_cachesize_reply; - local = (char *(*)()) __db_env_cachesize_4001; - break; - - case __DB_env_close: - xdr_argument = xdr___env_close_msg; - xdr_result = xdr___env_close_reply; - local = (char *(*)()) __db_env_close_4001; - break; - - case __DB_env_create: - xdr_argument = xdr___env_create_msg; - xdr_result = xdr___env_create_reply; - local = (char *(*)()) __db_env_create_4001; - break; - - case __DB_env_dbremove: - xdr_argument = xdr___env_dbremove_msg; - xdr_result = xdr___env_dbremove_reply; - local = (char *(*)()) __db_env_dbremove_4001; - break; - - case __DB_env_dbrename: - xdr_argument = xdr___env_dbrename_msg; - xdr_result = xdr___env_dbrename_reply; - local = (char *(*)()) __db_env_dbrename_4001; - break; - - case __DB_env_encrypt: - xdr_argument = xdr___env_encrypt_msg; - xdr_result = xdr___env_encrypt_reply; - local = (char *(*)()) __db_env_encrypt_4001; - break; - - case __DB_env_flags: - xdr_argument = xdr___env_flags_msg; - xdr_result = xdr___env_flags_reply; - local = (char *(*)()) __db_env_flags_4001; - break; - - case __DB_env_open: - xdr_argument = xdr___env_open_msg; - xdr_result = xdr___env_open_reply; - local = (char *(*)()) __db_env_open_4001; - break; - - case __DB_env_remove: - xdr_argument = xdr___env_remove_msg; - xdr_result = xdr___env_remove_reply; - local = (char *(*)()) __db_env_remove_4001; - break; - - case __DB_txn_abort: - xdr_argument = xdr___txn_abort_msg; - xdr_result = xdr___txn_abort_reply; - local = (char *(*)()) __db_txn_abort_4001; - break; - - case __DB_txn_begin: - xdr_argument = xdr___txn_begin_msg; - xdr_result = xdr___txn_begin_reply; - local = (char *(*)()) __db_txn_begin_4001; - break; - - case __DB_txn_commit: - xdr_argument = xdr___txn_commit_msg; - xdr_result = xdr___txn_commit_reply; - local = (char *(*)()) __db_txn_commit_4001; - break; - - case __DB_txn_discard: - xdr_argument = xdr___txn_discard_msg; - xdr_result = xdr___txn_discard_reply; - local = (char *(*)()) __db_txn_discard_4001; - break; - - case __DB_txn_prepare: - xdr_argument = xdr___txn_prepare_msg; - xdr_result = xdr___txn_prepare_reply; - local = (char *(*)()) __db_txn_prepare_4001; - break; - - case __DB_txn_recover: - xdr_argument = xdr___txn_recover_msg; - xdr_result = xdr___txn_recover_reply; - local = (char *(*)()) __db_txn_recover_4001; - break; - - case __DB_db_associate: - xdr_argument = xdr___db_associate_msg; - xdr_result = xdr___db_associate_reply; - local = (char *(*)()) __db_db_associate_4001; - break; - - case __DB_db_bt_maxkey: - xdr_argument = xdr___db_bt_maxkey_msg; - xdr_result = xdr___db_bt_maxkey_reply; - local = (char *(*)()) __db_db_bt_maxkey_4001; - break; - - case __DB_db_bt_minkey: - xdr_argument = xdr___db_bt_minkey_msg; - xdr_result = xdr___db_bt_minkey_reply; - local = (char *(*)()) __db_db_bt_minkey_4001; - break; - - case __DB_db_close: - xdr_argument = xdr___db_close_msg; - xdr_result = xdr___db_close_reply; - local = (char *(*)()) __db_db_close_4001; - break; - - case __DB_db_create: - xdr_argument = xdr___db_create_msg; - xdr_result = xdr___db_create_reply; - local = (char *(*)()) __db_db_create_4001; - break; - - case __DB_db_del: - xdr_argument = xdr___db_del_msg; - xdr_result = xdr___db_del_reply; - local = (char *(*)()) __db_db_del_4001; - break; - - case __DB_db_encrypt: - xdr_argument = xdr___db_encrypt_msg; - xdr_result = xdr___db_encrypt_reply; - local = (char *(*)()) __db_db_encrypt_4001; - break; - - case __DB_db_extentsize: - xdr_argument = xdr___db_extentsize_msg; - xdr_result = xdr___db_extentsize_reply; - local = (char *(*)()) __db_db_extentsize_4001; - break; - - case __DB_db_flags: - xdr_argument = xdr___db_flags_msg; - xdr_result = xdr___db_flags_reply; - local = (char *(*)()) __db_db_flags_4001; - break; - - case __DB_db_get: - xdr_argument = xdr___db_get_msg; - xdr_result = xdr___db_get_reply; - local = (char *(*)()) __db_db_get_4001; - break; - - case __DB_db_h_ffactor: - xdr_argument = xdr___db_h_ffactor_msg; - xdr_result = xdr___db_h_ffactor_reply; - local = (char *(*)()) __db_db_h_ffactor_4001; - break; - - case __DB_db_h_nelem: - xdr_argument = xdr___db_h_nelem_msg; - xdr_result = xdr___db_h_nelem_reply; - local = (char *(*)()) __db_db_h_nelem_4001; - break; - - case __DB_db_key_range: - xdr_argument = xdr___db_key_range_msg; - xdr_result = xdr___db_key_range_reply; - local = (char *(*)()) __db_db_key_range_4001; - break; - - case __DB_db_lorder: - xdr_argument = xdr___db_lorder_msg; - xdr_result = xdr___db_lorder_reply; - local = (char *(*)()) __db_db_lorder_4001; - break; - - case __DB_db_open: - xdr_argument = xdr___db_open_msg; - xdr_result = xdr___db_open_reply; - local = (char *(*)()) __db_db_open_4001; - break; - - case __DB_db_pagesize: - xdr_argument = xdr___db_pagesize_msg; - xdr_result = xdr___db_pagesize_reply; - local = (char *(*)()) __db_db_pagesize_4001; - break; - - case __DB_db_pget: - xdr_argument = xdr___db_pget_msg; - xdr_result = xdr___db_pget_reply; - local = (char *(*)()) __db_db_pget_4001; - break; - - case __DB_db_put: - xdr_argument = xdr___db_put_msg; - xdr_result = xdr___db_put_reply; - local = (char *(*)()) __db_db_put_4001; - break; - - case __DB_db_re_delim: - xdr_argument = xdr___db_re_delim_msg; - xdr_result = xdr___db_re_delim_reply; - local = (char *(*)()) __db_db_re_delim_4001; - break; - - case __DB_db_re_len: - xdr_argument = xdr___db_re_len_msg; - xdr_result = xdr___db_re_len_reply; - local = (char *(*)()) __db_db_re_len_4001; - break; - - case __DB_db_re_pad: - xdr_argument = xdr___db_re_pad_msg; - xdr_result = xdr___db_re_pad_reply; - local = (char *(*)()) __db_db_re_pad_4001; - break; - - case __DB_db_remove: - xdr_argument = xdr___db_remove_msg; - xdr_result = xdr___db_remove_reply; - local = (char *(*)()) __db_db_remove_4001; - break; - - case __DB_db_rename: - xdr_argument = xdr___db_rename_msg; - xdr_result = xdr___db_rename_reply; - local = (char *(*)()) __db_db_rename_4001; - break; - - case __DB_db_stat: - xdr_argument = xdr___db_stat_msg; - xdr_result = xdr___db_stat_reply; - local = (char *(*)()) __db_db_stat_4001; - break; - - case __DB_db_sync: - xdr_argument = xdr___db_sync_msg; - xdr_result = xdr___db_sync_reply; - local = (char *(*)()) __db_db_sync_4001; - break; - - case __DB_db_truncate: - xdr_argument = xdr___db_truncate_msg; - xdr_result = xdr___db_truncate_reply; - local = (char *(*)()) __db_db_truncate_4001; - break; - - case __DB_db_cursor: - xdr_argument = xdr___db_cursor_msg; - xdr_result = xdr___db_cursor_reply; - local = (char *(*)()) __db_db_cursor_4001; - break; - - case __DB_db_join: - xdr_argument = xdr___db_join_msg; - xdr_result = xdr___db_join_reply; - local = (char *(*)()) __db_db_join_4001; - break; - - case __DB_dbc_close: - xdr_argument = xdr___dbc_close_msg; - xdr_result = xdr___dbc_close_reply; - local = (char *(*)()) __db_dbc_close_4001; - break; - - case __DB_dbc_count: - xdr_argument = xdr___dbc_count_msg; - xdr_result = xdr___dbc_count_reply; - local = (char *(*)()) __db_dbc_count_4001; - break; - - case __DB_dbc_del: - xdr_argument = xdr___dbc_del_msg; - xdr_result = xdr___dbc_del_reply; - local = (char *(*)()) __db_dbc_del_4001; - break; - - case __DB_dbc_dup: - xdr_argument = xdr___dbc_dup_msg; - xdr_result = xdr___dbc_dup_reply; - local = (char *(*)()) __db_dbc_dup_4001; - break; - - case __DB_dbc_get: - xdr_argument = xdr___dbc_get_msg; - xdr_result = xdr___dbc_get_reply; - local = (char *(*)()) __db_dbc_get_4001; - break; - - case __DB_dbc_pget: - xdr_argument = xdr___dbc_pget_msg; - xdr_result = xdr___dbc_pget_reply; - local = (char *(*)()) __db_dbc_pget_4001; - break; - - case __DB_dbc_put: - xdr_argument = xdr___dbc_put_msg; - xdr_result = xdr___dbc_put_reply; - local = (char *(*)()) __db_dbc_put_4001; - break; - - default: - svcerr_noproc(transp); - return; - } - (void) memset((char *)&argument, 0, sizeof (argument)); - if (!svc_getargs(transp, (xdrproc_t)xdr_argument, (char *)&argument)) { - svcerr_decode(transp); - return; - } - result = (*local)(&argument, rqstp); - if (result != NULL && !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) { - svcerr_systemerr(transp); - } - if (!svc_freeargs(transp, (xdrproc_t)xdr_argument, (char *)&argument)) { - fprintf(stderr, "unable to free arguments"); - exit(1); - } - __dbsrv_timeout(0); - return; -} - -void __dbsrv_main() -{ - register SVCXPRT *transp; - - (void) pmap_unset(DB_RPC_SERVERPROG, DB_RPC_SERVERVERS); - - transp = svctcp_create(RPC_ANYSOCK, 0, 0); - if (transp == NULL) { - fprintf(stderr, "cannot create tcp service."); - exit(1); - } - if (!svc_register(transp, DB_RPC_SERVERPROG, DB_RPC_SERVERVERS, db_rpc_serverprog_4001, IPPROTO_TCP)) { - fprintf(stderr, "unable to register (DB_RPC_SERVERPROG, DB_RPC_SERVERVERS, tcp)."); - exit(1); - } - - svc_run(); - fprintf(stderr, "svc_run returned"); - exit(1); - /* NOTREACHED */ -} diff --git a/bdb/rpc_server/c/db_server_xdr.c b/bdb/rpc_server/c/db_server_xdr.c deleted file mode 100644 index bfe2b6c09c7..00000000000 --- a/bdb/rpc_server/c/db_server_xdr.c +++ /dev/null @@ -1,1512 +0,0 @@ -#include "db_config.h" - -#ifdef HAVE_RPC -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef NO_SYSTEM_INCLUDES -#include <rpc/rpc.h> - -#include <strings.h> -#endif - -#include "db_int.h" -#include "dbinc_auto/db_server.h" - -bool_t -xdr___env_cachesize_msg(xdrs, objp) - register XDR *xdrs; - __env_cachesize_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->gbytes)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->bytes)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->ncache)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_cachesize_reply(xdrs, objp) - register XDR *xdrs; - __env_cachesize_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_close_msg(xdrs, objp) - register XDR *xdrs; - __env_close_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_close_reply(xdrs, objp) - register XDR *xdrs; - __env_close_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_create_msg(xdrs, objp) - register XDR *xdrs; - __env_create_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->timeout)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_create_reply(xdrs, objp) - register XDR *xdrs; - __env_create_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->envcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_dbremove_msg(xdrs, objp) - register XDR *xdrs; - __env_dbremove_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->name, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->subdb, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_dbremove_reply(xdrs, objp) - register XDR *xdrs; - __env_dbremove_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_dbrename_msg(xdrs, objp) - register XDR *xdrs; - __env_dbrename_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->name, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->subdb, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->newname, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_dbrename_reply(xdrs, objp) - register XDR *xdrs; - __env_dbrename_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_encrypt_msg(xdrs, objp) - register XDR *xdrs; - __env_encrypt_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->passwd, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_encrypt_reply(xdrs, objp) - register XDR *xdrs; - __env_encrypt_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_flags_msg(xdrs, objp) - register XDR *xdrs; - __env_flags_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->onoff)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_flags_reply(xdrs, objp) - register XDR *xdrs; - __env_flags_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_open_msg(xdrs, objp) - register XDR *xdrs; - __env_open_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->home, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->mode)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_open_reply(xdrs, objp) - register XDR *xdrs; - __env_open_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->envcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_remove_msg(xdrs, objp) - register XDR *xdrs; - __env_remove_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->home, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___env_remove_reply(xdrs, objp) - register XDR *xdrs; - __env_remove_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_abort_msg(xdrs, objp) - register XDR *xdrs; - __txn_abort_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_abort_reply(xdrs, objp) - register XDR *xdrs; - __txn_abort_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_begin_msg(xdrs, objp) - register XDR *xdrs; - __txn_begin_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->parentcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_begin_reply(xdrs, objp) - register XDR *xdrs; - __txn_begin_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnidcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_commit_msg(xdrs, objp) - register XDR *xdrs; - __txn_commit_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_commit_reply(xdrs, objp) - register XDR *xdrs; - __txn_commit_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_discard_msg(xdrs, objp) - register XDR *xdrs; - __txn_discard_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_discard_reply(xdrs, objp) - register XDR *xdrs; - __txn_discard_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_prepare_msg(xdrs, objp) - register XDR *xdrs; - __txn_prepare_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_opaque(xdrs, objp->gid, 128)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_prepare_reply(xdrs, objp) - register XDR *xdrs; - __txn_prepare_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_recover_msg(xdrs, objp) - register XDR *xdrs; - __txn_recover_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->count)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___txn_recover_reply(xdrs, objp) - register XDR *xdrs; - __txn_recover_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_array(xdrs, (char **)&objp->txn.txn_val, (u_int *) &objp->txn.txn_len, ~0, - sizeof (u_int), (xdrproc_t) xdr_u_int)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->gid.gid_val, (u_int *) &objp->gid.gid_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->retcount)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_associate_msg(xdrs, objp) - register XDR *xdrs; - __db_associate_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->sdbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_associate_reply(xdrs, objp) - register XDR *xdrs; - __db_associate_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_bt_maxkey_msg(xdrs, objp) - register XDR *xdrs; - __db_bt_maxkey_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->maxkey)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_bt_maxkey_reply(xdrs, objp) - register XDR *xdrs; - __db_bt_maxkey_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_bt_minkey_msg(xdrs, objp) - register XDR *xdrs; - __db_bt_minkey_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->minkey)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_bt_minkey_reply(xdrs, objp) - register XDR *xdrs; - __db_bt_minkey_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_close_msg(xdrs, objp) - register XDR *xdrs; - __db_close_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_close_reply(xdrs, objp) - register XDR *xdrs; - __db_close_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_create_msg(xdrs, objp) - register XDR *xdrs; - __db_create_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbenvcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_create_reply(xdrs, objp) - register XDR *xdrs; - __db_create_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dbcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_del_msg(xdrs, objp) - register XDR *xdrs; - __db_del_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_del_reply(xdrs, objp) - register XDR *xdrs; - __db_del_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_encrypt_msg(xdrs, objp) - register XDR *xdrs; - __db_encrypt_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->passwd, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_encrypt_reply(xdrs, objp) - register XDR *xdrs; - __db_encrypt_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_extentsize_msg(xdrs, objp) - register XDR *xdrs; - __db_extentsize_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->extentsize)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_extentsize_reply(xdrs, objp) - register XDR *xdrs; - __db_extentsize_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_flags_msg(xdrs, objp) - register XDR *xdrs; - __db_flags_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_flags_reply(xdrs, objp) - register XDR *xdrs; - __db_flags_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_get_msg(xdrs, objp) - register XDR *xdrs; - __db_get_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_get_reply(xdrs, objp) - register XDR *xdrs; - __db_get_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_h_ffactor_msg(xdrs, objp) - register XDR *xdrs; - __db_h_ffactor_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->ffactor)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_h_ffactor_reply(xdrs, objp) - register XDR *xdrs; - __db_h_ffactor_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_h_nelem_msg(xdrs, objp) - register XDR *xdrs; - __db_h_nelem_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->nelem)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_h_nelem_reply(xdrs, objp) - register XDR *xdrs; - __db_h_nelem_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_key_range_msg(xdrs, objp) - register XDR *xdrs; - __db_key_range_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_key_range_reply(xdrs, objp) - register XDR *xdrs; - __db_key_range_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_double(xdrs, &objp->less)) - return (FALSE); - if (!xdr_double(xdrs, &objp->equal)) - return (FALSE); - if (!xdr_double(xdrs, &objp->greater)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_lorder_msg(xdrs, objp) - register XDR *xdrs; - __db_lorder_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->lorder)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_lorder_reply(xdrs, objp) - register XDR *xdrs; - __db_lorder_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_open_msg(xdrs, objp) - register XDR *xdrs; - __db_open_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->name, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->subdb, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->type)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->mode)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_open_reply(xdrs, objp) - register XDR *xdrs; - __db_open_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dbcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->type)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dbflags)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->lorder)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_pagesize_msg(xdrs, objp) - register XDR *xdrs; - __db_pagesize_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pagesize)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_pagesize_reply(xdrs, objp) - register XDR *xdrs; - __db_pagesize_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_pget_msg(xdrs, objp) - register XDR *xdrs; - __db_pget_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->skeydata.skeydata_val, (u_int *) &objp->skeydata.skeydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->pkeydata.pkeydata_val, (u_int *) &objp->pkeydata.pkeydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_pget_reply(xdrs, objp) - register XDR *xdrs; - __db_pget_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->skeydata.skeydata_val, (u_int *) &objp->skeydata.skeydata_len, ~0)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->pkeydata.pkeydata_val, (u_int *) &objp->pkeydata.pkeydata_len, ~0)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_put_msg(xdrs, objp) - register XDR *xdrs; - __db_put_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_put_reply(xdrs, objp) - register XDR *xdrs; - __db_put_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_re_delim_msg(xdrs, objp) - register XDR *xdrs; - __db_re_delim_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->delim)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_re_delim_reply(xdrs, objp) - register XDR *xdrs; - __db_re_delim_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_re_len_msg(xdrs, objp) - register XDR *xdrs; - __db_re_len_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->len)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_re_len_reply(xdrs, objp) - register XDR *xdrs; - __db_re_len_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_re_pad_msg(xdrs, objp) - register XDR *xdrs; - __db_re_pad_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pad)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_re_pad_reply(xdrs, objp) - register XDR *xdrs; - __db_re_pad_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_remove_msg(xdrs, objp) - register XDR *xdrs; - __db_remove_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->name, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->subdb, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_remove_reply(xdrs, objp) - register XDR *xdrs; - __db_remove_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_rename_msg(xdrs, objp) - register XDR *xdrs; - __db_rename_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_string(xdrs, &objp->name, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->subdb, ~0)) - return (FALSE); - if (!xdr_string(xdrs, &objp->newname, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_rename_reply(xdrs, objp) - register XDR *xdrs; - __db_rename_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_stat_msg(xdrs, objp) - register XDR *xdrs; - __db_stat_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_stat_reply(xdrs, objp) - register XDR *xdrs; - __db_stat_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_array(xdrs, (char **)&objp->stats.stats_val, (u_int *) &objp->stats.stats_len, ~0, - sizeof (u_int), (xdrproc_t) xdr_u_int)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_sync_msg(xdrs, objp) - register XDR *xdrs; - __db_sync_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_sync_reply(xdrs, objp) - register XDR *xdrs; - __db_sync_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_truncate_msg(xdrs, objp) - register XDR *xdrs; - __db_truncate_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_truncate_reply(xdrs, objp) - register XDR *xdrs; - __db_truncate_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->count)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_cursor_msg(xdrs, objp) - register XDR *xdrs; - __db_cursor_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->txnpcl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_cursor_reply(xdrs, objp) - register XDR *xdrs; - __db_cursor_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dbcidcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_join_msg(xdrs, objp) - register XDR *xdrs; - __db_join_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbpcl_id)) - return (FALSE); - if (!xdr_array(xdrs, (char **)&objp->curs.curs_val, (u_int *) &objp->curs.curs_len, ~0, - sizeof (u_int), (xdrproc_t) xdr_u_int)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___db_join_reply(xdrs, objp) - register XDR *xdrs; - __db_join_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dbcidcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_close_msg(xdrs, objp) - register XDR *xdrs; - __dbc_close_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_close_reply(xdrs, objp) - register XDR *xdrs; - __dbc_close_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_count_msg(xdrs, objp) - register XDR *xdrs; - __dbc_count_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_count_reply(xdrs, objp) - register XDR *xdrs; - __dbc_count_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dupcount)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_del_msg(xdrs, objp) - register XDR *xdrs; - __dbc_del_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_del_reply(xdrs, objp) - register XDR *xdrs; - __dbc_del_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_dup_msg(xdrs, objp) - register XDR *xdrs; - __dbc_dup_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_dup_reply(xdrs, objp) - register XDR *xdrs; - __dbc_dup_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dbcidcl_id)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_get_msg(xdrs, objp) - register XDR *xdrs; - __dbc_get_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_get_reply(xdrs, objp) - register XDR *xdrs; - __dbc_get_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_pget_msg(xdrs, objp) - register XDR *xdrs; - __dbc_pget_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->skeyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->skeydata.skeydata_val, (u_int *) &objp->skeydata.skeydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->pkeyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->pkeydata.pkeydata_val, (u_int *) &objp->pkeydata.pkeydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_pget_reply(xdrs, objp) - register XDR *xdrs; - __dbc_pget_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->skeydata.skeydata_val, (u_int *) &objp->skeydata.skeydata_len, ~0)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->pkeydata.pkeydata_val, (u_int *) &objp->pkeydata.pkeydata_len, ~0)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_put_msg(xdrs, objp) - register XDR *xdrs; - __dbc_put_msg *objp; -{ - - if (!xdr_u_int(xdrs, &objp->dbccl_id)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keydoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->keyflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadlen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->datadoff)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataulen)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->dataflags)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->datadata.datadata_val, (u_int *) &objp->datadata.datadata_len, ~0)) - return (FALSE); - if (!xdr_u_int(xdrs, &objp->flags)) - return (FALSE); - return (TRUE); -} - -bool_t -xdr___dbc_put_reply(xdrs, objp) - register XDR *xdrs; - __dbc_put_reply *objp; -{ - - if (!xdr_int(xdrs, &objp->status)) - return (FALSE); - if (!xdr_bytes(xdrs, (char **)&objp->keydata.keydata_val, (u_int *) &objp->keydata.keydata_len, ~0)) - return (FALSE); - return (TRUE); -} -#endif /* HAVE_RPC */ diff --git a/bdb/rpc_server/c/gen_db_server.c b/bdb/rpc_server/c/gen_db_server.c deleted file mode 100644 index 0181fb06dce..00000000000 --- a/bdb/rpc_server/c/gen_db_server.c +++ /dev/null @@ -1,1169 +0,0 @@ -/* Do not edit: automatically built by gen_rpc.awk. */ -#include "db_config.h" - -#ifndef NO_SYSTEM_INCLUDES -#include <sys/types.h> - -#include <rpc/rpc.h> -#include <rpc/xdr.h> - -#include <string.h> -#endif - -#include "db_int.h" -#include "dbinc_auto/db_server.h" -#include "dbinc/db_server_int.h" -#include "dbinc_auto/rpc_server_ext.h" - -/* - * PUBLIC: __env_cachesize_reply *__db_env_cachesize_4001 - * PUBLIC: __P((__env_cachesize_msg *, struct svc_req *)); - */ -__env_cachesize_reply * -__db_env_cachesize_4001(msg, req) - __env_cachesize_msg *msg; - struct svc_req *req; -{ - static __env_cachesize_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_cachesize_proc(msg->dbenvcl_id, - msg->gbytes, - msg->bytes, - msg->ncache, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_close_reply *__db_env_close_4001 __P((__env_close_msg *, - * PUBLIC: struct svc_req *)); - */ -__env_close_reply * -__db_env_close_4001(msg, req) - __env_close_msg *msg; - struct svc_req *req; -{ - static __env_close_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_close_proc(msg->dbenvcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_create_reply *__db_env_create_4001 __P((__env_create_msg *, - * PUBLIC: struct svc_req *)); - */ -__env_create_reply * -__db_env_create_4001(msg, req) - __env_create_msg *msg; - struct svc_req *req; -{ - static __env_create_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_create_proc(msg->timeout, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_dbremove_reply *__db_env_dbremove_4001 - * PUBLIC: __P((__env_dbremove_msg *, struct svc_req *)); - */ -__env_dbremove_reply * -__db_env_dbremove_4001(msg, req) - __env_dbremove_msg *msg; - struct svc_req *req; -{ - static __env_dbremove_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_dbremove_proc(msg->dbenvcl_id, - msg->txnpcl_id, - (*msg->name == '\0') ? NULL : msg->name, - (*msg->subdb == '\0') ? NULL : msg->subdb, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_dbrename_reply *__db_env_dbrename_4001 - * PUBLIC: __P((__env_dbrename_msg *, struct svc_req *)); - */ -__env_dbrename_reply * -__db_env_dbrename_4001(msg, req) - __env_dbrename_msg *msg; - struct svc_req *req; -{ - static __env_dbrename_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_dbrename_proc(msg->dbenvcl_id, - msg->txnpcl_id, - (*msg->name == '\0') ? NULL : msg->name, - (*msg->subdb == '\0') ? NULL : msg->subdb, - (*msg->newname == '\0') ? NULL : msg->newname, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_encrypt_reply *__db_env_encrypt_4001 - * PUBLIC: __P((__env_encrypt_msg *, struct svc_req *)); - */ -__env_encrypt_reply * -__db_env_encrypt_4001(msg, req) - __env_encrypt_msg *msg; - struct svc_req *req; -{ - static __env_encrypt_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_encrypt_proc(msg->dbenvcl_id, - (*msg->passwd == '\0') ? NULL : msg->passwd, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_flags_reply *__db_env_flags_4001 __P((__env_flags_msg *, - * PUBLIC: struct svc_req *)); - */ -__env_flags_reply * -__db_env_flags_4001(msg, req) - __env_flags_msg *msg; - struct svc_req *req; -{ - static __env_flags_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_flags_proc(msg->dbenvcl_id, - msg->flags, - msg->onoff, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_open_reply *__db_env_open_4001 __P((__env_open_msg *, - * PUBLIC: struct svc_req *)); - */ -__env_open_reply * -__db_env_open_4001(msg, req) - __env_open_msg *msg; - struct svc_req *req; -{ - static __env_open_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_open_proc(msg->dbenvcl_id, - (*msg->home == '\0') ? NULL : msg->home, - msg->flags, - msg->mode, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __env_remove_reply *__db_env_remove_4001 __P((__env_remove_msg *, - * PUBLIC: struct svc_req *)); - */ -__env_remove_reply * -__db_env_remove_4001(msg, req) - __env_remove_msg *msg; - struct svc_req *req; -{ - static __env_remove_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __env_remove_proc(msg->dbenvcl_id, - (*msg->home == '\0') ? NULL : msg->home, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __txn_abort_reply *__db_txn_abort_4001 __P((__txn_abort_msg *, - * PUBLIC: struct svc_req *)); - */ -__txn_abort_reply * -__db_txn_abort_4001(msg, req) - __txn_abort_msg *msg; - struct svc_req *req; -{ - static __txn_abort_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __txn_abort_proc(msg->txnpcl_id, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __txn_begin_reply *__db_txn_begin_4001 __P((__txn_begin_msg *, - * PUBLIC: struct svc_req *)); - */ -__txn_begin_reply * -__db_txn_begin_4001(msg, req) - __txn_begin_msg *msg; - struct svc_req *req; -{ - static __txn_begin_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __txn_begin_proc(msg->dbenvcl_id, - msg->parentcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __txn_commit_reply *__db_txn_commit_4001 __P((__txn_commit_msg *, - * PUBLIC: struct svc_req *)); - */ -__txn_commit_reply * -__db_txn_commit_4001(msg, req) - __txn_commit_msg *msg; - struct svc_req *req; -{ - static __txn_commit_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __txn_commit_proc(msg->txnpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __txn_discard_reply *__db_txn_discard_4001 - * PUBLIC: __P((__txn_discard_msg *, struct svc_req *)); - */ -__txn_discard_reply * -__db_txn_discard_4001(msg, req) - __txn_discard_msg *msg; - struct svc_req *req; -{ - static __txn_discard_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __txn_discard_proc(msg->txnpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __txn_prepare_reply *__db_txn_prepare_4001 - * PUBLIC: __P((__txn_prepare_msg *, struct svc_req *)); - */ -__txn_prepare_reply * -__db_txn_prepare_4001(msg, req) - __txn_prepare_msg *msg; - struct svc_req *req; -{ - static __txn_prepare_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __txn_prepare_proc(msg->txnpcl_id, - msg->gid, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __txn_recover_reply *__db_txn_recover_4001 - * PUBLIC: __P((__txn_recover_msg *, struct svc_req *)); - */ -__txn_recover_reply * -__db_txn_recover_4001(msg, req) - __txn_recover_msg *msg; - struct svc_req *req; -{ - static __txn_recover_reply reply; /* must be static */ - static int __txn_recover_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__txn_recover_free) - xdr_free((xdrproc_t)xdr___txn_recover_reply, (void *)&reply); - __txn_recover_free = 0; - - /* Reinitialize allocated fields */ - reply.txn.txn_val = NULL; - reply.gid.gid_val = NULL; - - __txn_recover_proc(msg->dbenvcl_id, - msg->count, - msg->flags, - &reply, - &__txn_recover_free); - return (&reply); -} - -/* - * PUBLIC: __db_associate_reply *__db_db_associate_4001 - * PUBLIC: __P((__db_associate_msg *, struct svc_req *)); - */ -__db_associate_reply * -__db_db_associate_4001(msg, req) - __db_associate_msg *msg; - struct svc_req *req; -{ - static __db_associate_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_associate_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->sdbpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_bt_maxkey_reply *__db_db_bt_maxkey_4001 - * PUBLIC: __P((__db_bt_maxkey_msg *, struct svc_req *)); - */ -__db_bt_maxkey_reply * -__db_db_bt_maxkey_4001(msg, req) - __db_bt_maxkey_msg *msg; - struct svc_req *req; -{ - static __db_bt_maxkey_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_bt_maxkey_proc(msg->dbpcl_id, - msg->maxkey, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_bt_minkey_reply *__db_db_bt_minkey_4001 - * PUBLIC: __P((__db_bt_minkey_msg *, struct svc_req *)); - */ -__db_bt_minkey_reply * -__db_db_bt_minkey_4001(msg, req) - __db_bt_minkey_msg *msg; - struct svc_req *req; -{ - static __db_bt_minkey_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_bt_minkey_proc(msg->dbpcl_id, - msg->minkey, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_close_reply *__db_db_close_4001 __P((__db_close_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_close_reply * -__db_db_close_4001(msg, req) - __db_close_msg *msg; - struct svc_req *req; -{ - static __db_close_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_close_proc(msg->dbpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_create_reply *__db_db_create_4001 __P((__db_create_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_create_reply * -__db_db_create_4001(msg, req) - __db_create_msg *msg; - struct svc_req *req; -{ - static __db_create_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_create_proc(msg->dbenvcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_del_reply *__db_db_del_4001 __P((__db_del_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_del_reply * -__db_db_del_4001(msg, req) - __db_del_msg *msg; - struct svc_req *req; -{ - static __db_del_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_del_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->keydlen, - msg->keydoff, - msg->keyulen, - msg->keyflags, - msg->keydata.keydata_val, - msg->keydata.keydata_len, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_encrypt_reply *__db_db_encrypt_4001 __P((__db_encrypt_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_encrypt_reply * -__db_db_encrypt_4001(msg, req) - __db_encrypt_msg *msg; - struct svc_req *req; -{ - static __db_encrypt_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_encrypt_proc(msg->dbpcl_id, - (*msg->passwd == '\0') ? NULL : msg->passwd, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_extentsize_reply *__db_db_extentsize_4001 - * PUBLIC: __P((__db_extentsize_msg *, struct svc_req *)); - */ -__db_extentsize_reply * -__db_db_extentsize_4001(msg, req) - __db_extentsize_msg *msg; - struct svc_req *req; -{ - static __db_extentsize_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_extentsize_proc(msg->dbpcl_id, - msg->extentsize, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_flags_reply *__db_db_flags_4001 __P((__db_flags_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_flags_reply * -__db_db_flags_4001(msg, req) - __db_flags_msg *msg; - struct svc_req *req; -{ - static __db_flags_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_flags_proc(msg->dbpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_get_reply *__db_db_get_4001 __P((__db_get_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_get_reply * -__db_db_get_4001(msg, req) - __db_get_msg *msg; - struct svc_req *req; -{ - static __db_get_reply reply; /* must be static */ - static int __db_get_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__db_get_free) - xdr_free((xdrproc_t)xdr___db_get_reply, (void *)&reply); - __db_get_free = 0; - - /* Reinitialize allocated fields */ - reply.keydata.keydata_val = NULL; - reply.datadata.datadata_val = NULL; - - __db_get_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->keydlen, - msg->keydoff, - msg->keyulen, - msg->keyflags, - msg->keydata.keydata_val, - msg->keydata.keydata_len, - msg->datadlen, - msg->datadoff, - msg->dataulen, - msg->dataflags, - msg->datadata.datadata_val, - msg->datadata.datadata_len, - msg->flags, - &reply, - &__db_get_free); - return (&reply); -} - -/* - * PUBLIC: __db_h_ffactor_reply *__db_db_h_ffactor_4001 - * PUBLIC: __P((__db_h_ffactor_msg *, struct svc_req *)); - */ -__db_h_ffactor_reply * -__db_db_h_ffactor_4001(msg, req) - __db_h_ffactor_msg *msg; - struct svc_req *req; -{ - static __db_h_ffactor_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_h_ffactor_proc(msg->dbpcl_id, - msg->ffactor, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_h_nelem_reply *__db_db_h_nelem_4001 __P((__db_h_nelem_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_h_nelem_reply * -__db_db_h_nelem_4001(msg, req) - __db_h_nelem_msg *msg; - struct svc_req *req; -{ - static __db_h_nelem_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_h_nelem_proc(msg->dbpcl_id, - msg->nelem, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_key_range_reply *__db_db_key_range_4001 - * PUBLIC: __P((__db_key_range_msg *, struct svc_req *)); - */ -__db_key_range_reply * -__db_db_key_range_4001(msg, req) - __db_key_range_msg *msg; - struct svc_req *req; -{ - static __db_key_range_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_key_range_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->keydlen, - msg->keydoff, - msg->keyulen, - msg->keyflags, - msg->keydata.keydata_val, - msg->keydata.keydata_len, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_lorder_reply *__db_db_lorder_4001 __P((__db_lorder_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_lorder_reply * -__db_db_lorder_4001(msg, req) - __db_lorder_msg *msg; - struct svc_req *req; -{ - static __db_lorder_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_lorder_proc(msg->dbpcl_id, - msg->lorder, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_open_reply *__db_db_open_4001 __P((__db_open_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_open_reply * -__db_db_open_4001(msg, req) - __db_open_msg *msg; - struct svc_req *req; -{ - static __db_open_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_open_proc(msg->dbpcl_id, - msg->txnpcl_id, - (*msg->name == '\0') ? NULL : msg->name, - (*msg->subdb == '\0') ? NULL : msg->subdb, - msg->type, - msg->flags, - msg->mode, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_pagesize_reply *__db_db_pagesize_4001 - * PUBLIC: __P((__db_pagesize_msg *, struct svc_req *)); - */ -__db_pagesize_reply * -__db_db_pagesize_4001(msg, req) - __db_pagesize_msg *msg; - struct svc_req *req; -{ - static __db_pagesize_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_pagesize_proc(msg->dbpcl_id, - msg->pagesize, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_pget_reply *__db_db_pget_4001 __P((__db_pget_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_pget_reply * -__db_db_pget_4001(msg, req) - __db_pget_msg *msg; - struct svc_req *req; -{ - static __db_pget_reply reply; /* must be static */ - static int __db_pget_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__db_pget_free) - xdr_free((xdrproc_t)xdr___db_pget_reply, (void *)&reply); - __db_pget_free = 0; - - /* Reinitialize allocated fields */ - reply.skeydata.skeydata_val = NULL; - reply.pkeydata.pkeydata_val = NULL; - reply.datadata.datadata_val = NULL; - - __db_pget_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->skeydlen, - msg->skeydoff, - msg->skeyulen, - msg->skeyflags, - msg->skeydata.skeydata_val, - msg->skeydata.skeydata_len, - msg->pkeydlen, - msg->pkeydoff, - msg->pkeyulen, - msg->pkeyflags, - msg->pkeydata.pkeydata_val, - msg->pkeydata.pkeydata_len, - msg->datadlen, - msg->datadoff, - msg->dataulen, - msg->dataflags, - msg->datadata.datadata_val, - msg->datadata.datadata_len, - msg->flags, - &reply, - &__db_pget_free); - return (&reply); -} - -/* - * PUBLIC: __db_put_reply *__db_db_put_4001 __P((__db_put_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_put_reply * -__db_db_put_4001(msg, req) - __db_put_msg *msg; - struct svc_req *req; -{ - static __db_put_reply reply; /* must be static */ - static int __db_put_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__db_put_free) - xdr_free((xdrproc_t)xdr___db_put_reply, (void *)&reply); - __db_put_free = 0; - - /* Reinitialize allocated fields */ - reply.keydata.keydata_val = NULL; - - __db_put_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->keydlen, - msg->keydoff, - msg->keyulen, - msg->keyflags, - msg->keydata.keydata_val, - msg->keydata.keydata_len, - msg->datadlen, - msg->datadoff, - msg->dataulen, - msg->dataflags, - msg->datadata.datadata_val, - msg->datadata.datadata_len, - msg->flags, - &reply, - &__db_put_free); - return (&reply); -} - -/* - * PUBLIC: __db_re_delim_reply *__db_db_re_delim_4001 - * PUBLIC: __P((__db_re_delim_msg *, struct svc_req *)); - */ -__db_re_delim_reply * -__db_db_re_delim_4001(msg, req) - __db_re_delim_msg *msg; - struct svc_req *req; -{ - static __db_re_delim_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_re_delim_proc(msg->dbpcl_id, - msg->delim, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_re_len_reply *__db_db_re_len_4001 __P((__db_re_len_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_re_len_reply * -__db_db_re_len_4001(msg, req) - __db_re_len_msg *msg; - struct svc_req *req; -{ - static __db_re_len_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_re_len_proc(msg->dbpcl_id, - msg->len, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_re_pad_reply *__db_db_re_pad_4001 __P((__db_re_pad_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_re_pad_reply * -__db_db_re_pad_4001(msg, req) - __db_re_pad_msg *msg; - struct svc_req *req; -{ - static __db_re_pad_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_re_pad_proc(msg->dbpcl_id, - msg->pad, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_remove_reply *__db_db_remove_4001 __P((__db_remove_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_remove_reply * -__db_db_remove_4001(msg, req) - __db_remove_msg *msg; - struct svc_req *req; -{ - static __db_remove_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_remove_proc(msg->dbpcl_id, - (*msg->name == '\0') ? NULL : msg->name, - (*msg->subdb == '\0') ? NULL : msg->subdb, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_rename_reply *__db_db_rename_4001 __P((__db_rename_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_rename_reply * -__db_db_rename_4001(msg, req) - __db_rename_msg *msg; - struct svc_req *req; -{ - static __db_rename_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_rename_proc(msg->dbpcl_id, - (*msg->name == '\0') ? NULL : msg->name, - (*msg->subdb == '\0') ? NULL : msg->subdb, - (*msg->newname == '\0') ? NULL : msg->newname, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_stat_reply *__db_db_stat_4001 __P((__db_stat_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_stat_reply * -__db_db_stat_4001(msg, req) - __db_stat_msg *msg; - struct svc_req *req; -{ - static __db_stat_reply reply; /* must be static */ - static int __db_stat_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__db_stat_free) - xdr_free((xdrproc_t)xdr___db_stat_reply, (void *)&reply); - __db_stat_free = 0; - - /* Reinitialize allocated fields */ - reply.stats.stats_val = NULL; - - __db_stat_proc(msg->dbpcl_id, - msg->flags, - &reply, - &__db_stat_free); - return (&reply); -} - -/* - * PUBLIC: __db_sync_reply *__db_db_sync_4001 __P((__db_sync_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_sync_reply * -__db_db_sync_4001(msg, req) - __db_sync_msg *msg; - struct svc_req *req; -{ - static __db_sync_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_sync_proc(msg->dbpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_truncate_reply *__db_db_truncate_4001 - * PUBLIC: __P((__db_truncate_msg *, struct svc_req *)); - */ -__db_truncate_reply * -__db_db_truncate_4001(msg, req) - __db_truncate_msg *msg; - struct svc_req *req; -{ - static __db_truncate_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_truncate_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_cursor_reply *__db_db_cursor_4001 __P((__db_cursor_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_cursor_reply * -__db_db_cursor_4001(msg, req) - __db_cursor_msg *msg; - struct svc_req *req; -{ - static __db_cursor_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_cursor_proc(msg->dbpcl_id, - msg->txnpcl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __db_join_reply *__db_db_join_4001 __P((__db_join_msg *, - * PUBLIC: struct svc_req *)); - */ -__db_join_reply * -__db_db_join_4001(msg, req) - __db_join_msg *msg; - struct svc_req *req; -{ - static __db_join_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __db_join_proc(msg->dbpcl_id, - msg->curs.curs_val, - msg->curs.curs_len, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __dbc_close_reply *__db_dbc_close_4001 __P((__dbc_close_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_close_reply * -__db_dbc_close_4001(msg, req) - __dbc_close_msg *msg; - struct svc_req *req; -{ - static __dbc_close_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __dbc_close_proc(msg->dbccl_id, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __dbc_count_reply *__db_dbc_count_4001 __P((__dbc_count_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_count_reply * -__db_dbc_count_4001(msg, req) - __dbc_count_msg *msg; - struct svc_req *req; -{ - static __dbc_count_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __dbc_count_proc(msg->dbccl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __dbc_del_reply *__db_dbc_del_4001 __P((__dbc_del_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_del_reply * -__db_dbc_del_4001(msg, req) - __dbc_del_msg *msg; - struct svc_req *req; -{ - static __dbc_del_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __dbc_del_proc(msg->dbccl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __dbc_dup_reply *__db_dbc_dup_4001 __P((__dbc_dup_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_dup_reply * -__db_dbc_dup_4001(msg, req) - __dbc_dup_msg *msg; - struct svc_req *req; -{ - static __dbc_dup_reply reply; /* must be static */ - COMPQUIET(req, NULL); - - __dbc_dup_proc(msg->dbccl_id, - msg->flags, - &reply); - - return (&reply); -} - -/* - * PUBLIC: __dbc_get_reply *__db_dbc_get_4001 __P((__dbc_get_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_get_reply * -__db_dbc_get_4001(msg, req) - __dbc_get_msg *msg; - struct svc_req *req; -{ - static __dbc_get_reply reply; /* must be static */ - static int __dbc_get_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__dbc_get_free) - xdr_free((xdrproc_t)xdr___dbc_get_reply, (void *)&reply); - __dbc_get_free = 0; - - /* Reinitialize allocated fields */ - reply.keydata.keydata_val = NULL; - reply.datadata.datadata_val = NULL; - - __dbc_get_proc(msg->dbccl_id, - msg->keydlen, - msg->keydoff, - msg->keyulen, - msg->keyflags, - msg->keydata.keydata_val, - msg->keydata.keydata_len, - msg->datadlen, - msg->datadoff, - msg->dataulen, - msg->dataflags, - msg->datadata.datadata_val, - msg->datadata.datadata_len, - msg->flags, - &reply, - &__dbc_get_free); - return (&reply); -} - -/* - * PUBLIC: __dbc_pget_reply *__db_dbc_pget_4001 __P((__dbc_pget_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_pget_reply * -__db_dbc_pget_4001(msg, req) - __dbc_pget_msg *msg; - struct svc_req *req; -{ - static __dbc_pget_reply reply; /* must be static */ - static int __dbc_pget_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__dbc_pget_free) - xdr_free((xdrproc_t)xdr___dbc_pget_reply, (void *)&reply); - __dbc_pget_free = 0; - - /* Reinitialize allocated fields */ - reply.skeydata.skeydata_val = NULL; - reply.pkeydata.pkeydata_val = NULL; - reply.datadata.datadata_val = NULL; - - __dbc_pget_proc(msg->dbccl_id, - msg->skeydlen, - msg->skeydoff, - msg->skeyulen, - msg->skeyflags, - msg->skeydata.skeydata_val, - msg->skeydata.skeydata_len, - msg->pkeydlen, - msg->pkeydoff, - msg->pkeyulen, - msg->pkeyflags, - msg->pkeydata.pkeydata_val, - msg->pkeydata.pkeydata_len, - msg->datadlen, - msg->datadoff, - msg->dataulen, - msg->dataflags, - msg->datadata.datadata_val, - msg->datadata.datadata_len, - msg->flags, - &reply, - &__dbc_pget_free); - return (&reply); -} - -/* - * PUBLIC: __dbc_put_reply *__db_dbc_put_4001 __P((__dbc_put_msg *, - * PUBLIC: struct svc_req *)); - */ -__dbc_put_reply * -__db_dbc_put_4001(msg, req) - __dbc_put_msg *msg; - struct svc_req *req; -{ - static __dbc_put_reply reply; /* must be static */ - static int __dbc_put_free = 0; /* must be static */ - - COMPQUIET(req, NULL); - if (__dbc_put_free) - xdr_free((xdrproc_t)xdr___dbc_put_reply, (void *)&reply); - __dbc_put_free = 0; - - /* Reinitialize allocated fields */ - reply.keydata.keydata_val = NULL; - - __dbc_put_proc(msg->dbccl_id, - msg->keydlen, - msg->keydoff, - msg->keyulen, - msg->keyflags, - msg->keydata.keydata_val, - msg->keydata.keydata_len, - msg->datadlen, - msg->datadoff, - msg->dataulen, - msg->dataflags, - msg->datadata.datadata_val, - msg->datadata.datadata_len, - msg->flags, - &reply, - &__dbc_put_free); - return (&reply); -} - |