LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Folkert van Heusden <folkert@vanheusden.com>
To: Vignesh Babu BM <vignesh.babu@wipro.com>
Cc: Stephane Eranian <eranian@hpl.hp.com>,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	ak@suse.de, Jan Engelhardt <jengelh@linux01.gwdg.de>
Subject: Re: kmalloc() with size zero
Date: Sun, 25 Mar 2007 18:30:34 +0200	[thread overview]
Message-ID: <20070325163013.GW741@vanheusden.com> (raw)
In-Reply-To: <1174624770.10742.2.camel@wriver-t81fb058.linuxcoe>

> > I'd say "feature", glibc's malloc also returns an address on
> > malloc(0).
> > 
> This is implementation defined-the standard allows for return of either
> null or an address.

Entirely for entertainment: AIX (5.3) returns NULL, IRIX returns a valid
address.


Folkert van Heusden

-- 
MultiTail är en flexibel redskap för att fälja logfilar, utför av
commandoer, filtrera, ge färg, sammanfoga, o.s.v. följa.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

  reply	other threads:[~2007-03-25 16:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-23  0:18 Stephane Eranian
2007-03-23  1:38 ` Jan Engelhardt
2007-03-23  4:39   ` Vignesh Babu BM
2007-03-25 16:30     ` Folkert van Heusden [this message]
2007-03-26  8:09       ` Stephane Eranian
2007-03-29 14:39         ` Bill Davidsen
2007-03-23 15:12 ` Christoph Lameter

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=20070325163013.GW741@vanheusden.com \
    --to=folkert@vanheusden.com \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=eranian@hpl.hp.com \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vignesh.babu@wipro.com \
    --subject='Re: kmalloc() with size zero' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).