From: jacob berkman <jacob@ximian.com>
To: linux-kernel@vger.kernel.org
Subject: mmap() return value when length == 0
Date: 23 Aug 2001 18:12:54 -0400 [thread overview]
Message-ID: <998604774.796.10.camel@wet-pants> (raw)
hello,
on linux (2.4.9 and 2.2.18), the mmap() syscall will return NULL if the
length argument is 0 rather than returning MAP_FAILED (-1). this is
different than both solaris and hp-ux, and the linux man page doesn't
indicate that it should do this.
so, is this indeed the desired behaviour or a longstanding bug?
thanks,
jacob
next reply other threads:[~2001-08-23 22:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-23 22:12 jacob berkman [this message]
2001-08-23 23:43 ` mmap() return value when length == 0 Justin Guyett
[not found] <Pine.LNX.4.10.10108231945450.8694-100000@coffee.psychology.mcmaster.ca>
2001-08-23 23:48 ` Justin Guyett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=998604774.796.10.camel@wet-pants \
--to=jacob@ximian.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox