Date: Fri, 13 Dec 1996 12:54:42 +0200 (IST) From: Gennady Sorokopud <gena@NetVision.net.il> To: hackers@FreeBSD.ORG Subject: mmap() with offset Message-ID: <XFMail.961213125758.gena@NetVision.net.il>
next in thread | raw e-mail | index | archive | help
Hello!
For some reason mmap(...) call with offset other then 0 fails with invalid
argument error.
The code looks like:
msg->msg_body = (char *)mmap(NULL, (size_t)mlen, PROT_READ, 0,mfd,
(off_t)mofft)) == (char *)-1);
You can reproduce it by running cmp with skip arguments (cmp file1 file2 10 10).
Any ideas?
Best regards.
--------
Gennady B. Sorokopud - System programmer at NetVision Israel.
E-Mail: Gennady Sorokopud <gena@NetVision.net.il>
Homepage: http://www.netvision.net.il/~gena
PGP public key is available by fingering gena@netvision.net.il
This message was sent at 13-Dec-96 12:54:42 by XF-Mail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.961213125758.gena>
