• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcl-102/tcl_ext/ffidl/ffidl/demos/other/

Lines Matching defs:gdbm

6 # gdbm open <file> [r|rw|rwc|rwn]
8 # Opens a gdbm database <file> with an optional mode. If the mode is not
15 # gdbm close <name>
17 # Close a gdbm database with the name <name>.
19 # gdbm insert <name> <key> <content>
21 # <name> is the name of a gdbm database previously opened with gdbm
26 # gdbm store <name> <key> <content>
28 # <name> is the name of a gdbm database previously opened with gdbm
32 # gdbm fetch <name> <key>
34 # <name> is the name of a gdbm database previously opened with gdbm
38 # gdbm delete <name> <key>
40 # <name> is the name of a gdbm database previously opened with gdbm
44 # gdbm list <name>
46 # <name> is the name of a gdbm database previously opened with gdbm
49 # gdbm reorganize <name>
51 # <name> is the name of a gdbm database previously opened with gdbm
55 # gdbm exists <name> <key>
60 # gdbm firstkey <name>
61 # gdbm nextkey <name> <lastkey>
64 # sequential (but unsorted!) order. gdbm firstkey <name> returns a
74 namespace eval ::gdbm:: {
75 set lib gdbm
102 set ::gdbm::lib [::ffidl::find-lib gdbm]
113 set ::gdbm::symbols(gdbm_errno) [::ffidl::symbol $::gdbm::lib gdbm_errno]
118 ::ffidl::callout ::gdbm::gdbm_open {pointer-utf8 int int int pointer} GDBM_FILE [::ffidl::symbol $::gdbm::lib gdbm_open]
119 ::ffidl::callout ::gdbm::gdbm_close {GDBM_FILE} void [::ffidl::symbol $::gdbm::lib gdbm_close]
120 ::ffidl::callout ::gdbm::gdbm_store {GDBM_FILE gdbm_datum gdbm_datum int} int [::ffidl::symbol $::gdbm::lib gdbm_store]
121 ::ffidl::callout ::gdbm::gdbm_fetch {GDBM_FILE gdbm_datum} gdbm_datum [::ffidl::symbol $::gdbm::lib gdbm_fetch]
122 ::ffidl::callout ::gdbm::gdbm_delete {GDBM_FILE gdbm_datum} int [::ffidl::symbol $::gdbm::lib gdbm_delete]
123 ::ffidl::callout ::gdbm::gdbm_firstkey {GDBM_FILE} gdbm_datum [::ffidl::symbol $::gdbm::lib gdbm_firstkey]
124 ::ffidl::callout ::gdbm::gdbm_nextkey {GDBM_FILE gdbm_datum} gdbm_datum [::ffidl::symbol $::gdbm::lib gdbm_nextkey]
125 ::ffidl::callout ::gdbm::gdbm_reorganize {GDBM_FILE} int [::ffidl::symbol $::gdbm::lib gdbm_reorganize]
126 ::ffidl::callout ::gdbm::gdbm_sync {GDBM_FILE} void [::ffidl::symbol $::gdbm::lib gdbm_sync]
127 ::ffidl::callout ::gdbm::gdbm_exists {GDBM_FILE gdbm_datum} int [::ffidl::symbol $::gdbm::lib gdbm_exists]
128 ::ffidl::callout ::gdbm::gdbm_setopt {GDBM_FILE int pointer-byte int} int [::ffidl::symbol $::gdbm::lib gdbm_setopt]
129 ::ffidl::callout ::gdbm::gdbm_strerror {int} pointer-utf8 [::ffidl::symbol $::gdbm::lib gdbm_strerror]
160 proc ::gdbm::cmd-open {file {mode r}} {
168 set name gdbm[incr nhandle]
173 proc ::gdbm::cmd-close {name} {
181 proc ::gdbm::cmd-insert {name key content} {
190 proc ::gdbm::cmd-store {name key content} {
200 proc ::gdbm::cmd-fetch {name key} {
204 proc ::gdbm::cmd-delete {name key} {
208 proc ::gdbm::cmd-exists {name key} {
212 proc ::gdbm::cmd-list {name} {
226 proc ::gdbm::cmd-reorganize {name} {
230 proc ::gdbm::cmd-firstkey {name} {
234 proc ::gdbm::cmd-nextkey {name lastkey} {
238 proc ::gdbm::cmd-error {which} {
243 default { error "usage: gdbm error number|text" }
246 proc ::gdbm::cmd-writemode {name writemode} {
252 default { error "usage: gdbm writemode name replace|insert" }
256 proc gdbm args {
258 error "usage: gdbm open|close|insert|store|fetch|delete|exists|list|reorganize|firstkey|nextkey|error|writemode"
260 eval ::gdbm::cmd-[lindex $args 0] [lrange $args 1 end]