diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1996-07-27 21:54:12 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1996-07-27 21:54:12 +0000 |
commit | 9cd707fee704bf61337b366efd84ab7713074983 (patch) | |
tree | aefb8214c5a09ae787e355b25db15b5867b01d61 /news/slurp/files/dbz.h | |
parent | Updated distribution patch. (diff) |
A passive NNTP client that retrieves Usenet news articles from a remote server.
Submitted by: James Raynard <fports@jraynard.demon.co.uk>
Notes
Notes:
svn path=/head/; revision=3439
Diffstat (limited to 'news/slurp/files/dbz.h')
-rw-r--r-- | news/slurp/files/dbz.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/news/slurp/files/dbz.h b/news/slurp/files/dbz.h new file mode 100644 index 000000000000..3d7e8ed702cb --- /dev/null +++ b/news/slurp/files/dbz.h @@ -0,0 +1,32 @@ +/* for dbm and dbz */ +typedef struct { + char *dptr; + int dsize; +} datum; + +/* standard dbm functions */ +extern int dbminit(); +extern datum fetch(); +extern int store(); +extern int delete(); /* not in dbz */ +extern datum firstkey(); /* not in dbz */ +extern datum nextkey(); /* not in dbz */ +extern int dbmclose(); /* in dbz, but not in old dbm */ + +/* new stuff for dbz */ +extern int dbzfresh(); +extern int dbzagain(); +extern datum dbzfetch(); +extern int dbzstore(); +extern int dbzsync(); +extern long dbzsize(); +extern int dbzincore(); +extern int dbzcancel(); +extern int dbzdebug(); + +/* + * In principle we could handle unlimited-length keys by operating a chunk + * at a time, but it's not worth it in practice. Setting a nice large + * bound on them simplifies the code and doesn't hurt anything. + */ +#define DBZMAXKEY 255 |