Search found 4 matches

by BOA
Wed Dec 22, 2004 9:30 am
Forum: newLISP and the O.S.
Topic: kernel 2.2.16 and mmap function
Replies: 6
Views: 6247

I'm don't has told in previous post that tried other variants /*if ((data = mmap((caddr_t)0, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0)) == (caddr_t)(-1)) { perror("mmap"); exit(1); } if ((data = mmap((caddr_t)0, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_AN...
by BOA
Tue Dec 21, 2004 10:44 pm
Forum: newLISP and the O.S.
Topic: kernel 2.2.16 and mmap function
Replies: 6
Views: 6247

Lutz>Probably the Kernel was compiled for the 386 CPU which probably has a different memory management then 486 and above. Unfortunately it is not so GCC uses an option -D686 at creation kernel I tried kernel-2.2.16 and kernel-2.2.20 In this form all works mmap ((caddr_t) 0, sbuf.st_size, PROT_READ ...
by BOA
Tue Dec 21, 2004 1:43 pm
Forum: newLISP and the O.S.
Topic: kernel 2.2.16 and mmap function
Replies: 6
Views: 6247

Re: kernel 2.2.16 and mmap function

Hi, Lutz. 1 You use the correct form of a call of function mmap ( I did not doubt of it:-) But SO will work only with kernel-2.4.xx and later 2 It not the problem Pygmy Linux (is based on Slackware). It is a problem (feature) kernel-2.2.16 If to use RedHat, Fedora, Slackware and more with kernel-2.2...
by BOA
Mon Dec 20, 2004 12:25 pm
Forum: newLISP and the O.S.
Topic: kernel 2.2.16 and mmap function
Replies: 6
Views: 6247

kernel 2.2.16 and mmap function

Hi, Lutz. Code in .1 and .2 (see down) are not according with requirements in MMAP(2). MMAP(2) Linux Programmer's Manual MMAP(2) NAME mmap, munmap - map or unmap files or devices into memory ... void * mmap(void *start, size_t length, int prot , int flags, int fd, off_t offset); ... fd should be a v...