On Mon, 2005-03-14 at 15:51 +0100, Arjan van de Ven wrote:
> On Mon, 2005-03-14 at 17:48 +0300, Evgeniy wrote:
> > Here is a simple program.
> > 
> > #include <stdio.h>
> > #include <errno.h>
> > main(){
> >   int err;
> >   err=read(0,NULL,6);
> >   printf("%d %d\n",err,errno);
> > }
> > 
> > I think that it should be an error : Null pointer assignment, like in 
> > windows.
> > But in practise it is not so. 
> > Mandrake Linux kernel 2.4.21-0.13mdk
> > I am a programmer too and i am very interested to solve this problem. 
> > Please, 
> > send me fragment of sourse code of kernel with this bug.
> 
> well what is the value of errno ?
> -EFAULT by chance ?

note that you need to include <unistd.h> for the proper read() prototype
btw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to