Re: Re: Debian BSD.. cool idea
On Tue, Feb 01, 2000 at 08:55:02PM -0600, Dan Potter wrote:
> Linux --
> #include <unistd.h>
> #include <sys/mman.h>
>
> caddr_t mmap(void *start, size_t length, int prot , int
> flags, int fd, off_t offset);
>
> BSD --
> #include <sys/types.h>
> #include <sys/mman.h>
>
> void *
> mmap(void * addr, size_t len, int prot, int flags, int fd, off_t offset)
>
> Not a big difference.. =)
I'll say. The return value and the header files.. shouldn't big that
big of an issue. What, may I ask, does mmap() return on Linux?
(and if anyone says a caddr_t, I'll kill you)
> On getting a copy of what I've done -- you probably don't want it just
> yet, as it is not a proper set of port patches but a big crufty hack on
> the sources =). It could be reworked into a proper port patch if the
> details are worked out. That said, I can still post it if anyone wants to
> play. Apt needs to be cleaned up 'cause I really hosed that one trying to
> make it not use mmap at all for now.
I didn't even fiddle with mine long enough to get the database working.
But the binary did compile and run :)
-Dan
Reply to: