login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
15
Re: kfree(0) - ok?
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Rene Herman <rene.herman@...>
To: Jan Engelhardt <jengelh@...>
Cc: Jason Uhlenkott <jasonuhl@...>, Arjan van de Ven <arjan@...>, Tim Bird <tim.bird@...>, linux kernel <linux-kernel@...>
Subject:
Re: kfree(0) - ok?
Date: Wednesday, August 15, 2007 - 5:58 am
On 08/15/2007 11:20 AM, Jan Engelhardt wrote:
quoted text
> On Aug 15 2007 10:37, Rene Herman wrote: >> On 08/15/2007 09:28 AM, Jan Engelhardt wrote: >>> On Aug 14 2007 16:21, Jason Uhlenkott wrote: >>>> On Tue, Aug 14, 2007 at 15:55:48 -0700, Arjan van de Ven wrote:
quoted text
>>>>> NULL is not 0 though. >>>> >>>> It is. Its representation isn't guaranteed to be all-bits-zero, >>> >>> C guarantees that. >> >> C guarantees what? If you're disagreeing with Jason -- he's right. > >
http://coding.derkeiler.com/Archive/C_CPP/comp.lang.c/2003-11/1808.html
He said the null _pointer_ isn't guaranteed to be all-bits zero. And it isn't. Read the standard or the faq.
quoted text
>>>> but the constant value 0 when used in pointer context is always a >>>> null pointer (and in fact the standard requires that NULL be >>>> #defined as 0 or a cast thereof).
Rene. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
kfree(0) - ok?
, Tim Bird
, (Tue Aug 14, 6:59 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Tue Aug 14, 7:13 pm)
Re: kfree(0) - ok?
, Arjan van de Ven
, (Tue Aug 14, 6:55 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Tue Aug 14, 7:42 pm)
Re: kfree(0) - ok?
, Andrew Morton
, (Fri Aug 17, 2:22 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Fri Aug 17, 5:13 pm)
Re: kfree(0) - ok?
, Christoph Lameter
, (Fri Aug 17, 5:14 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Fri Aug 17, 5:46 pm)
Re: kfree(0) - ok?
, Pekka Enberg
, (Fri Aug 17, 5:42 pm)
Re: kfree(0) - ok?
, Thomas Gleixner
, (Fri Aug 17, 7:40 pm)
Re: kfree(0) - ok?
, Jan Engelhardt
, (Sat Aug 18, 4:21 am)
Re: kfree(0) - ok?
, Pekka Enberg
, (Sat Aug 18, 4:10 am)
Re: kfree(0) - ok?
, Christoph Lameter
, (Fri Aug 17, 9:03 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Fri Aug 17, 8:02 pm)
Re: kfree(0) - ok?
, Christoph Lameter
, (Fri Aug 17, 7:22 pm)
Re: kfree(0) - ok?
, Christoph Lameter
, (Fri Aug 17, 4:43 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Fri Aug 17, 5:17 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Fri Aug 17, 5:32 pm)
Re: kfree(0) - ok?
, Jan Engelhardt
, (Fri Aug 17, 2:37 pm)
Re: kfree(0) - ok?
, Arjan van de Ven
, (Fri Aug 17, 2:31 pm)
Re: kfree(0) - ok?
, Satyam Sharma
, (Fri Aug 17, 2:50 pm)
Re: kfree(0) - ok?
, Christoph Lameter
, (Tue Aug 14, 8:19 pm)
Re: kfree(0) - ok?
, Jason Uhlenkott
, (Tue Aug 14, 7:21 pm)
Re: kfree(0) - ok?
, Jan Engelhardt
, (Wed Aug 15, 3:28 am)
Re: kfree(0) - ok?
, Giacomo A. Catenazzi
, (Wed Aug 15, 5:32 am)
Re: kfree(0) - ok?
, Andreas Schwab
, (Wed Aug 15, 5:18 am)
Re: kfree(0) - ok?
, Jason Uhlenkott
, (Wed Aug 15, 4:52 am)
Re: kfree(0) - ok?
, Rene Herman
, (Wed Aug 15, 4:37 am)
Re: kfree(0) - ok?
, Jan Engelhardt
, (Wed Aug 15, 5:20 am)
Re: kfree(0) - ok?
, Rene Herman
, (Wed Aug 15, 5:58 am)
Re: kfree(0) - ok?
, Jan Engelhardt
, (Wed Aug 15, 6:20 am)
Re: kfree(0) - ok?
, H. Peter Anvin
, (Wed Aug 15, 12:01 pm)
Re: kfree(0) - ok?
, Kyle Moffett
, (Wed Aug 15, 9:58 am)
Re: kfree(0) - ok?
, Jan Engelhardt
, (Wed Aug 15, 10:06 am)
Re: kfree(0) - ok?
, Kyle Moffett
, (Wed Aug 15, 10:34 am)
Re: kfree(0) - ok?
, Rene Herman
, (Wed Aug 15, 6:27 am)
Re: kfree(0) - ok?
, Jason Uhlenkott
, (Wed Aug 15, 5:43 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
David Miller
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
842 guests
online.
Online users
strcmp
roundtheruggedd
ernestogordon37
Syndicate