[Bug 1458] - winserver -k & _FILE_OFFSET_BITS 64
wine-bugs at winehq.com
wine-bugs at winehq.com
Wed May 14 05:32:51 CDT 2003
http://bugs.winehq.com/show_bug.cgi?id=1458
------- Additional Comments From gabriele.giorgetti at teamfab.it 2003-05-14 05:32 -------
This is from the configure script in Wine.
I can't figure out why this test returns 0
while it should return 1 here.
All I do is make it return 1 anyway, but this, of course
,is not a valid patch for other kernels :-)
10629 #define _FILE_OFFSET_BITS 64
10630 #include <stdio.h>
10631 #include <unistd.h>
10632 #include <fcntl.h>
10633 #include <sys/mman.h>
10634 #include <errno.h>
10635
10636 int main(int argc,char **argv) {
10637 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10638 if (fd == -1) exit(1);
10639
10640 unlink("conftest.map");
10641
10642 write(fd,"test",4);
10643
10644 if ((-1 ==
mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10645 (errno == EINVAL)
10646 ) {
10647 exit(1);
10648 }
10649 close(fd);
10650 fprintf(stderr,"success!\n");
10651 exit(0);
10652 }
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1458>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
More information about the wine-bugs
mailing list