Professional Documents
Culture Documents
c 2002 Geoffrey Robertson, Andrew Eager. Permission is granted to make and distribute verbatim copies or modied versions of this document provided that this copyright notice and this permission notice are preserved on all copies under the terms of the GNU General Public License as published by the Free Software Foundationeither version 2 of the License or (at your option) any later version.
a Copyright
tdb-1.0.6.tar.gz
tdb.c
tdb.h
README
INSTALL
COPYING
install-sh ltconfig ltmain.sh Makefile.am Makefile.in missing mkinstalldirs NEWS README spinlock.c spinlock.h
stamp-h.in tdb.3 tdb.c tdb_chainlock.3 tdb_close.3 tdb_delete.3 tdbdump.c tdb_error.3 tdb_exists.3 tdb_fetch.3 tdb_firstkey.3
tdb.h tdbiterate.c tdb_open.3 tdb.spec tdbspeed.c tdb_store.3 tdbtest.c tdbtool.c tdbtorture.c tdb_traverse.3 TODO
# Guess values for system-dependent variables # Create Makefiles. # Generated automatically using autoconf version 2.13
10
11
12
13
14
Using tdb
$ tdbtool tdb> ?
tdbtool: create open erase dump insert store show delete list free 1 | first n | next q | quit n tdb>
: : : : : : : : : : : : : :
create a database open an existing database erase the database dump the database as strings insert a record store a record (replace) show a record by key delete a record by key print the database hash table and freelist print the database freelist print the first record print the next record terminate repeat next command
15
Using tdb
$ tdbtool tdb> create test.tdb tdb> insert 1 thing tdb> insert 2 foo tdb> insert 3 bar tdb> insert 55 whizz tdb> show 3 key 2 bytes 3 data 4 bytes [000] 62 61 72 00
bar
16
Summary
$ tar zxvf my-progy.tar.gz
17
Summary
$ tar zxvf my-progy.tar.gz $ cd my-progy
17-a
Summary
$ tar zxvf my-progy.tar.gz $ cd my-progy
17-b
Summary
$ tar zxvf my-progy.tar.gz $ cd my-progy
17-c
Summary
$ tar zxvf my-progy.tar.gz $ cd my-progy
17-d
Summary
$ tar zxvf my-progy.tar.gz $ cd my-progy
$ su -c make install
17-e
Summary
$ tar zxvf my-progy.tar.gz $ cd my-progy
17-f
The End Make and install programs from source [5] . . . . . Source Code Distribution . . . . . . . . . . . . . . 2 6 7 16 18
18