----- Original Message -----
From: "Brian Ashe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 11:38 AM
Subject: Re: Need docs on Btree


>
> Is your old program using the Berkley DB API? It may be using a different
API
> then is available now or a proprietary one. B-Tree is a method of doing
> things, not an API.

I don't know the answer to that.  The 'C' modules that I have compiled under
the standard RedHat release include 'read' and 'write' statements, instead
of 'put' and 'get', but they compile just fine.  I just do not know how it
knows about 'read' and 'write'

>
> Are you planning on using the Berkley DB API to access the B-Tree methods?
If
> you look in the dbopen manpage, you'll see it uses "put", "get", "del",
etc.
> for operations.

I looked at the dbopen manpage but it does not seem to concide with what I
have.  For example, the source statements in my program that read a record,
look like this:

fd is the filename
record is the record number
nbytes is the number of bytes to read

    if (lseek(fd,record,0) ==ERROR)
        return(ERROR);
    if (read(fd,buffer,nbytes) != nbytes)
        return(ERROR);
    return(OK);

Does this look familiar???????


>
> If you want docs on Berkley DB, the place to go is their website or buy
their
> books. More info at...
> http://www.sleepycat.com/
>
> I hope this helps.
>
> --
> Brian Ashe                                                     CTO
> Dee-Web Software Services, LLC.                  [EMAIL PROTECTED]
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to