lkml.org 
[lkml]   [1999]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: bug in socket.h (and maybe many other kernel headerfiles)
Date
On Fre, 17 Sep 1999 wrote the famous Benjamin LaHaise:
>On Fri, 17 Sep 1999, Sean Hunter wrote:
>
>> Why are you compiling kernel headers with a c++ compiler? The kernel
>> headers don't work in c++.
>
>There still exist libc5 systems that are running 2.2 kernels and egcs/gcc
>2.95.

O.k. I am a bit outdated by using libc5, but hey, what is this related to the
non ANSI conformance of the kernel headers??? By using glibc2 the return value
won't change!

What is needed here is an explicit conversion from (void*) to (char*) because
0, 0L and (void*) 0 are all valid definitions of the null pointer (or we use
literal 0 that is granted to be a null pointer in a pointer context) and ANSI C
won't fail and ANSI C++ will be happy.

Uwe

--
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
-- --
right now the web page is in german only
but this will change as time goes by ;-)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.066 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site