From: Arjan van de Ven <arjan@infradead.org>
To: Evgeniy <shubin_evgeniy@mail.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: bug in kernel
Date: Mon, 14 Mar 2005 15:55:29 +0100 [thread overview]
Message-ID: <1110812130.6288.89.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <1110811871.6288.85.camel@laptopd505.fenrus.org>
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
next prev parent reply other threads:[~2005-03-14 14:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-14 14:48 Evgeniy
2005-03-14 14:51 ` Arjan van de Ven
2005-03-14 14:55 ` Arjan van de Ven [this message]
2005-03-14 15:22 ` Bernhard Rosenkraenzer
2005-03-14 15:55 ` Martin Zwickel
2005-03-14 16:57 ` linux-os
2005-03-14 15:47 Pat Kane
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=1110812130.6288.89.camel@laptopd505.fenrus.org \
--to=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shubin_evgeniy@mail.ru \
/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
all inboxes | Powered by JetHome®