From owner-freebsd-hackers Fri Dec 13 02:58:09 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA08626 for hackers-outgoing; Fri, 13 Dec 1996 02:58:09 -0800 (PST) Received: from mail.netvision.net.il (mail.NetVision.net.il [194.90.1.6]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id CAA08621 for ; Fri, 13 Dec 1996 02:58:06 -0800 (PST) Received: from Burka.NetVision.net.il (gena@burka.NetVision.net.il [194.90.6.15]) by mail.netvision.net.il (8.7.5/8.7.3) with SMTP id MAA09502 for ; Fri, 13 Dec 1996 12:57:58 +0200 (IST) Message-ID: X-Mailer: XFMail 0.5-beta [p0] on FreeBSD Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 13 Dec 1996 12:54:42 +0200 (IST) X-Face: #v>4HN>#D_"[olq9y`HqTYkLVB89Xy|3')Vs9v58JQ*u-xEJVKY`xa.}E?z0RkLI/P&;BJmi0#u=W0).-Y'J4(dw{"54NhSG|YYZG@[)(`e! >jN#L!~qI5fE-JHS+< Organization: NetVision Ltd. From: Gennady Sorokopud To: hackers@FreeBSD.ORG Subject: mmap() with offset Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 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